MCP

Plug into the MCP ecosystem.

Model Context Protocol is becoming the open standard for AI agent tools. Agentmatic ships a first-class MCP client and server — no wrappers, no glue code.

MCP in one sentence: A standardized protocol so any AI agent can discover and call tools running in a separate process — think filesystem, git, browser, database — without writing per-tool adapters.

Connect to an MCP server

from agentmatic.tools.mcp import MCPClient
from agentmatic.prebuilt import create_react_agent

# Stdio transport — spawns the server as a subprocess.
mcp = MCPClient.stdio(["npx", "-y", "@modelcontextprotocol/server-filesystem", "/tmp"])
tools = await mcp.list_tools_as_agentmatic()  # filesystem.read, filesystem.write, ...

agent = create_react_agent(llm=OpenAI(), tools=tools)
print(await agent.invoke("Summarize the README at /tmp/project/README.md"))

Expose your tools as an MCP server

from agentmatic.tools.mcp import serve_mcp
from my_tools import calculator, db_query

# Publish any Agentmatic tool registry as an MCP server over stdio.
if __name__ == "__main__":
    serve_mcp([calculator, db_query], transport="stdio")

Why MCP matters

Server discovery

Agentmatic respects mcp.json the same way Claude Desktop and Cursor do — drop a config and your agent finds the same servers your IDE uses.

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/me/projects"]
    },
    "git": { "command": "uvx", "args": ["mcp-server-git"] }
  }
}

MCP FAQ

Common MCP questions.

An open standard from Anthropic that lets LLM-based agents discover and call tools across processes. Think of it as USB-C for AI tools — a server exposes filesystem, git, browser, database access, etc., and any MCP-capable client (Agentmatic, Claude Desktop, Cursor, etc.) can use them.

Ship your next agent in minutes, not weeks.

MIT licensed. Drop-in for LangGraph. Native SDKs in 5 languages. Battle-tested resilience primitives in the box.