What is MCP? The Model Context Protocol is the open standard connecting AI agents to tools and data. How it works, the 2026-07-28 spec, security and governance.
The Model Context Protocol (MCP) is an open standard that lets AI models and agents connect to external tools, data, and systems through a single, consistent interface. Instead of building a custom integration for every model-and-tool combination, you expose your data and actions through an MCP server once, and any MCP-compatible AI application can use it.
This guide is written for developers, AI and platform engineers, and the technical product and security leaders building or governing agentic AI. It is current as of the 2026-07-28 specification revision, which includes breaking changes to the core protocol. If you implemented against an earlier revision, several things you built are now deprecated or removed, and this guide says which.
The Model Context Protocol is an open standard for connecting AI applications to the external context they need: the tools they can call, the data they can read, and the prompts that shape how they work. A useful first analogy is that MCP is a "USB-C port for AI applications," a universal connector that replaces a tangle of one-off cables with a single standard plug. That analogy explains the convenience. It does not explain that every port you open is also a new entry point that has to be secured and governed, which is why this guide gives security and governance as much room as mechanics.
Concretely, MCP defines how an AI application talks to an external program that supplies context. The AI application runs an MCP client, the external program is an MCP server, and they exchange structured messages over a defined protocol built on JSON-RPC 2.0. Because the interface is standardized, the same MCP server works across many AI hosts, and a single host can talk to many servers at once.
MCP was introduced by Anthropic in November 2024 as an open standard, created to solve the integration sprawl that came from wiring each AI model to each data source by hand. Adoption moved quickly: the protocol has been adopted by Claude, Cursor, Microsoft Copilot, Gemini, VS Code, ChatGPT, and other AI platforms, according to the Linux Foundation. In December 2025, Anthropic donated MCP to the Agentic AI Foundation, a directed fund under the Linux Foundation. The protocol is now governed as a vendor-neutral, community standard rather than a single company's project, with a published feature-lifecycle policy and an open change-proposal process on GitHub.
MCP in generative AI is the open standard that gives an LLM-based application, such as a chat assistant, a copilot, or an AI agent, live context and the ability to act. MCP connects the application to external tools and data at the moment a prompt needs them, instead of relying only on what the model learned in training.
A generative model on its own has two gaps. Its knowledge is frozen at training time and never included your private data, and it can produce text but can't change anything outside the conversation. MCP closes each gap with something a server offers: data the model can read answers the first, and tools it can call answer the second. So when someone asks what is MCP in gen AI, the short answer is that it's the layer that turns a text generator into an application that can look things up and get work done.
The idea isn't new. MCP's design takes inspiration from the Language Server Protocol, which standardized how support for programming languages plugs into code editors, and applies the same move to AI applications.
How much of this you notice depends on the application. In a chat assistant, MCP mostly fetches context when a person asks for it: a file, a ticket, a query result. In an agent, the model chains tool calls on its own across several steps. That pattern carries different risks, and it gets its own section once the architecture is in place.
Closing those two gaps used to mean building the same plumbing over and over. Before MCP, connecting AI to the outside world was an "N times M" problem. If you had N AI applications and M tools or data sources, you potentially needed a custom connector for every combination. Each integration carried its own authentication, its own data format, and its own maintenance burden. Adding one new tool meant updating every application that wanted to use it. Adding one new application meant rebuilding every integration it needed.
MCP collapses that matrix into a single standard. You expose a tool or data source once as an MCP server. Any MCP-compatible application can then discover and use it without bespoke glue code. The integration cost stops scaling with the product of N and M and starts scaling with N plus M. Three hosts and three tools go from nine bespoke connectors to six standard ones, and the gap widens fast: ten and ten is a hundred connectors before MCP and twenty after.
The Model Context Protocol works on a client-server architecture with three participants: a host (the AI application), one client per server inside that host, and servers that expose tools, data, and prompts. Clients and servers exchange JSON-RPC 2.0 messages over a transport layer, and every request carries everything the server needs to answer it.
That structure is what makes the N-plus-M arithmetic above hold. Each server is written once, and any host can attach a client to it. So any explanation of how the Model Context Protocol works comes down to three questions: who the participants are, which layer carries which job, and what happens to a single request. This section answers them in that order.
An MCP host is the AI application itself, such as a coding assistant, a chat application, or an IDE. The host creates one MCP client for each server it wants to use, and every client maintains a dedicated, one-to-one connection with a single MCP server. The server is the program that provides context: tools the model can call, data it can read, and prompt templates it can reuse (all three are defined properly in the next section). Servers can run locally on the same machine as the host, or remotely over the network. For a deeper look at the server side, see our guide to what an MCP server is, which also covers how to build, deploy, and secure one.
| Participant | Role | Example |
|---|---|---|
| MCP host | The AI application that coordinates one or more clients | An IDE, chat app, or coding agent |
| MCP client | Holds one dedicated connection to one server and relays context to the host | A connection object inside the host |
| MCP server | Exposes tools, resources, and prompts to clients | A filesystem server, database server, or SaaS connector |
MCP is organized into two layers. The data layer is the inner layer. It defines the protocol the client and server actually speak, built on JSON-RPC 2.0, and it covers request semantics, the core primitives, and notifications. The transport layer is the outer layer. It defines how messages physically move between client and server, including connection setup, message framing, required headers, and authentication. Keeping these separate means the same JSON-RPC messages work identically whether they travel over a local pipe or an HTTP connection, which is why the transport can be deprecated and replaced without touching the primitives.
If you learned MCP before mid-2026, this is the section that changed most. MCP used to be a stateful protocol: every connection opened with an initialize request, negotiated capabilities once, confirmed with a notifications/initialized message, and carried that agreement for the life of the session. The 2026-07-28 revision removed all of it. MCP is now stateless, with self-contained requests and per-request capability negotiation. The initialize handshake is gone, and so is the protocol-level session and its Mcp-Session-Id header.
What replaces it is simpler to reason about and harder to get subtly wrong. A connection still opens and closes, but it carries no protocol state in between.
server/discover, and a client may call it before any other request to learn the protocol versions the server supports, its capabilities, and its identity. On stdio, a client can also use it as a probe for whether a server speaks the current revision._meta, under io.modelcontextprotocol/protocolVersion and io.modelcontextprotocol/clientCapabilities. Clients should also identify themselves with io.modelcontextprotocol/clientInfo, and servers should return their serverInfo in the result's _meta. A version the server cannot serve comes back as UnsupportedProtocolVersionError.resultType field. "complete" means the server is done."input_required" means the server needs something first. It returns an InputRequiredResult whose inputRequests field says what, and the client re-issues the original request with inputResponses attached. This pattern is called Multi Round-Trip Requests, and it replaces the old server-initiated requests entirely.
The practical consequence is worth stating plainly. If a server needs to remember something across calls, the protocol will not hold it for you. The spec's answer is an explicit, server-minted handle passed back as an ordinary tool argument, which makes the state visible in the call rather than hidden in the connection. For anyone running a gateway or load balancer in front of MCP, this is a meaningful simplification: requests are independently routable because none of them depend on landing on the same server instance twice.
Once a request carries its own capabilities, the interesting question is what it is allowed to ask for. That is what primitives define. Each primitive has standard methods for discovery (a */list method) and for retrieval or execution, and the data layer keeps those method names consistent across every server you connect.
Servers expose three core primitives, which are the ones most people mean when they say "MCP." They differ in one dimension that is easy to miss and important for security: who decides when they are used. Tools are model-controlled, invoked when the model decides an action is needed. Resources are application-controlled, attached to context by the host. Prompts are user-controlled, chosen deliberately by a person. That split is the reason tools carry most of the risk in this section and most of the governance work later in the guide.
| Primitive | What it is | Discovery | Use | Who controls it |
|---|---|---|---|---|
| Tools | Executable functions the model can invoke to take actions | tools/list | tools/call | Model-controlled |
| Resources | Data sources that supply context to the model | resources/list | resources/read | Application-controlled |
| Prompts | Reusable templates that structure interactions | prompts/list | prompts/get | User-controlled |
Each tool carries a JSON Schema inputSchema that describes its parameters, so the model can construct valid calls and the server can validate them. A tool call returns a content array that can hold text, images, or embedded resources, which gives rich multi-format responses. Because clients discover tools at request time with tools/list, the set of available tools can change between calls, and servers are now expected to return that list in a deterministic order so clients and caches behave predictably. For a focused deep-dive, see what MCP tools are and how to use them.
This is the other half of the protocol that the 2026-07-28 revision reshaped. MCP used to define three client features that servers could reach back into: Roots, Sampling, and Elicitation. Separately, Logging was a server utility that let a server send log messages to the client. Roots, Sampling, and Logging are now formally deprecated, still functional inside a minimum twelve-month deprecation window (the earliest removal is the first revision on or after 2027-07-28) but not something new implementations should adopt. Elicitation is the only client feature the specification still lists as current.
| Feature | Status | What to do instead |
|---|---|---|
| Elicitation (client feature) | Current | Nothing. It is how a server asks the user for input or confirmation, and it is now delivered through the multi round-trip request pattern rather than a server-initiated call. |
| Roots (client feature) | Deprecated | Pass directories and files as tool parameters, as resource URIs, or through server configuration. |
| Sampling (client feature) | Deprecated | Integrate directly with an LLM provider API instead of borrowing the host's model. |
| Logging (server utility) | Deprecated | Write to stderr on stdio, or emit OpenTelemetry. Per-request log level moved into io.modelcontextprotocol/logLevel in _meta, and logging/setLevel was removed. |
The through-line is that servers no longer initiate anything. Where a server used to call back into the client with roots/list, sampling/createMessage, or elicitation/create, it now returns an InputRequiredResult and waits for the client to come back. One direction of travel, one place to apply policy.
Notifications are JSON-RPC messages with no response that let a server push updates, such as notifications/tools/list_changed when its available tools change. Subscribing to them changed shape: subscriptions/listen, a single long-lived POST-response stream for the notifications a client opts into, replaces both the old HTTP GET endpoint and the resources/subscribe and resources/unsubscribe pair. Along the way ping, logging/setLevel, and notifications/roots/list_changed were removed outright.
Tasks are the durable-execution wrapper for long-running or expensive operations, giving you deferred result retrieval and status tracking. If you last read about them as an experimental core feature, that has changed. Tasks moved out of the core specification and shipped as an official extension, io.modelcontextprotocol/tasks. You poll with tasks/get, send client-to-server input with tasks/update, and tasks/list no longer exists.
The transport layer defines how those messages actually move. Two transports are current, and the same JSON-RPC data layer rides on either one unchanged.
| stdio | Streamable HTTP | |
|---|---|---|
| How it works | Standard input and output streams between local processes | HTTP POST for client-to-server messages, with streamed responses |
| Typical use | Local servers running on the same machine as the host | Remote servers reachable over the network |
| Clients served | Usually one client per server | Often many clients per server |
| Authentication | Process-level, no network auth needed | OAuth 2.1 with protected-resource metadata. Clients register in a set order: pre-registered credentials if they have them, then Client ID Metadata Documents (CIMD), which clients and authorization servers should support, then Dynamic Client Registration (DCR), which is still allowed but deprecated. Clients must validate the iss parameter before redeeming an authorization code. |
| Required headers | Not applicable | Mcp-Method and Mcp-Name on every POST, so a gateway can route a call without parsing the JSON body |
| Stream recovery | Not applicable | None. Resumability, Last-Event-ID, and SSE event ids were removed, so a broken stream loses the in-flight request and the client must re-issue it with a new request id. |
| Notification stream | Inline on the same pipe | subscriptions/listen, a single long-lived POST-response stream |
The registration order matters more than it looks. A CIMD client ID works across authorization servers, while pre-registered and DCR credentials are bound to the authorization server that issued them, so CIMD is the path that scales when a client meets servers it has no prior relationship with.
Streamable HTTP is the recommended remote transport. It replaced the earlier HTTP-plus-Server-Sent-Events transport in the 2025-03-26 revision, which deprecated the older transport, and as of 2026-07-28 that transport is not merely superseded but formally Deprecated under the project's feature-lifecycle policy. If you are still running it, you have a defined window to migrate, not an indefinite one. For local development and desktop integrations, stdio remains the simplest and fastest option, because it avoids network overhead entirely.
The Model Context Protocol works for AI agents as a standard loop. The agent discovers which tools its connected servers offer at runtime, the model picks one from its name, description, and input schema, the host calls it with arguments that match that schema, and the structured result returns to the model's context to shape the next step.
Everything in the previous three sections exists to serve that loop: the participants that carry it, the primitives it calls, and the transports it travels over. This is what people mean by the MCP standard for AI agents. The loop is the same no matter which host runs the agent or which servers it reaches, so an agent doesn't need new glue code for each tool it picks up.
tools/list. That list can change, so a server can announce updates with notifications/tools/list_changed over subscriptions/listen, and the agent works from the current set rather than a hard-coded one.inputSchema and decides which one fits the task. The specification treats tool descriptions as untrusted unless they come from a trusted server, because a description is text the model will act on.tools/call with arguments that match the schema. The specification says hosts must obtain explicit user consent before invoking any tool, which is where approval gates for sensitive actions belong.The decision in step 2 is ordinary function calling (see MCP vs LLM function calling below). MCP's part is everything around that decision: where the tools come from, how the call travels, and who is allowed to make it. What that changes for an agent comes down to six effects.
| What MCP changes for agents | What it means in practice |
|---|---|
| A clear trust boundary | Every action the agent takes crosses one defined interface, so MCP becomes the natural place to apply identity, authorization, and audit. Once an agent can call real tools, the connection point is not plumbing. It is the boundary where governance has to be enforced. |
| Portability | An agent's tool set moves between hosts without rewriting integrations. The server you wrote for a coding assistant works unchanged when the same capability is needed in a chat app. |
| Interoperability | One agent can use many servers in the same task, and one server can serve agents running in many different hosts. |
| Runtime discovery | New tools reach the agent at request time, so its capabilities can change without redeploying the agent. |
| Vendor neutrality | Governance sits with the Linux Foundation's Agentic AI Foundation, so the agent's integrations don't move at one model vendor's commercial convenience. |
| Fresher, grounded answers | The agent works from current state pulled from authoritative sources at the moment it needs it, which lowers the risk of hallucinated answers and of actions taken on stale data. |
The first row is the one that decides whether MCP is an asset or a liability in your environment, and we return to it in depth below.
An agent that depends on a standard loop also depends on that loop changing predictably, which is why the protocol's versioning rules matter as much as its mechanics. The Model Context Protocol specification is versioned by date, and the project publishes a formal lifecycle policy that governs how features move between states. That policy is the reason you can read a changelog and know exactly what you have to do.
| Revision or milestone | What it established |
|---|---|
| 2024-11-05 (launch) | Anthropic releases MCP with JSON-RPC 2.0 messaging, the host/client/server model, and the three server primitives. |
| 2025-03-26 | Streamable HTTP replaces the HTTP-plus-Server-Sent-Events transport for remote servers, and the older transport is deprecated. |
| 2025-06-18 | Adds elicitation and structured tool output. |
| 2025-11-25 | Adds experimental tasks and URL-mode elicitation. |
| 2025-12 (governance) | Governance moves to the Agentic AI Foundation under the Linux Foundation. The protocol becomes vendor-neutral. |
| 2026-07-28 | A major, breaking revision, replacing 2025-11-25 as current: a stateless core, mandatory server/discover, multi round-trip requests, an extensions model, hardened authorization, and a formal deprecation policy. |
Three states now govern every feature: Active, Deprecated, and Removed. Anything that becomes deprecated keeps working for a minimum of twelve months before it can be removed, and the project maintains a registry of deprecated features so you can audit an implementation against it rather than guessing. There is one carve-out: HTTP-plus-SSE, deprecated back in 2025-03-26 and reclassified under the new policy, can be removed as early as three months after the lifecycle proposal (SEP-2596) reaches Final, not twelve. If you built against an earlier revision, this table is your migration list.
| If you relied on | Status | Move to |
|---|---|---|
initialize and notifications/initialized | Removed | Per-request version and capabilities in _meta, plus server/discover |
Mcp-Session-Id and protocol sessions | Removed | Server-minted handles passed as ordinary tool arguments |
| Server-initiated requests | Replaced | Multi round-trip requests with InputRequiredResult |
| Roots and sampling (client features), logging (server utility) | Deprecated | Tool parameters, direct provider APIs, and stderr or OpenTelemetry |
resources/subscribe, the HTTP GET endpoint | Replaced | subscriptions/listen |
SSE resumability and Last-Event-ID | Removed | Re-issue the request with a new request id |
| HTTP-plus-SSE transport | Deprecated | Streamable HTTP |
| OAuth Dynamic Client Registration (DCR) | Deprecated (still a MAY) | Pre-registered client credentials where you have them, otherwise Client ID Metadata Documents (CIMD). DCR remains a permitted fallback until its earliest removal, the first revision on or after 2027-07-28. |
ping, logging/setLevel, tasks/list | Removed | Per-request io.modelcontextprotocol/logLevel; poll with tasks/get |
The other structural change is the extensions model. Rather than growing the core specification indefinitely, capabilities now ship as named, independently versioned extensions that a client and server can negotiate. Tasks was the first major feature to move out this way. MCP Apps, which lets a server render interactive inline UI inside the host rather than returning text, and Skills over MCP are shipping on the same model. This is how the protocol keeps a small, auditable core while still growing, and it is why the security question below is about what you enable rather than what the standard allows.
MCP is powerful precisely because it lets a model take real actions and read real data. That same power is why security cannot be an afterthought. Every MCP server you connect is a new entry point into your systems, and a model that follows instructions is a model that can be tricked into following the wrong ones. Treating MCP connections as a trust boundary, not just a convenience, is the single most important shift for any team adopting it.
| Risk | What it is | Why it matters |
|---|---|---|
| Indirect prompt injection | Hidden instructions planted in data, tool output, or web pages that the model reads and obeys | OWASP ranks prompt injection as the top risk for LLM applications, and it is the mechanism behind most agent hijacking |
| Tool poisoning and rug pulls | Malicious instructions hidden in a tool's description or metadata, or a trusted tool silently swapped for a lookalike | The attack needs no network exploit, because the tool description is already inside the model's context |
| Data exfiltration | A malicious or compromised server that reads more than its task requires and ships it out through a legitimate-looking call | A malicious server sharing context with a legitimate one can drain data without tripping a single network control |
| Credential exposure | MCP server configs often hold API keys, database credentials, and service tokens in plaintext | Credentials in server configuration are rarely rotated and rarely scoped, so one leak is a durable one |
| Confused-deputy authorization | Proxy servers using a static client ID with dynamic client registration can be tricked into reusing a user's existing consent | Lets an attacker obtain authorization the user never intended to grant. The 2026-07-28 authorization specification requires proxy servers that use static client IDs to obtain user consent for each dynamically registered client |
| Registry and shadow servers | Poisoned registry entries, or unsanctioned servers connected outside any review process | You cannot govern a server you do not know is connected, and registries are now a supply-chain target in their own right |
| Over-privileged access | Servers and agents granted far broader permissions than the task requires | Expands the blast radius of any single compromise or mistake |
The list above is the practitioner's view. There is now a standards-body view to check it against: OWASP publishes a dedicated MCP Top 10, separate from the LLM Top 10, covering ten risk categories specific to the protocol rather than to language models generally. It is the right artifact to map your threat model onto, because it names protocol-level problems that a generic LLM risk list does not, including shadow MCP servers and software supply-chain tampering.
Using it well is a two-step exercise. Map each connected server to the categories it plausibly exposes, then confirm you have a named control for each. Most teams find the gap is not in prompt-injection defenses, which get attention, but in the categories about provenance and inventory. Our explainer on the OWASP Top 10 for MCP walks through the ten categories and what each one looks like in a real deployment.
Apply least privilege so each server and tool gets only the access it needs. Keep a human in the loop for sensitive or irreversible actions. Isolate and sanitize inputs and outputs, and treat every tool response as untrusted data rather than trusted instruction. Enforce strong identity and authorization: for remote servers that means OAuth 2.1 with protected-resource metadata, issuer-bound credentials, and iss validation before any authorization code is redeemed. And rather than securing dozens of servers one at a time, route MCP traffic through a centralized control point that can apply policy, authentication, and audit logging in one place.
That central control point is where an MCP gateway and an MCP proxy earn their place. They give you a single chokepoint to authenticate clients, scope what each agent can reach, filter calls, and produce an audit trail across every connected server. The required Mcp-Method and Mcp-Name headers make this materially easier than it used to be, because a gateway can route and police a call without parsing the JSON body first. Governance then splits into two ongoing jobs: knowing which identity is behind every call, covered in our guide to MCP identity, and proving it to an auditor, covered in our guide to MCP compliance. For the full risk catalog and defenses, see the deeper guides on MCP security risks, MCP security best practices, MCP access control, and MCP authentication.
Governing what you connect only works if you know who is publishing it, which makes the shape of the ecosystem a security question as much as a market one. The major AI providers back MCP: OpenAI, Google, and Microsoft are platinum members of the Agentic AI Foundation that stewards it, alongside Anthropic, and the protocol is supported in products such as Microsoft Copilot, Gemini, and ChatGPT. Official software development kits exist for many languages, and the project reports SDK downloads close to half a billion per month across its Tier 1 SDKs as of the 2026-07-28 release, which is the clearest available signal that this is infrastructure rather than a trend.
Between the SDKs and production sit the discovery and hosting layers. Developer tooling such as the MCP Inspector helps you test servers locally. MCP catalogs and registries help teams find servers and decide which ones they trust, which is exactly where registry poisoning becomes a supply-chain concern rather than a hypothetical. Once a server is chosen, MCP server hosting covers running it reliably, and an MCP platform covers doing that across an organization with shared policy and identity. With governance under the Linux Foundation's Agentic AI Foundation and a published deprecation policy behind it, the protocol is positioned as durable, vendor-neutral infrastructure rather than one vendor's roadmap.
MCP is easiest to misjudge when you treat it as a competitor to something you already use. In practice it is almost always a layer rather than a replacement: it sits on top of the APIs you have, underneath the function calling your model already does, and beside the agent-to-agent protocols that handle a different problem entirely. Four comparisons come up constantly.
A traditional API is built for a developer to call from code at build time. MCP is built for an AI model to discover and call at runtime, with machine-readable schemas and descriptions designed for a model to reason about. MCP often sits in front of existing APIs: the MCP server wraps your API and exposes it in a form an agent can use safely. They are layers, not competitors.
Function calling is a model capability that lets an LLM emit a structured request to invoke a function. MCP is the standard that defines where those functions live, how they are discovered, and how the call is transported and secured. In practice they work together. The model uses function calling to decide it wants a tool, and MCP provides and governs that tool. MCP makes function calling portable across hosts instead of hard-coded into one application.
Retrieval-augmented generation (RAG) is a technique: it retrieves relevant documents from a vector database or knowledge base and adds them to the model's context before it answers, which improves accuracy. MCP is a protocol: it standardizes how an AI application reaches external systems, covering not only retrieval but tool execution, prompts, and live interaction. The two are complementary. An MCP server can use RAG internally and expose the results as resources, and an application can use RAG for knowledge and MCP for action.
MCP connects an AI application to tools and data. A2A, now at version 1.0.0 and part of the same Agentic AI Foundation that now stewards MCP, covers how autonomous agents discover each other and hand off tasks. Its payloads carry no user or client identity, which is established at the transport layer instead. They address different layers of an agentic system and are frequently used together. For a detailed comparison, see MCP vs A2A.
With the boundaries drawn, the question becomes where MCP actually lands. Each of these leans on a different primitive, which is a useful way to predict how much governance a use case will need.
content array, and answers over live data instead of a stale export.Those use cases have a natural order of difficulty, and the teams that get MCP into production without incident tend to follow it rather than jump to the end. Treat adoption as four stages, not a switch.
inputSchema you can, so the model cannot construct a call you did not intend to allow.Where to start depends on your role. If you only want to use MCP tools, the fastest path is an application that already supports MCP, such as Claude Desktop, VS Code, or Cursor: install a pre-built server and use it inside your existing workflow. If you are building a server or a client, official SDKs exist for TypeScript, Python, Java, Go, and C#, and the SDK handles the JSON-RPC plumbing, capability negotiation, and transport, so a basic server stays small. The official MCP quickstart guide is the place to begin.
Turning those stages into something you can actually check off, here is the sequence for a first production MCP deployment on the current specification.
| Phase | Check |
|---|---|
| Design | Decide which capabilities are resources (application-controlled) and which must be tools (model-controlled). Anything destructive starts as a tool with human confirmation. |
| Design | Pick the transport. stdio for local and desktop, Streamable HTTP for anything remote. Do not start new work on HTTP-plus-SSE. |
| Build | Implement server/discover. It is mandatory, and it is how clients learn your supported versions and capabilities. |
| Build | Write a strict inputSchema for every tool, and return tools/list in a deterministic order. |
| Build | Carry no session state. If you need continuity, mint an explicit handle and take it back as a tool argument. |
| Build | Handle resultType on both sides, including the input_required round trip. |
| Secure | OAuth 2.1 with protected-resource metadata. Register clients in the spec's order: pre-registered credentials if you have them, then Client ID Metadata Documents, and Dynamic Client Registration only as a deprecated fallback. Key persisted credentials by issuer, and validate iss before redeeming a code. |
| Secure | Treat every tool response as untrusted input. Never let tool output reach a privileged action without a filter in between. |
| Secure | Map the deployment against the OWASP MCP Top 10 and name a control for each category you are exposed to. |
| Operate | Front everything with one gateway. Emit Mcp-Method and Mcp-Name so it can route and police calls without parsing bodies. |
| Operate | Log every call with the agent identity behind it, and wire the log into AI threat detection so anomalous tool use surfaces in real time rather than at audit. |
| Operate | Re-check the deprecated-features registry each revision. The twelve-month window (shorter for HTTP-plus-SSE) is a deadline, not a reprieve. |
MCP is an open standard that lets AI applications connect to external tools and data through one consistent interface, so a tool built once works with any MCP-compatible AI app. Chat assistants, coding assistants, and AI agents all use it, and each MCP server can offer three things: tools to call, data to read, and reusable prompts.
Anthropic introduced MCP in November 2024. In December 2025 it was donated to the Agentic AI Foundation under the Linux Foundation, making it a vendor-neutral open standard. Changes now go through an open change-proposal process on GitHub, and a published feature-lifecycle policy defines how features are added, deprecated, and removed.
MCP solves the N-times-M integration problem. Instead of a custom connector for every model-and-tool pair, you expose a tool once as an MCP server and any AI app can use it. Integration work then grows with N plus M: ten apps and ten tools need twenty standard connections instead of a hundred custom ones.
Tools are executable functions the model invokes, resources are data the application attaches to context, and prompts are reusable templates a user chooses, so control sits with the model, the application, and the user respectively. Elicitation is the only client feature not deprecated. Roots and sampling are deprecated, as is logging, a server utility.
The host is the AI application, the client is a connection object inside the host that talks to exactly one server, and the server is the program that exposes tools, resources, and prompts. A host runs one client per server it uses, and servers can run locally on the same machine or remotely over the network.
Two transports are current: stdio for local servers on the same machine, and Streamable HTTP for remote servers, which use OAuth 2.1 when authorization is required. Every Streamable HTTP POST must carry Mcp-Method and Mcp-Name headers so gateways can route calls. The older HTTP-plus-SSE transport, deprecated since 2025-03-26, is now formally Deprecated under the lifecycle policy.
MCP can be secured, but it widens the attack surface. Main risks include indirect prompt injection, tool poisoning, credential exposure, confused-deputy authorization, and unvetted or shadow servers. OWASP publishes a dedicated MCP Top 10 that maps these protocol-level risks to named categories, including shadow MCP servers and software supply-chain tampering.
No. An API is called by developers from code. MCP is discovered and called by AI models at runtime, and an MCP server often wraps an existing API to make it safe for agents. The difference is design time versus runtime: MCP adds machine-readable schemas and descriptions written for a model to reason about.
Function calling is how a model requests a tool. MCP is the standard that defines, discovers, transports, and secures those tools across applications. They work together: the model uses function calling to decide it wants a tool, and MCP supplies it. Without MCP, function definitions are hard-coded into one app; with it, they're portable across hosts.
Yes. Microsoft Copilot, Gemini, and ChatGPT are among the AI platforms that have adopted MCP, and OpenAI, Google, and Microsoft are platinum members, alongside Anthropic, of the Linux Foundation's Agentic AI Foundation, which stewards the protocol. Official SDKs cover TypeScript, Python, Java, Go, and C#, so support isn't tied to any one vendor.
Evaluate MCP on one read-only use case first. Confirm your host and the servers you'd use support the 2026-07-28 revision, including stateless requests and server/discover. Vet and pin each server, require per-call identity and an audit trail at one control point, and set exit criteria before expanding to write actions, following this guide's adoption stages.
Stateless, as of the 2026-07-28 specification. Every request is self-contained and carries its own protocol version and client capabilities. The initialize handshake and the protocol-level session id were removed, so servers cannot assume prior context. When state must persist across calls, the server mints a handle passed back as a tool argument, so any instance can serve any request.
The protocol became stateless, the initialize handshake and session header were removed, server/discover became mandatory, roots and sampling and logging were deprecated, tasks moved to an official extension, and multi round-trip requests replaced server-initiated calls. Dynamic Client Registration was deprecated in favor of Client ID Metadata Documents, and subscriptions/listen replaced the old subscription endpoints.
Yes. MCP is an open-source protocol under a permissive license, and the specification, official SDKs, and reference implementations are freely available. There is no licensing fee to build, distribute, or run MCP clients and servers, whether for commercial or personal use. Your real costs are the infrastructure you run and the governance you put around it.
Official MCP SDKs cover TypeScript, Python, Java, Go, and C#, among others. Community SDKs extend support to languages such as Ruby and Swift, so most engineering teams can build MCP servers and clients in the stack they already use. Check an SDK's maintenance tier on modelcontextprotocol.io before you commit to it.
This page is the hub for the broader MCP topic. Each guide below goes deeper on one part of it.
Connecting models to tools is the easy part. Doing it without opening your systems to prompt injection, credential leaks, and over-privileged agents is the hard part, and it is exactly where a governed MCP layer pays off. If you are moving MCP from a prototype into production, put a control point in front of it that handles identity, authorization, policy, and audit across every server you connect. Learn how a purpose-built MCP gateway helps teams secure and govern MCP at scale.
Written by
Agen.co
What is MCP security? Learn the top risks - prompt injection, token theft, supply chain attacks, and enterprise best practices to secure AI agent tool calls.