Skip to main content
TurnCall supports the Model Context Protocol (MCP) for connecting agents to external tool servers. Tools are auto-discovered at call start via tools/list and registered alongside webhook and built-in tools.

Configuration

Add mcp_servers to your agent config:

Transport Types

Server Config Fields

How It Works

1

Call starts

TurnCall connects to each configured MCP server.
2

Tool discovery

Calls tools/list on each server to discover available tools.
3

Registration

MCP tools are merged with webhook and built-in tools in the pipeline.
4

Execution

When the LLM calls an MCP tool, TurnCall routes it through the MCP client.
5

Cleanup

MCP sessions are cleaned up when the call ends.

stdio Transport

stdio transport requires MCP_STDIO_ENABLED=true and the command must be listed in MCP_STDIO_ALLOWED_COMMANDS.