1:1 mentoring with Big Tech AI engineers
RAG & MCP

MCP with Claude

Where the MCP client lives on each Claude surface decides what it can reach: Claude Code, Claude Desktop and claude.ai connectors, the Agent SDK, the Messages API MCP connector, private networks and tunnels, and how to check which spec revision each side speaks.

Last updated

Core11 min readBuilds onBuilding MCP Servers,MCP Transport
What you’ll learn
  • Choose where the MCP client runs for a server, and what that client can reach
  • Wire a server into Claude Code, Claude Desktop or the Messages API connector
  • Diagnose a server that passes in the Inspector and fails in a Claude surface
05

MCP with Claude

Where the MCP client runs on each Claude surface decides what it can reach. This section wires a server into each one and shows how to check the spec revision each side speaks.

Key idea

Every Claude surface runs an MCP client somewhere, and that place decides what the server can reach. Claude Code and a local Desktop config run on your machine. Connectors and the Messages API run in Anthropic’s cloud, so the server must be public or allowlisted.

The surface you pick decides where the MCP client runs
ANTHROPIC'S CLOUD YOUR NETWORK firewall Claude model writes tool_use Cloud MCP client claude.ai, Desktop, Messages API Your MCP client Claude Code, Desktop config, your app Your MCP server POST /mcp tool_use public HTTPS only reaches inside outbound tunnel, research preview

Amber: the model writes tool_use and never reaches a server. Teal: an MCP client. Red dashed: a call across the firewall. Blue dashed: an outbound-only tunnel.

Related

More in RAG & MCP

Get full access to all 151 sections with code examples, diagrams, and interactive animations.

Unlock Premium