MCP Servers
Connect Model Context Protocol servers as tools in your workflows.
MCP Servers
Linea supports the Model Context Protocol (MCP) — an open standard for connecting AI models to external tools and data sources. Register an MCP server in your workspace and its tools become available to any workflow.
What is MCP?
MCP lets you expose a set of callable tools via a standard protocol. Once a server is registered, Linea's execution engine connects to it during workflow runs and makes its tools available to Agent nodes — the same way built-in tools like HTTP or Slack work.
This means you can connect workflows to internal services, databases, custom scripts, or any third-party system that implements the MCP spec.
Transport types
| Transport | When to use |
|---|---|
sse | Persistent HTTP streams — most common for hosted servers |
streamable-http | HTTP with streaming (MCP 2025 spec) |
stdio | Local process-based servers |
Authentication
MCP servers support four auth modes:
| Mode | Description |
|---|---|
none | No authentication |
bearer | Bearer token in the Authorization header |
basic | HTTP Basic authentication |
custom | Custom headers or auth scheme |
Credentials are encrypted at rest.
API Endpoints
| Method | Path | Description |
|---|---|---|
GET | /workspaces/:wId/mcp-servers | List registered servers |
POST | /workspaces/:wId/mcp-servers | Register a new server |
GET | /workspaces/:wId/mcp-servers/:id | Get server details |
PATCH | /workspaces/:wId/mcp-servers/:id | Update server config |
DELETE | /workspaces/:wId/mcp-servers/:id | Remove server |
POST | /workspaces/:wId/mcp-servers/:id/sync | Discover and sync tools from the server |
GET | /workspaces/:wId/mcp-servers/:id/tools | List synced tools |
POST | /workspaces/:wId/mcp-servers/search | Search tools by description |
Syncing tools
After registering a server, call /sync to discover its tools. Linea connects to the server, fetches the tool list, and stores them for use in workflows.
Re-sync any time the server's tools change.
Using MCP in workflows
Add an MCP node to your workflow and select the server and tool you want to call. Tool inputs map to workflow variables.
MCP tools are also available inside Agent nodes — the agent can call them automatically when it determines they're needed.
MCP servers are registered at the workspace level and available to all workflows within that workspace.