Skip to main content
Runflow supports the Model Context Protocol (MCP) in two ways:
  1. MCP Server Connector — Connect to external MCP servers (Linear, GitHub, DeepWiki, etc.) and use their tools in your agents, just like any other connector
  2. MCP Gateway — Expose your Runflow connectors (REST APIs, databases, MCP servers) as a single MCP endpoint for Claude Desktop, Cursor, or any MCP client

MCP Server Connector

Connect to any external MCP server and use its tools in your agents. The MCP server’s tools are auto-discovered and become regular connector resources — no manual mapping needed.

Setting Up

Portal:
  1. Connectors > New Connector > MCP Server
  2. Enter the server URL (e.g., https://mcp.linear.app/sse)
  3. Select transport: SSE or Streamable HTTP
  4. Configure authentication if required (Bearer Token, Basic Auth, or OAuth2)
  5. After creation, click Sync Tools — Runflow connects to the MCP server, calls tools/list, and creates a resource for each tool
What happens during Sync:
  • Runflow opens a connection to the MCP server
  • Calls tools/list to discover all available tools
  • Creates a ConnectorResource for each tool (name, description, input schema)
  • Updates existing resources if the schema changed
  • Removes tools that no longer exist on the server
  • You can re-sync anytime to pick up changes

Using in Agents

MCP tools work exactly like REST or Database connector tools in agents. The agent calls them via the LLM’s tool-use capability:

Direct Invocation (Without Agent)

Call MCP tools directly in your code — useful in workflows, scripts, or custom logic:

Using in Workflows

Combine MCP tools with other steps in a workflow:

Example: Project Management Agent with Linear

A complete agent that manages a Linear workspace via MCP:
main.ts
agent.ts

Supported MCP Servers

Any server implementing the MCP protocol works. Some popular ones:
Check mcp.run or the MCP servers directory for a full list of available MCP servers.

Authentication

MCP Server connectors support three authentication types. The credential is stored encrypted and injected automatically when connecting:

MCP Gateway

The MCP Gateway turns your Runflow connectors into an MCP endpoint. Configure in the portal what to expose, get a URL, and any MCP client can connect.

Why Use It

  • Unify tools — Combine REST APIs, databases, and MCP servers in one endpoint
  • No code needed — Configure everything in the portal
  • Secure — API Key authentication, resource-level permissions, credentials stay server-side
  • Observable — Every call logged with input/output, duration, and status

Creating a Gateway

  1. MCP Gateway > New Gateway — set name, select API Key
  2. Add Tools — pick resources from any of your connectors
  3. Copy the URL — use in Claude Desktop, Cursor, or any MCP client

Example: Multi-Connector Gateway

A gateway that exposes tools from three different connector types: All accessible from a single URL:

Connecting Claude Desktop

Add to your claude_desktop_config.json:
Restart Claude Desktop. The tools appear in the tools menu and Claude can call them.

Connecting Cursor

In Cursor settings, add an MCP server with the gateway URL.

Connecting via Claude Code

Tool Management

Observability

The Logs tab in the gateway detail page shows every tool call:
  • Status badge (success/error), tool name, duration
  • Expandable input/output for debugging
  • Filter by status and date range
  • Auto-refresh every 15 seconds
  • Pagination for high-volume gateways

Security


Testing with curl

If you prefer to test the MCP Gateway directly via HTTP before connecting an MCP client:

List available tools

Call a tool

The Accept: application/json, text/event-stream header is required by the MCP Streamable HTTP transport. The response comes as a Server-Sent Event with the JSON-RPC result in the data field.

Available MCP Tools (Runflow Public MCP)

The public MCP connector — the same one used by the Claude.ai directory listing and the official runflowai/claude-code-plugin — exposes 116 tools spanning agents, executions, prompts, connectors, knowledge bases, dashboards, flows, event aggregation, and more. It mirrors the internal MCP surface 1:1, so anything you can do via the API-key /api/v1/mcp endpoint is also reachable from Claude or any MCP-compatible client. Tools are gated by OAuth scopes: A token without the required scope sees the tool as if it didn’t exist (no error, no listing).

Inventory by category

The canonical source of truth is the MCP tools/list response — categories above match the comment headers in the backend allowlist file, and may shift as the surface evolves. If you need an exhaustive list for a given build, call tools/list against the gateway you’re connecting to.

Connecting via OAuth (DCR)

When a client connects through Dynamic Client Registration, the authorize request must include mcp:admin in scope to access any delete_* tool. A read-only listing in claude_desktop_config.json or the Claude.ai directory only needs the default mcp:read mcp:write scope.

Next Steps

Connectors

Create REST, Database, and other connectors

Tools

Build custom tools for agents

Agents

Use MCP tools in agents

Observability

Track gateway calls and metrics