# Build and test Open Flow workflows from inside your AI app

Source: https://openflow.run/en/mcp/

Model Context Protocol (MCP)

Connect Claude Code, Cursor, ChatGPT, or Codex directly to your Open Flow deployment over MCP. Your agent reads live node schemas, applies atomic edits, checks validation diagnostics, and inspects execution runs without copying raw JSON.

[Connect via MCP](https://openflow.run/en/install/mcp.md)[Authoring guide](https://openflow.run/en/docs/guides/agent-authoring.md)

*   Hosted & self-hosted MCP
*   Revision-aware Control API
*   1,700+ apps & 20,000+ tools

## Stop pasting broken workflow JSON from chat

Prompting an AI in isolation leaves it guessing node schemas, connector keys, and runtime state.

### Outdated parameters and guessed keys

Without live schema discovery, models invent node options and connector identifiers that fail on import.

### Edits that overwrite existing work

Pasting whole workflow files discards manual changes and leaves no revision check between concurrent edits.

### Debugging without execution logs

When a run fails, copying error snippets back and forth slows down iteration and hides upstream node outputs.

## What the Open Flow MCP server exposes

MCP calls the same versioned Control API as the Workbench and oo flow CLI, operating directly on your deployment.

flow\_schema · flow\_read

### Live schema and draft inspection

Query supported node configurations, input sources, and connector catalogs before reading or modifying a draft.

flow\_create · flow\_edit

### Atomic, revision-aware edits

Submit batched node and edge operations with baseRevision and requestId so concurrent changes never silently overwrite.

flow\_check

### Structural validation before execution

Catch missing required inputs, disconnected ports, and type mismatches on the draft before running a workflow.

Run tools · Scoped permissions

### Controlled runs and credential isolation

Trigger test runs, inspect per-node outputs, and keep OAuth tokens managed in Open Flow Connections instead of client prompts.

## Connect your AI client in minutes

Add the Open Flow MCP endpoint and API key to any client that supports remote HTTP MCP servers, or point it to your self-hosted instance.

1.  1
    
    ### Generate your MCP API key
    
    Sign in on the MCP install page to populate your Bearer token and team header automatically.
    
2.  2
    
    ### Paste the config into your AI client
    
    Add the open-flow server entry to Claude Code, Cursor, Codex, ChatGPT, or Antigravity.
    
3.  3
    
    ### Authorize app connections
    
    Connect Gmail, Slack, Linear, or other services once in Open Flow Connections, then ask your agent to build and test.
    

[Get personalized MCP config](https://openflow.run/en/install/mcp.md)[Self-hosted MCP server reference](https://github.com/oomol-lab/open-flow/blob/e25a738d170322734572a0b8a1323cb00b9d355a/docs/server/mcp.md)

Quick setup guides by client

[Claude Code](https://openflow.run/en/install/claude-code.md)[Cursor](https://openflow.run/en/install/cursor.md)[ChatGPT](https://openflow.run/en/install/chatgpt.md)[Codex](https://openflow.run/en/install/codex.md)[Antigravity](https://openflow.run/en/install/antigravity.md)[MCP JSON](https://openflow.run/en/install/mcp.md)

MCP config (JSON)

```json
{
  "mcpServers": {
    "openflow": {
      "url": "https://open-flow.oomol.com/v1/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_MCP_API_KEY>"
      }
    }
  }
}
```

## Use Open Flow withany agent

[Install for your agent](https://openflow.run/en/install/mcp.md)

*   [ChatGPT](https://openflow.run/en/install/chatgpt.md)
*   [Grok Bot](https://openflow.run/en/install/grok.md)
*   [Claude Code](https://openflow.run/en/install/claude-code.md)
*   [DeepSeek Harness](https://openflow.run/en/install/deepseek-harness.md)
*   [Hermes Agent](https://openflow.run/en/install/hermes.md)
*   [WorkBuddy](https://openflow.run/en/install/workbuddy.md)
*   [Pi](https://openflow.run/en/install/pi.md)
*   [Antigravity](https://openflow.run/en/install/antigravity.md)
*   [Cursor](https://openflow.run/en/install/cursor.md)
*   [Muse](https://openflow.run/en/install/muse.md)
*   [OpenClaw](https://openflow.run/en/install/openclaw.md)
*   [OpenCode](https://openflow.run/en/install/opencode.md)

## Describe the workflow. Verify the result.

Explore real Open Flow templates your agent can assemble, validate, and test over MCP.

PromptBuild a refund precheck flow that evaluates incoming requests against policy rules and notifies Slack for approval.

### Refund policy pre-check and approval

Validate incoming refund webhooks against deterministic amount and purchase-window rules, score edge-case risk with AI, and post an approval summary to Slack.

[View template](https://openflow.run/en/templates/refund-policy-precheck.md)

PromptCreate a support triage workflow that classifies webhook tickets with AI, drafts replies, and routes them to Slack.

### Support ticket triage and draft reply

Classify incoming helpdesk webhooks by category and urgency, draft a grounded response, and escalate high-priority tickets directly to Slack.

[View template](https://openflow.run/en/templates/support-ticket-triage-draft.md)

PromptRoute new Linear bug reports to the right engineering team based on issue context and severity.

### Linear bug triage by team ownership

Evaluate new Linear issues against team ownership rules, assign the right owner and labels automatically, and notify the responsible channel.

[View template](https://openflow.run/en/templates/route-linear-bugs-to-teams.md)

[Browse all templates](https://openflow.run/en/templates.md)

## Frequently asked questions

### What is the Open Flow MCP server?

It is a remote Model Context Protocol server at https://open-flow.oomol.com/v1/mcp (and included in self-hosted deployments) that lets AI apps discover node schemas, read and edit workflow drafts, validate changes, and run workflows.

[Get your MCP config](https://openflow.run/en/install/mcp.md)

### Which AI apps and IDEs work with Open Flow MCP?

Any AI client that supports remote HTTP MCP servers with Bearer authentication works, including Claude Code, Cursor, ChatGPT, Codex, Antigravity, OpenCode, and Windsurf.

[View supported clients](https://openflow.run/en/mcp.md#mcp-clients)

### What tools does the MCP server provide?

The server exposes flow\_schema, flow\_read, flow\_create, flow\_edit, flow\_check, and Run tools backed by the same Control API as the visual Workbench.

[Read the agent authoring guide](https://openflow.run/en/docs/guides/agent-authoring.md)

### How are API keys and app credentials handled?

Your AI client authenticates to Open Flow with an MCP API key and optional x-oo-team-name header. Third-party app tokens stay inside Open Flow Connections so agents can invoke approved actions without seeing raw OAuth secrets.

[Manage app connections](https://console.openflow.run/connections)

### Can I run the MCP server on a self-hosted Open Flow instance?

Yes. The self-hosted Open Flow server includes the MCP endpoint, so you can point your AI clients to your own deployment URL.

[View self-hosted MCP docs](https://github.com/oomol-lab/open-flow/blob/e25a738d170322734572a0b8a1323cb00b9d355a/docs/server/mcp.md)

### Can an AI agent accidentally overwrite a workflow?

Edits require baseRevision and a unique requestId. If another teammate or process updated the draft first, the edit returns a conflict instead of overwriting changes, and published versions remain isolated from draft edits.

### When should I use MCP versus the oo flow CLI?

Use MCP when working inside chat apps or IDEs without local shell access. Use the oo flow CLI when your coding agent already runs in a terminal and can compose local scripts or CI pipelines.

### How many apps and actions can agents access through Open Flow?

Agents can discover and wire 1,700+ apps and 20,000+ ready-to-use actions and triggers through OpenConnector, all governed by your workspace permissions.

[Browse all integrations](https://openflow.run/en/integrations.md)

## Build your first workflow with AI

[Use Official Hosting](https://console.openflow.run/flows)[View on GitHub](https://github.com/oomol-lab/open-flow)
