The architecture of Model Context Protocol explained
Model Context Protocol solves the N x M integration problem by standardizing communication between AI hosts and servers. By mid-2026, the ecosystem reached scale with over 10,000 MCP servers in production and 97 million monthly SDK downloads.
Anthropic engineers David Soria Parra and Justin Spahr-Summers created the Model Context Protocol to solve the integration problem where developers built custom connectors for every data source and tool. Before this protocol, developers faced an "N x M" integration problem because they had to write unique logic for every combination of model and target service. I find the move to a standardized framework more practical than the vendor-specific connectors used in earlier approaches like the 2023 OpenAI function-calling API or the ChatGPT plug-in framework that required custom code for every new tool. The protocol defines three roles: the MCP host, the MCP client, and the MCP server. The MCP host is an AI agent that interacts with an LLM and needs services from one or more MCP servers. For each of these servers, the host creates a dedicated MCP client to handle communication. These clients and hosts typically run on the same machine, while the servers can be local or remote. Communication happens through JSON-RPC 2.0 messages. For local execution, the client spawns the server as a child process and uses STDIO for communication via standard input and output streams. For remote, distributed architectures, the protocol uses Server-Sent Events (SSE) over HTTP. The protocol reuses message-flow ideas from the Language Server Protocol. Software development kits exist for Python, TypeScript, C#, and Java. These tools allow AI assistants to access things like calculators, databases, and code repositories.
Capabilities and the 2026 Revision
Servers provide three types of interactions to the host: resources, tools, and prompts. Resources expose data to the AI, such as file paths or database rows, and use custom URIs for identification. Tools allow the model to perform actions or computations through a JSON payload that matches a defined JSON Schema. Prompts provide reusable, parameterized templates to help structure an AI workflow.
| Feature | Description |
|---|---|
| Resources | Data accessed via custom URIs |
| Tools | Actions executed via JSON Schema |
| Prompts | Parameterized workflow templates |
In July 2026, maintainers under the Agentic AI Foundation finalized a major revision of the specification that makes MCP stateless at the protocol layer by removing protocol-level session tracking and moving capability information to a meta parameter. This change brings the request model closer to the Claude Messages API. The revision also deprecated features with limited use, such as sampling and roots, though these remain functional for twelve months. Roots previously allowed clients to indicate relevant file-system locations to a server. In the past, sampling allowed a server to request a completion from the client’s model. Some core functionality, like the Tasks feature for long-running operations, moved into optional extensions. Because not all changes are backward compatible, servers using the new revision may require a compatibility layer to work with older clients. I find the deprecation of sampling and roots to be a surprising choice for a protocol that aims to expand agentic capabilities. Does the removal of session tracking complicate the management of long-running agent workflows?
Adoption, Security, and Scale
The protocol scale grew significantly by mid-2026, with over 10,000 MCP servers in production and monthly SDK downloads of over 97 million. OpenAI integrated the standard across its products in March 2025 and added third-party access to ChatGPT apps in September 2025. Salesforce began routing agent interactions through its Headless 360 platform via MCP in April 2026, and the company reported 4.5 million MCP calls by late May 2026. Microsoft also introduced native integration of MCP servers into the Windows operating system in May 2025 through the Windows On-device Agent Registry. This registry allows agents to discover and use connectors from local apps and remote servers. Windows includes a default connector for File Explorer that allows agents to access and modify files.
However, security remains a massive headache. In April 2025, Invariant Labs described tool poisoning attacks where malicious instructions hide in tool descriptions that the AI reads but users cannot see. I think this vulnerability is a significant failure because it exploits the assumption that tool descriptions are trustworthy. In July 2025, JFrog disclosed a critical flaw in mcp-remote, version 0.0.5 through 0.1.15, which allowed a malicious server to run arbitrary commands on a user’s machine. Researchers also found a flaw in the Anthropic MCP Inspector developer tool that allowed attackers to run code because the tool required no authentication by default. The US National Security Agency stated in May 2026 that the rapid proliferation of MCP outpaced the development of its security model. The specification now requires implementations to follow OAuth 2.1 security best practices and forbids token passthrough to prevent confused deputy risks in proxy servers. You should probably verify every tool description before you trust an agent to use it.