- MCP Server Connector — Connect to external MCP servers (Linear, GitHub, DeepWiki, etc.) and use their tools in your agents, just like any other connector
- 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:- Connectors > New Connector > MCP Server
- Enter the server URL (e.g.,
https://mcp.linear.app/sse) - Select transport: SSE or Streamable HTTP
- Configure authentication if required (Bearer Token, Basic Auth, or OAuth2)
- After creation, click Sync Tools — Runflow connects to the MCP server, calls
tools/list, and creates a resource for each tool
- Runflow opens a connection to the MCP server
- Calls
tools/listto discover all available tools - Creates a
ConnectorResourcefor 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:| Server | URL | Transport | Auth | Description |
|---|---|---|---|---|
| Linear | https://mcp.linear.app/sse | SSE | Bearer Token (API Key) | Issue tracking, project management |
| DeepWiki | https://mcp.deepwiki.com/mcp | Streamable HTTP | None | Search and read GitHub repo documentation |
| Sentry | Varies | Streamable HTTP | Bearer Token | Error tracking and monitoring |
| Cloudflare | Varies | Streamable HTTP | Bearer Token | Workers, KV, D1, R2 management |
| Notion | Varies | Streamable HTTP | Bearer Token | Pages, databases, search |
Authentication
MCP Server connectors support three authentication types. The credential is stored encrypted and injected automatically when connecting:| Type | How it works | Example |
|---|---|---|
| Bearer Token | Sent as Authorization: Bearer <token> | Linear API Key, GitHub PAT |
| Basic Auth | Username + password as Base64 | Internal services |
| OAuth2 | Client credentials or authorization code with automatic token refresh | Slack, HubSpot |
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
- MCP Gateway > New Gateway — set name, select API Key
- Add Tools — pick resources from any of your connectors
- 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:| Tool | Source | Type |
|---|---|---|
list_issues | Linear MCP Server | MCP_SERVER |
create_contact | HubSpot REST API | REST_API |
execute_query | PostgreSQL Database | DATABASE |
read_wiki_structure | DeepWiki MCP Server | MCP_SERVER |
Connecting Claude Desktop
Add to yourclaude_desktop_config.json:
Connecting Cursor
In Cursor settings, add an MCP server with the gateway URL.Connecting via Claude Code
Tool Management
| Action | Description |
|---|---|
| Add Tools | Select resources from any connector to expose |
| Enable/Disable | Toggle individual tools without removing them |
| Alias | Rename a tool for the MCP client (e.g., list-issues to linear_issues) |
| Remove | Remove a tool from the gateway |
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
| Feature | Description |
|---|---|
| API Key auth | Each gateway has its own API Key |
| Resource-level | Only explicitly added tools are exposed |
| Tenant isolation | Gateways scoped to tenant, no cross-tenant access |
| Server-side credentials | MCP clients never see your API keys, database passwords, or OAuth tokens |
| Stateless | No session state stored, any pod can handle requests |
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.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