CrewForm is a full MCP participant — both as a client (consuming external tools) and as a server (exposing agents as tools). Your agents can discover and autonomously invoke tools from any MCP-compatible server during task execution, giving them access to databases, APIs, file systems, code execution environments, and thousands of third-party services.
MCP is one of three agentic protocols CrewForm supports, alongside A2A (agent-to-agent) and AG-UI (agent-to-frontend).
When a task runs, CrewForm’s task runner automatically connects to configured MCP servers and makes their tools available to the agent. This happens transparently — the agent’s LLM sees MCP tools alongside built-in tools and can invoke them as part of its reasoning.
Tool Detection — The executor checks if the agent has any mcp: tools enabled
Server Connection — For each configured MCP server, the task runner establishes a connection using the appropriate transport (HTTP, SSE, or stdio)
Tool Discovery — Calls tools/list on each connected server to get available tool definitions (name, description, input schema)
Schema Injection — Discovered MCP tool definitions are merged into the LLM’s function calling schema alongside built-in tools
Autonomous Execution — When the LLM decides to call an MCP tool, the task runner routes the call through callMcpTool() with the tool name and arguments
Result Processing — Tool results flow back into the agent’s context, informing the next reasoning step
Cleanup — All MCP client connections are disconnected after the task completes
Agents don’t need special configuration to use MCP tools during execution. Just enable the mcp: tools on the agent and the task runner handles connection, discovery, execution, and cleanup automatically.
Agent: "I need to check the latest issues in the crewform repo" ↓LLM decides to call: mcp:github/list_issues ↓Task Runner → mcpClient.callMcpTool("github", "list_issues", { repo: "crewform/crewform" }) ↓MCP Server (GitHub) returns issue data ↓Agent receives results and continues reasoning
CrewForm can also act as an MCP Server — exposing your agents as tools that Claude Desktop, Cursor, and other MCP clients can call. This makes CrewForm a full bidirectional MCP participant: consuming external tools and publishing agents as tools.
MCP Server Publishing
Learn how to expose your agents as MCP tools for external clients.