MCP (Model Context Protocol)
What is MCP (Model Context Protocol)?
MCP, the Model Context Protocol, is an open standard that lets AI agents talk to external tools and data sources through small programs called MCP servers. Instead of each agent inventing its own integration format, an agent that "speaks MCP" can connect to any MCP server — for filesystem access, GitHub, a browser, documentation, and more — using one common protocol.
In practice, you add MCP servers to a coding agent like Claude Code, Cursor or Cline, and the agent gains those servers' tools. Each server advertises its tools through a manifest the agent loads.
Anthropic created MCP and, in December 2025, donated it to the Agentic AI Foundation, a directed fund under the Linux Foundation co-founded with Block and OpenAI. As of October 2026 the current specification revision is 2026-07-28. Its main changes versus 2025-11-25: protocol-level sessions and the Mcp-Session-Id header are gone from the Streamable HTTP transport (so tools/list no longer varies per connection), long-running tasks moved into an official extension, and features now follow a lifecycle with a minimum twelve-month deprecation window.
Why MCP matters in 2026
MCP matters because it's become the de-facto way to extend coding agents — but it has a token cost worth understanding. Early agents sent every connected server's tool definitions on every turn, used or not. Modern agents defer tool loading by default: as of October 2026, Claude Code's docs say MCP tool search is on by default, so tool definitions are discovered on demand instead of all being loaded upfront. The exceptions are in the fine print — Claude Code falls back to loading every tool upfront when ANTHROPIC_BASE_URL points to a non-first-party host, on some cloud deployments, and when ENABLE_TOOL_SEARCH=false — and other clients vary, so check what yours actually sends; see lazy MCP loading.
The cost that remains is what tools return. A GitHub listing, a browser snapshot or a database query lands in the context window in full and stays in history for every later turn. Compacting those results before they reach the model is where most MCP tokens are now saved; token-efficient MCP tool use covers how, and Best MCP servers for Claude Code which servers earn their place.
When MCP isn't the right tool
- For tools you rarely call — a server you almost never use still crowds the tool list, and taxes every turn on clients that load tools upfront; remove it.
- For simple local actions — sometimes a direct command (
gh,psql) is cheaper than routing through a tool, and returns only what you ask for.