MCP Server
Connects an external MCP (Model Context Protocol) server to an AI Agent. All tools exposed by the MCP server become available to the agent automatically — no manual tool configuration needed.
Use MCP Server when:
- You want to connect an agent to an existing MCP-compatible service (Stripe MCP, database MCP, etc.)
- You need tools that are defined and maintained externally
- You're integrating with third-party MCP tool providers
For tools that are Tensorify workflows themselves, connect action nodes directly to the agent's Tools handle instead.
MCP Server is connected to an AI Agent's Tools handle, like any other tool node.
| Setting | Type | Default | Description |
|---|---|---|---|
serverUrl | string | — | MCP server URL (e.g. https://mcp.stripe.com or http://localhost:3100/mcp). Supports bindings. |
transportType | select | http | Transport protocol. Currently only HTTP (Streamable HTTP) is supported. |
SSE transport is not yet implemented. Only HTTP (Streamable HTTP) is supported. Most MCP servers use HTTP by default.
| Environment Variable | Description |
|---|---|
MCP_API_KEY | API key for authenticating with the MCP server. This is a single global key shared across all MCP servers connected to an agent. |
- The transpiler generates module-scope code that registers the MCP server with the agent's tool registry
- On the first agent request, the tool registry lazily connects to the MCP server and discovers available tools via the MCP protocol's
tools/listmethod - Each discovered tool is converted to a schema the LLM understands (name, description, parameters)
- During the agent's ReAct loop, when the LLM decides to call an MCP tool, the runtime invokes it via the MCP protocol's
tools/callmethod - The tool result is passed back to the LLM for the next reasoning step
Connect an agent to Stripe's MCP server:
- Add an AI Agent node
- Add an MCP Server node
- Connect MCP Server to the agent's
Toolshandle - Set
serverUrltohttps://mcp.stripe.com - Add
MCP_API_KEYto your Environment Variables with your Stripe secret key
The agent can now list customers, create charges, check subscription status, and use any other tool the Stripe MCP server exposes.
- Server must be reachable: The MCP server URL must be accessible from where the workflow runs (your runner's machine for CLI mode, or Tensorify's cloud for Managed mode).
- Lazy tool discovery: MCP tools are discovered on the first agent request, not at workflow startup. If the MCP server adds new tools, restart the workflow to pick them up.
- Latency: Each MCP tool call is a network request to the external server. Factor this into your agent's timeout and iteration limits.
- AI Agent — the agent that uses MCP tools
- HTTP Request — for direct API calls without MCP
- Build an AI Agent — step-by-step guide including MCP setup
