The Model Context Protocol (MCP) is an open standard for connecting AI applications to tools and data. An MCP server exposes capabilities, such as tools the model can call and resources it can read. Any client that speaks the Model Context Protocol, from a desktop assistant to a coding agent, can use them without custom integration code. Anthropic released it in November 2024, and it now sits under the Linux Foundation’s Agentic AI Foundation.
MCP went from a spec to plumbing in two years. A count of the official MCP Registry in late October 2026 found more than 52,000 listed servers, and the July 2026 specification rebuilt the protocol to run statelessly behind ordinary load balancers. Security researchers spent the same period finding ways to abuse it.
The nine facts that follow explain how the Model Context Protocol works and what changed in 2026. To see how a real server behaves, I built one with the official Python SDK and timed it. The last sections cover how to use MCP without opening a hole in your systems.

The short version
- MCP standardises how AI apps talk to tools and data, so one server works with many clients.
- Servers offer three things: tools (actions), resources (readable data) and prompts (templates).
- The 2026-07-28 specification made the protocol stateless, hardened authorisation and added a formal extensions framework.
- My Python test server answered 500 local tool calls with a median of 1.35 ms, so protocol overhead is negligible next to model latency.
- The main risks are tool poisoning, prompt injection through tool results, over-broad credentials and running untrusted local servers.
Fact 1: MCP solves the N×M integration problem
Before MCP, every AI application needed its own connector for every tool. Five assistants and twenty services meant up to a hundred integrations, each written and maintained separately.
The Model Context Protocol turns that into N + M. Each tool vendor writes one MCP server, each AI application implements one MCP client, and any client can use any server. People often compare it to USB-C for AI: one plug shape instead of a drawer of adapters.
| Without MCP | With MCP | |
|---|---|---|
| Integrations to build | one per app and tool pair | one server per tool, one client per app |
| Tool descriptions | written differently for each model API | one schema format |
| Switching AI apps | rewrite the connectors | point the new app at the same servers |
| Discovery | read each vendor’s docs | the client asks the server what it offers |
Interest followed. Exploding Topics listed “model context protocol” at about 33,100 monthly searches with 100% growth, and Plushcap, which tracks how often companies mention a topic in their blogs and docs, recorded its busiest week for MCP mentions in early November 2026 (3,536 mentions between 2 and 8 November).
Fact 2: three roles, two transports

The Model Context Protocol defines three roles:
- Host: the AI application the user works in, such as a desktop assistant, an IDE or an agent platform.
- Client: the connector inside the host that keeps a connection to one server.
- Server: a program that exposes tools, resources and prompts for some system, such as GitHub, a database or a file folder.
Messages use JSON-RPC 2.0. Two transports carry them:
| Transport | How it works | Typical use |
|---|---|---|
| stdio | the host starts the server as a local process and talks over standard input and output | local tools: files, Git, local databases |
| Streamable HTTP | the client sends HTTP requests to a server URL, with optional streaming responses | remote and shared servers, SaaS integrations |
Local stdio servers run with your user’s permissions on your machine. Remote HTTP servers run elsewhere and authenticate you, usually with OAuth. That difference shapes most of the security advice later in this article.
Fact 3: servers offer tools, resources and prompts

| Primitive | Who controls it | What it is | Example |
|---|---|---|---|
| Tools | the model decides when to call | functions with typed inputs | create_issue, search_notes, run_query |
| Resources | the application or user chooses what to load | readable data addressed by a URI | notes://mcp, a file, a database schema |
| Prompts | the user picks them | reusable prompt templates with arguments | “summarise notes on a topic” |
Clients can offer features back to servers too:
- Sampling lets a server ask the client’s model to generate text, so a server can use AI without its own API key.
- Roots tell a server which folders or locations it may work in.
- Elicitation lets a server ask the user for more information in the middle of a task.
Tools get the most attention, because they let an agent act. Our guide to agentic AI explains the loop in which an agent decides which tool to call next.
Fact 4: a working MCP server takes about 40 lines
To see the protocol up close, I built a small notes server with the official Python SDK (the mcp package, version 2.3.0, where the high-level server class is now called MCPServer). It exposes three tools, one resource template and one prompt:
from mcp.server.mcpserver import MCPServer
from mcp.types import ToolAnnotations
NOTES = {"mcp": "MCP connects AI applications to tools and data through one protocol."}
server = MCPServer(name="devquarry-notes", version="1.0.0")
@server.tool(annotations=ToolAnnotations(readOnlyHint=True, openWorldHint=False))
def search_notes(query: str, limit: int = 3) -> list[str]:
"""Return saved notes whose text contains the query (case-insensitive)."""
return [f"{k}: {v}" for k, v in NOTES.items() if query.lower() in (k + " " + v).lower()][:limit]
@server.tool(annotations=ToolAnnotations(destructiveHint=True, idempotentHint=True))
def delete_note(note_id: str) -> str:
"""Delete a saved note by its id. This cannot be undone."""
return "deleted" if NOTES.pop(note_id, None) else "not found"
@server.resource("notes://{note_id}")
def read_note(note_id: str) -> str:
"""The full text of one note."""
return NOTES.get(note_id, "")
if __name__ == "__main__":
server.run("stdio")
The full version in the download package also has a word_count tool and a summarise_notes prompt. A second script connected to it as a client over stdio, listed what it offered, called the tools and timed 500 calls.
What the test showed
| Check | Result |
|---|---|
| Connection, including starting the server process | about 600 ms |
| Protocol version reported by the classic handshake | 2025-11-25 |
| Tools discovered | 3, each with a JSON Schema generated from the Python type hints |
| Resource templates and prompts discovered | notes://{note_id} and summarise_notes |
Call with a wrong argument type (text=42) | rejected by schema validation, returned as a tool error |
| 500 local tool calls | median 1.35 ms, 95th percentile 2.07 ms, slowest 8.29 ms |

First, the SDK turned ordinary Python type hints into the schema the model sees. search_notes(query: str, limit: int = 3) became a JSON Schema with query required and limit defaulting to 3. The docstring became the tool description. That description is what the model reads when deciding whether to call the tool, so it deserves the same care as a public API’s documentation.
Second, bad input never reached my function. Passing a number where a string was expected came back as a structured tool error, which an agent can read and correct.
Third, the protocol is fast. At about 1.4 ms per local call, MCP overhead disappears next to a model call that takes hundreds of milliseconds or more. Remote servers add network time, but the protocol itself is rarely the bottleneck.
The SDK version I used supports both the classic stateful handshake (which reported version 2025-11-25) and the newer stateless protocol version 2026-07-28. The next fact covers that change.
Fact 5: the 2026 spec made MCP stateless
On 28 July 2026, MCP’s maintainers published what the Agentic AI Foundation called “the largest revision of the protocol since its initial launch” (AAIF announcement).
| Change | What it means |
|---|---|
| Stateless core | servers can sit behind standard load balancers with no sticky sessions or shared session state |
| Authorisation hardening | clients must validate the iss parameter, closing a class of mix-up attacks; auth aligned with real OAuth 2.0 and OpenID Connect deployments |
| Enterprise-managed authorisation | organisations grant access to MCP servers centrally through their identity provider |
| Extensions framework | features such as MCP Apps and Tasks evolve outside the core release cycle |
| MCP Tasks | long-running operations return a durable handle a client can poll and resume after a restart |
| MCP Apps | servers can return interactive user interfaces as well as text |
| Deprecation policy | at least twelve months between deprecating a feature and removing it |

| Date | Milestone |
|---|---|
| Nov 2024 | Anthropic open-sources MCP |
| Mar 2025 | Streamable HTTP transport arrives in the spec |
| Nov 2025 | one-year anniversary specification (2025-11-25) |
| Dec 2025 | MCP moves to the Agentic AI Foundation under the Linux Foundation |
| Jan 2026 | MCP Apps, the first official extension |
| Jul 2026 | 2026-07-28 specification: stateless core, hardened auth, extensions |
| Oct 2026 | the official Ruby SDK reaches Tier 1; the AAIF reports 305 member organisations |
Fact 6: the ecosystem is large, and quality varies
A third-party count of the official MCP Registry by eSEOspace, made through the registry’s public API on 28 October 2026, found:
| Measure | Count |
|---|---|
| Servers listed | 52,141 |
| Marked active | 51,450 |
| Offering a remote (hosted) endpoint | 34,436 (66%) |
| Offering an installable package | 19,685 (38%) |
| Latest version published in October 2026 | 21,646 (42%) |
The same count found 31 security advisories published across the official MCP GitHub repositories between 1 and 28 October 2026, two of them critical.
Large numbers hide uneven quality. Many servers are thin wrappers around an API, and more than half had not published a new version in October. Prefer servers published by the vendor of the system they connect to, check maintenance activity, and read the tool descriptions before you connect anything that can write data.
Builders on Reddit describe the upside of this ecosystem well. An April 2026 r/LocalLLaMA post titled “I no longer need a cloud LLM to do quick web research” described a local model using Model Context Protocol tools for search and scraping, a small setup its author could inspect end to end.
Fact 7: MCP security is the part to get right

The Model Context Protocol gives models a standard way to act, which makes it a standard way to attack them too. The OWASP MCP Top 10 project, in beta, lists the main risk categories:
| ID | Risk |
|---|---|
| MCP01 | token mismanagement and secret exposure |
| MCP02 | privilege escalation via scope creep |
| MCP03 | tool poisoning |
| MCP04 | software supply chain attacks and dependency tampering |
| MCP05 | command injection and execution |
| MCP06 | intent flow subversion |
| MCP07 | insufficient authentication and authorisation |
| MCP08 | lack of audit and telemetry |
| MCP09 | shadow MCP servers |
| MCP10 | context injection and over-sharing |
How the main attacks work
- Tool poisoning: a malicious server hides instructions in a tool’s description. The description goes straight into the model’s context when the client lists tools, so the model may follow it, for example by reading a secret file and passing it as an argument.
- Injected tool results: a legitimate tool returns attacker-controlled content, such as a web page or an email, that contains instructions. This is prompt injection through the tool channel. Our prompt injection guide explains why no filter blocks it fully.
- Over-broad credentials: a server holds a token with far more access than its tools need, so any compromise or misuse reaches further.
- Unsafe local servers: a stdio server is a program running with your permissions. In April 2026, OX Security reported that the STDIO transport in the official SDKs will execute whatever command a configuration supplies, and argued this exposes thousands of deployments. Anthropic described the behaviour as by design and said sanitising inputs is the developer’s job, according to a summary by MCP.Directory.
Real vulnerabilities have followed these patterns. Examples catalogued in 2025 include CVE-2025-49596 in MCP Inspector (missing authentication allowing command launches, CVSS 9.4), CVE-2025-6514 in mcp-remote (command injection via a crafted authorisation URL, CVSS 9.6), and two path traversal flaws in the reference filesystem server (CVE-2025-53109 and CVE-2025-53110).
A practical MCP security checklist
- Install servers only from sources you trust, pinned to specific versions.
- Read every tool description before connecting a server, and re-check after updates.
- Give each server the narrowest credentials that cover its tools, ideally read-only.
- Require user approval for tools marked destructive or open-world.
- Run local servers in a container or sandbox when they handle untrusted data.
- Log every tool call with its arguments and result.
- Treat tool results as data, not instructions, in your agent’s design.
- Use the 2026 authorisation features (identity-provider-managed access) for remote servers in organisations.
Tool annotations help clients decide what needs approval, but MCP’s own blog warns they are hints. In my test server, delete_note carried destructiveHint=True. A careful client can use that to ask the user first; a malicious server can simply lie.
Fact 8: where MCP fits next to other agent standards
| Standard | Connects | Purpose |
|---|---|---|
| MCP | an AI application to tools and data | let a model use capabilities from any compatible server |
| A2A (Agent2Agent) | one agent to another agent | let agents from different systems delegate tasks to each other |
| OpenAPI | any client to an HTTP API | describe REST endpoints; often wrapped by MCP servers |
| Function or tool calling | a model to the application calling it | the model-level mechanism MCP builds on |
MCP does not replace function calling. It standardises how tools are discovered and invoked across applications, while each model provider still handles tool calls in its own API. Agent frameworks such as LangGraph, the OpenAI Agents SDK, Pydantic AI and Microsoft Agent Framework all support MCP servers as a tool source. Our comparison of AI agent frameworks covers those libraries, and automation tools such as n8n, Zapier and Make now speak MCP as well, as our n8n vs Zapier vs Make comparison shows.
Fact 9: how to start with the Model Context Protocol
For users:
- Pick a client you already use that supports the Model Context Protocol.
- Add one read-only server you trust, such as documentation search or a file folder.
- Watch which tools the model calls and approve actions manually at first.
For developers:
- Install an official SDK. The MCP project maintains SDKs for Python and TypeScript, among other languages.
- Start with two or three tools that wrap something you already have, with clear names and descriptions.
- Test with the MCP Inspector, keeping it updated, since older versions had the CVE above.
- Add a resource or prompt only when it helps the user.
- Before sharing the server, write down what credentials it needs and what each tool can change.
| Server idea | Tools | Risk level |
|---|---|---|
| Internal docs search | search_docs, get_page | low, read-only |
| Analytics queries | run_readonly_query, list_tables | medium, can leak data |
| Ticket system | search_tickets, create_ticket, comment | medium, writes data |
| Deployment control | deploy, rollback | high, needs approval on every call |
Model Context Protocol clients and hosts
A server is only useful if the tools people already use can connect to it. Support spread quickly after launch. Anthropic’s Claude Desktop app was the first host in November 2024, and during 2025 MCP support arrived in coding tools such as Cursor, in GitHub Copilot’s agent mode in Visual Studio Code, and in Google’s Gemini CLI. OpenAI added Model Context Protocol support to its Agents SDK in March 2025 and later to ChatGPT’s developer mode. Microsoft built it into Copilot Studio.
For the frameworks developers use to build their own agents, MCP support is now standard; our comparison of AI agent frameworks shows which ones connect to MCP servers. Automation platforms joined too: n8n has MCP client and server nodes, Zapier exposes its app actions through MCP, and Make exposes scenarios the same way, as our n8n vs Zapier vs Make comparison describes.
Client support is uneven in the details. Some hosts support only tools and ignore resources and prompts. Others handle stdio servers but not remote ones, or support OAuth only for certain providers. Before building a server for a specific audience, check which Model Context Protocol features their client actually implements.
Local or remote: choosing how to run a Model Context Protocol server
The registry count above shows that two-thirds of listed servers offer a hosted endpoint, and the 2026 specification was designed around remote use. Local servers still have a place. The choice comes down to who runs the server and what it touches.
| Question | Local (stdio) server | Remote (HTTP) server |
|---|---|---|
| Who runs it? | each user, on their own machine | the vendor or your platform team |
| What can it reach? | the user’s files and local programs | only what its own credentials allow |
| How do users sign in? | usually no sign-in; it runs as the user | OAuth or the organisation’s identity provider |
| How are updates delivered? | every user must update | updated once, on the server |
| Main risk | a malicious or buggy package runs with your permissions | a compromised server or over-broad tokens |
For internal tools used by many people, a remote server with central sign-in is easier to govern. For personal tools that need local files, a stdio server makes sense, as long as you install it from a source you trust and pin its version.
FAQ
What is the Model Context Protocol in simple terms?
It is a common language that lets AI applications use outside tools and data. A tool vendor builds one MCP server, and any AI app that supports MCP can discover and use its functions, without a custom integration for each app.
Who created the Model Context Protocol and who controls it now?
Anthropic created the Model Context Protocol and open-sourced it in November 2024. In December 2025 it donated the protocol to the Agentic AI Foundation, a Linux Foundation project, which governs it with maintainers from several companies. The foundation reported 305 member organisations in October 2026.
Is MCP the same as an API?
No. An API is one service’s interface. MCP is a protocol for describing and calling many services’ capabilities in a consistent way, so an AI model can discover tools at run time. Many MCP servers are wrappers around existing APIs.
Is MCP safe to use?
It can be, but it widens what an AI model can do, so it widens the damage a mistake or an attack can cause. Use trusted servers, minimal credentials, approval for destructive tools and logging. Tool poisoning and prompt injection through tool results are the main risks.
Do I need MCP to build an AI agent?
No. You can give a model tools directly through its provider’s function calling. MCP becomes worth it when you want the same tools to work across several applications or agents, or when you want to use the large catalogue of existing servers.
What to remember about the Model Context Protocol
The Model Context Protocol made tool access for AI a solved interface problem: write a server once and every compatible client can use it, at negligible protocol cost. The 2026 specification made it ready for large deployments. The open problems sit around the protocol: which servers to trust and which permissions to grant, plus how to keep a model from following instructions it finds in its own tool results.
To see how MCP-connected agents behave once they ship, read our guide to AI agents in production.


