Delve · AI Infrastructure · 8 min read
MCP: the wire protocol that turns tools into a shared ecosystem
MCP replaces a per-tool, per-app connector matrix with one JSON-RPC contract — and standardizes an injection channel along with it.
The short answer
MCP (Model Context Protocol) is an open, JSON-RPC 2.0-based protocol that standardizes how an AI application connects to external tools and data, so a capability is written once as a server and consumed by any MCP-speaking host. It matters because it replaces a per-tool, per-app connector matrix with one contract, making integrations portable across hosts and model vendors.
The abstraction is narrower than it sounds. MCP standardizes transport, discovery, and invocation — it does not standardize what a tool means or whether its output is trustworthy. So the same design that lets you plug an untrusted third-party server into three different agents in an afternoon also hands attackers a uniform channel into every one of them.
- Wire format JSON-RPC 2.0
- Core primitives Tools, resources, prompts
- Transports stdio and Streamable HTTP
The N×M connector tax
Before MCP, connecting an AI application to the outside world was bespoke work every time. If you had N systems to reach (a database, a ticketing tool, a file store) and M applications that needed them (a desktop assistant, an IDE agent, an internal workflow bot), you built and maintained up to N×M connectors — each with its own auth handling, schema mapping, and error semantics. Nothing about one connector made the next one cheaper. MCP reframes that as a protocol problem. One server per system implements the protocol once; any host that speaks MCP can consume it. The matrix collapses from N×M to N+M. Anthropic open-sourced the specification rather than shipping it as a product, which is the detail that matters strategically: the value of a protocol is a function of how many independent implementations exist, and an open spec is the only credible way to get competitors to build them. The compression is real but partial. MCP gives you a common envelope for discovery and invocation, not a common semantic model. Two servers both exposing a search tool can behave completely differently. What you buy is integration labor, not interoperability of meaning .
Hosts, clients, servers, and what crosses the wire
The mental model has three roles. The host is the AI application — the thing with the model and the user. Inside it, one client is created per server connection. The server is the capability provider. Every message between client and server is a JSON-RPC 2.0 request, response, or notification . Servers expose three primitives, and the distinction is load-bearing: - Tools are executable functions the model can invoke, including state-changing ones. - Resources are read-only context the application can fetch and place in the prompt. - Prompts are reusable templates a user or host can select. Clients can expose capabilities back the other way — sampling (asking the host's model to generate), root directory lists, and argument completion — so a server is not purely a passive callee . At initialization the two sides perform a capability negotiation: each declares what it supports, and neither may assume a capability the other did not declare. Tool inputs are described with JSON Schema, which is what lets a model construct valid arguments. Transport is deliberately thin: stdio for a local process the host spawns, and Streamable HTTP for remote servers, which replaced an earlier HTTP+SSE transport. The spec also states the protocol is stateless at the request level in its newer revisions, pushing session context into per-request metadata rather than connection state .
Why the abstraction outperforms the protocol
The protocol is unremarkable engineering. The consequence is not. Once capability lives in a server rather than inside an application, three things change. First, portability. A single "orders lookup" server — one process wrapping an internal order API with a lookup_order tool and a JSON Schema for its arguments — can be consumed unchanged by a desktop assistant, an IDE coding agent, and an in-house agent. No rewrite, no per-host SDK. That is the concrete case worth holding onto: one server, three hosts, zero connector code. Second, an ecosystem effect. Third-party servers stop being plugins for one vendor and become shared infrastructure. Public MCP server directories exist and are growing, though the retrieved evidence does not give a reliable count, so treat growth claims as directional rather than measured. Third, runtime tool selection becomes an operational surface. If a host can enumerate tools from many servers, the prompt's tool list becomes something you can compose, route, and swap per request. That is also where it breaks down: large tool catalogs cause prompt bloat and degrade selection accuracy, which motivates hybrid designs that retrieve relevant tool metadata semantically before injecting it .
Standardizing access standardizes the attack channel
This is the caveat that should survive the hype. A uniform protocol for feeding external text into a model is a uniform prompt injection channel. Tool results are untrusted input; the model cannot reliably distinguish data from instructions. Tools themselves are described in natural language, and that metadata is an attack surface. Research on Log-To-Leak documents a post-hoc logging attack in which an injected directive causes an extra attacker-controlled call after the legitimate one: across 18 model–server pairs, attack success ranged from roughly 63% to 100%, with logging accuracy of roughly 77% to 96%, while target-task completion shifted by at most about 6.6 percentage points in 16 of those pairs . That last number is the important one — the task succeeding tells you nothing about whether the agent leaked data. Three evaluated defenses left residual success above 55% in one configuration, and an instruction detector flagged 85.53% of benign descriptions, which is the false-positive cost of the naive fix . Beyond injection: third-party servers are unaudited code holding credentials; HTTP authorization flows invite confused-deputy and token-passthrough failures; tool descriptions can be quietly redefined between sessions (a "rug pull"); and two servers can shadow each other's tool names. Because MCP standardizes syntax and not semantics, a host cannot validate what a tool does. The spec's authorization model is explicitly still evolving, with open discussion threads on its design .
Where MCP stops
Over-generalizing MCP is the most common error. Three adjacent things are not the same thing. Function calling is the model-side mechanism: the model emits a structured call, the application executes it. MCP is the layer beneath that — it supplies which functions exist, their schemas, and how to reach them. Function calling without MCP is fine; it just means you hardcode the tool list. MCP without function calling is not a thing. An OpenAPI wrapper is a competing way to get tool definitions: point at an existing HTTP API description and generate tools from it. That is cheaper when the API already exists and is well-described, but it inherits REST semantics, gives no discovery or negotiation, and provides no standard for local processes. MCP's advantage is bidirectionality and a real lifecycle; its cost is that someone must write and maintain a server. Agent-to-agent protocols solve a different problem: delegation and coordination between autonomous agents, not context supply to one model. MCP is how an agent reaches the world; A2A-style protocols are how agents reach each other. Confusing them leads to architectures that try to solve delegation with a tool call.
Sources
- Log-To-Leak: Prompt Injection Attacks on Tool-Using LLM Agents via the Model Context Protocol - Several features on this page require Premium Access — ACM Digital Library (2026)
- The Model Context Protocol (MCP) Emergence, Technical Architecture, and the Future of Agentic AI Infrastructure — Zenodo (2025)
- Overview - Model Context Protocol — Model Context Protocol (2026)
- Overview - Model Context Protocol — modelcontextprotocol.org (2026)
- Overview - Model Context Protocol — Model Context Protocol (2026)
Related field guides
- MCP vs function calling: two contracts, not rivals — Function calling is how a model emits a structured request; MCP is how an application publishes tools and context to any AI client.
- Designing tools that AI agents can actually use — A practical field guide to schemas, context budgets, recoverable side effects, and trace-based evaluation.
- Why AI Agents Fail in Production: Reliability, Drift, and Blind Spots — Agents rarely break; they compound. Four failure layers explain why impressive demos collapse at length, and which design choices change the odds.
Ask your own question · Back to Delve · More in this cluster