New researchThe State of Autonomous Agent Governance: what 300 CISOs and CSOs told us300 CISOs on agent governanceGet the report →
Agen.co
  • Platform
  • Solutions
  • Resources
  • Customers
  • Partners
  • Pricing
  • AI-Native Guide
LoginBook a demo
Platform
Platform overviewOne platform between every agent and everything it touchesArchitectureOne gateway between workforce and systemsWatch it liveThe portal governing, in real time
Capabilities
DiscoverFind the AI agents your systems recordedGovernPer-action verdicts in under 30msShieldAgenShield on the device, BrowserShield in the browser · EA
Foundation
Identity foundationAnchored to the IdP you already runExternal MCPCustomer and partner agents on the same policy plane
Watch the 2-minute platform tour →
By outcome
Confident AI adoptionSay yes to AI, without losing controlAccountability & auditA human answers for every agentAutonomous operationsGovernance that runs itselfRisk preventionStop the breach before the first action lands
By role
The CISOThe security teamIT & platformDevelopers
By industry
Financial servicesSoftware & technologyHealthcareConsumer & digital media
Use cases
Secure enterprise copilotsCopilot, Cursor, Claude Code, governed per actionGovern autonomous agentsAutonomy on the work, humans on the triggerStop AI data leaksBrowserShield stops the paste, early accessApprove agents in hoursOnboarding as a policy decisionMCP governanceInternal and external, one planeContinuous audit evidenceThe binder writes itself
The AI-Native Guide 2026: what an AI-native company actually runs →
Featured
State of Agent GovernanceNew research: 300 CISOs on the agents insideAI-Native Guide 2026Five stages, eight departments, one checklistPlatform comparisonsScored against vendor docs, every source publishedCustomer storiesProof from the field
Learn
All resourcesBlog & resource center ↗Learning CenterUse casesIndustriesWho it serves
Company
AboutTrust & securityPricingContact
Agen.cobyFrontegg
Identity-native agentic governance.
Scale AI agents. Keep a human accountable for every one.
SOC 2ISO 27001GDPR
Platform
OverviewDiscoverGovernPolicy engineShieldIdentity foundation
Solutions
Confident AI adoptionAccountability & auditAutonomous operationsRisk prevention
Learn
AI-Native Guide 2026Use casesAgen for WorkAgen for SaaSIndustriesWho it serves
Company
AboutCustomersTrust & securityPricingPartnersBook a demo
Resources
Blog & resource centerLearning CenterPlatform comparisonsMCP GatewayAgent governance researchLive sessionsDocs
© 2026 Agen.co by Frontegg
Privacy PolicyTerms of Service
  1. Learning Center
  2. /
  3. MCP
  4. /
  5. What Is the Model Context Protocol (MCP)?
MCPGuide

What Is the Model Context Protocol (MCP)?

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.

Agen.co
30 min read
What Is the Model Context Protocol (MCP)?

In this article

  1. What is the Model Context Protocol (MCP)?
  2. What Is MCP in Generative AI?
  3. The problem MCP solves: the N×M integration problem
  4. How the Model Context Protocol Works: Architecture
  5. MCP primitives: tools, resources, and prompts
  6. MCP transports: stdio vs Streamable HTTP
  7. How the Model Context Protocol Works for AI Agents
  8. How the MCP specification has evolved
  9. MCP security and governance
  10. The MCP ecosystem and adoption
  11. How MCP compares to related approaches
  12. MCP use cases
  13. Best practices for adopting MCP
  14. MCP implementation checklist
  15. Frequently asked questions
  16. Continue learning: MCP resources
  17. Securing MCP in production

In this article

  1. What is the Model Context Protocol (MCP)?
  2. What Is MCP in Generative AI?
  3. The problem MCP solves: the N×M integration problem
  4. How the Model Context Protocol Works: Architecture
  5. MCP primitives: tools, resources, and prompts
  6. MCP transports: stdio vs Streamable HTTP
  7. How the Model Context Protocol Works for AI Agents
  8. How the MCP specification has evolved
  9. MCP security and governance
  10. The MCP ecosystem and adoption
  11. How MCP compares to related approaches
  12. MCP use cases
  13. Best practices for adopting MCP
  14. MCP implementation checklist
  15. Frequently asked questions
  16. Continue learning: MCP resources
  17. Securing MCP in production

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.

What is the Model Context Protocol (MCP)?

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.

Who created MCP and who maintains it now

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.

What Is MCP in Generative AI?

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.

The problem MCP solves: the N×M integration problem

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.

N×M integrations versus one MCP standard: left, every host wired to every tool; right, all traffic through one connector
The Model Context Protocol turns integration work that grows with N times M into work that grows with N plus M.

How the Model Context Protocol Works: Architecture

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.

ParticipantRoleExample
MCP hostThe AI application that coordinates one or more clientsAn IDE, chat app, or coding agent
MCP clientHolds one dedicated connection to one server and relays context to the hostA connection object inside the host
MCP serverExposes tools, resources, and prompts to clientsA filesystem server, database server, or SaaS connector
One MCP host, one client per server: a host at centre with one-to-one client connections to local and remote servers
MCP architecture in one picture: the host holds one client per server, and each client owns a single dedicated connection.

The two layers: data layer and transport layer

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.

Data layer and transport layer in MCP: data layer over transport layer: JSON-RPC and primitives above stdio and HTTP
Separating the data layer from the transport layer is why the MCP specification can deprecate a transport without breaking a single tool definition.

The connection lifecycle

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.

  1. Discovery. Every server must implement 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.
  2. Self-contained request. Each request carries its own protocol version and client capabilities in _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.
  3. Result. Every result now carries a required resultType field. "complete" means the server is done.
  4. Round trip, if needed. "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.
How a stateless MCP request works: discovery, then a self-describing call returning a complete or input-required result
The stateless MCP request path: discovery once, then every call describes itself, with a retry round trip when the server needs more input.

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.

MCP primitives: tools, resources, and prompts

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.

Server primitives

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.

PrimitiveWhat it isDiscoveryUseWho controls it
ToolsExecutable functions the model can invoke to take actionstools/listtools/callModel-controlled
ResourcesData sources that supply context to the modelresources/listresources/readApplication-controlled
PromptsReusable templates that structure interactionsprompts/listprompts/getUser-controlled
Server primitives in the Model Context Protocol: tools, resources and prompts across discovery, access and control axes
The three server primitives compared: tools are the only one the model invokes on its own, which is why MCP best practices start there.

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.

Client primitives

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.

FeatureStatusWhat to do instead
Elicitation (client feature)CurrentNothing. 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)DeprecatedPass directories and files as tool parameters, as resource URIs, or through server configuration.
Sampling (client feature)DeprecatedIntegrate directly with an LLM provider API instead of borrowing the host's model.
Logging (server utility)DeprecatedWrite 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 and tasks

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.

MCP transports: stdio vs Streamable HTTP

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.

stdioStreamable HTTP
How it worksStandard input and output streams between local processesHTTP POST for client-to-server messages, with streamed responses
Typical useLocal servers running on the same machine as the hostRemote servers reachable over the network
Clients servedUsually one client per serverOften many clients per server
AuthenticationProcess-level, no network auth neededOAuth 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 headersNot applicableMcp-Method and Mcp-Name on every POST, so a gateway can route a call without parsing the JSON body
Stream recoveryNot applicableNone. 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 streamInline on the same pipesubscriptions/listen, a single long-lived POST-response stream
stdio versus Streamable HTTP: row-by-row transport comparison covering reach, clients, auth and routing headers
Streamable HTTP is the recommended remote MCP transport, and its required routing headers are what make gateway-level policy practical.

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.

How the Model Context Protocol Works for AI Agents

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.

  1. Discover what's available. The agent's host asks each connected server for its tools with 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.
  2. Choose a tool. The model reads each tool's name, description, and 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.
  3. Call it, with consent. The host sends 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.
  4. Pause if the server needs input. When a server needs a confirmation or a missing value, it asks through elicitation, and the agent resumes once the user answers (the round trip is the one described under the connection lifecycle).
  5. Use the result and repeat. The result comes back as a content array or as structured content, re-enters the model's context, and the model decides whether to call another tool or answer.

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 agentsWhat it means in practice
A clear trust boundaryEvery 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.
PortabilityAn 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.
InteroperabilityOne agent can use many servers in the same task, and one server can serve agents running in many different hosts.
Runtime discoveryNew tools reach the agent at request time, so its capabilities can change without redeploying the agent.
Vendor neutralityGovernance 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 answersThe 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.

How the MCP specification has evolved

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 milestoneWhat 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-26Streamable HTTP replaces the HTTP-plus-Server-Sent-Events transport for remote servers, and the older transport is deprecated.
2025-06-18Adds elicitation and structured tool output.
2025-11-25Adds 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-28A 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 onStatusMove to
initialize and notifications/initializedRemovedPer-request version and capabilities in _meta, plus server/discover
Mcp-Session-Id and protocol sessionsRemovedServer-minted handles passed as ordinary tool arguments
Server-initiated requestsReplacedMulti round-trip requests with InputRequiredResult
Roots and sampling (client features), logging (server utility)DeprecatedTool parameters, direct provider APIs, and stderr or OpenTelemetry
resources/subscribe, the HTTP GET endpointReplacedsubscriptions/listen
SSE resumability and Last-Event-IDRemovedRe-issue the request with a new request id
HTTP-plus-SSE transportDeprecatedStreamable 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/listRemovedPer-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 security and governance

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.

Top MCP security risks

RiskWhat it isWhy it matters
Indirect prompt injectionHidden instructions planted in data, tool output, or web pages that the model reads and obeysOWASP ranks prompt injection as the top risk for LLM applications, and it is the mechanism behind most agent hijacking
Tool poisoning and rug pullsMalicious instructions hidden in a tool's description or metadata, or a trusted tool silently swapped for a lookalikeThe attack needs no network exploit, because the tool description is already inside the model's context
Data exfiltrationA malicious or compromised server that reads more than its task requires and ships it out through a legitimate-looking callA malicious server sharing context with a legitimate one can drain data without tripping a single network control
Credential exposureMCP server configs often hold API keys, database credentials, and service tokens in plaintextCredentials in server configuration are rarely rotated and rarely scoped, so one leak is a durable one
Confused-deputy authorizationProxy servers using a static client ID with dynamic client registration can be tricked into reusing a user's existing consentLets 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 serversPoisoned registry entries, or unsanctioned servers connected outside any review processYou cannot govern a server you do not know is connected, and registries are now a supply-chain target in their own right
Over-privileged accessServers and agents granted far broader permissions than the task requiresExpands the blast radius of any single compromise or mistake

Mapping MCP risks to the OWASP MCP Top 10

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.

How to secure and govern MCP

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.

The Model Context Protocol trust boundary: untrusted tool output crosses a governed control point into internal systems
Securing MCP means putting one governed control point between untrusted tool output and the systems you actually care about.

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.

The MCP ecosystem and adoption

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.

How MCP compares to related approaches

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.

MCP vs traditional APIs and plugins

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.

MCP vs LLM function calling

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.

MCP vs RAG

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 vs A2A

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.

MCP use cases

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.

  • Developer tooling: a coding agent reads a repository through resources, then opens a pull request through a tool. The read side is low risk; the write side is where approval gates belong.
  • Data and analytics: an assistant calls a read-only query tool against a warehouse, gets a result set back in the content array, and answers over live data instead of a stale export.
  • Customer support: an assistant pulls ticket history as a resource, drafts a reply from a shared prompt template, and issues a refund through a tightly scoped tool that requires human confirmation via elicitation.
  • Internal knowledge: document stores and wikis exposed as resources so answers are grounded in company information rather than model recall.
  • Multi-tool orchestration: one agent coordinating several MCP servers across a multi-step workflow, which is the case where a single gateway stops being a nice-to-have.

Best practices for adopting MCP

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.

  1. Start read-only. Expose resources and low-risk tools before granting write or destructive actions. Almost every early win is a read.
  2. Scope tools tightly. Give each tool the narrowest permissions and the clearest inputSchema you can, so the model cannot construct a call you did not intend to allow.
  3. Vet and pin servers. Use trusted sources, review tool descriptions before you enable them, and pin versions so a server cannot silently change behavior underneath you.
  4. Govern centrally, then log everything. Route traffic through one control point for authentication, policy, and audit, and keep a trail of which agent called which tool with what arguments.

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.

MCP adoption maturity, stage by stage: four rising stages from read-only resources to gateway-governed production
MCP best practices as a maturity ladder: most teams stall at scoped tools, which is exactly where central governance starts paying for itself.

MCP implementation checklist

Turning those stages into something you can actually check off, here is the sequence for a first production MCP deployment on the current specification.

PhaseCheck
DesignDecide which capabilities are resources (application-controlled) and which must be tools (model-controlled). Anything destructive starts as a tool with human confirmation.
DesignPick the transport. stdio for local and desktop, Streamable HTTP for anything remote. Do not start new work on HTTP-plus-SSE.
BuildImplement server/discover. It is mandatory, and it is how clients learn your supported versions and capabilities.
BuildWrite a strict inputSchema for every tool, and return tools/list in a deterministic order.
BuildCarry no session state. If you need continuity, mint an explicit handle and take it back as a tool argument.
BuildHandle resultType on both sides, including the input_required round trip.
SecureOAuth 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.
SecureTreat every tool response as untrusted input. Never let tool output reach a privileged action without a filter in between.
SecureMap the deployment against the OWASP MCP Top 10 and name a control for each category you are exposed to.
OperateFront everything with one gateway. Emit Mcp-Method and Mcp-Name so it can route and police calls without parsing bodies.
OperateLog 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.
OperateRe-check the deprecated-features registry each revision. The twelve-month window (shorter for HTTP-plus-SSE) is a deadline, not a reprieve.

Frequently asked questions

What is the Model Context Protocol in simple terms?

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.

Who created MCP and who maintains it now?

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.

What problem does MCP solve?

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.

What are the three core MCP primitives?

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.

What is the difference between an MCP host, client, and server?

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.

What transports does MCP use?

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.

Is MCP secure? What are the main risks?

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.

Is MCP the same as an API?

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.

How is MCP different from LLM function calling?

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.

Do OpenAI, Google, and Microsoft support MCP?

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.

How should we evaluate MCP adoption?

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.

Is MCP stateful or stateless?

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.

What changed in the 2026-07-28 MCP specification?

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.

Is MCP free to use?

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.

What programming languages support MCP?

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.

Continue learning: MCP resources

This page is the hub for the broader MCP topic. Each guide below goes deeper on one part of it.

  • What is an MCP server - what a server actually is, what it exposes, and how a client reaches it, plus how to build, deploy, and secure one.
  • What are MCP tools - how tools are defined, discovered, and called, including input schemas.
  • MCP server hosting - how to run MCP servers in production, covering scaling, isolation, and uptime.
  • MCP catalogs and registries - how teams discover servers and decide which ones to trust.
  • MCP platform - what it takes to run MCP across an organization with shared policy and identity.
  • MCP security best practices - the defensive playbook, control by control.
  • MCP security risks - the full risk catalog with attack mechanics for each.
  • OWASP Top 10 for MCP - the ten protocol-specific risk categories and what each looks like in a real deployment.
  • Prompt injection - the mechanism behind most agent hijacking, direct and indirect.
  • MCP tool poisoning - how a malicious tool description attacks the model, and how to catch it.
  • MCP data exfiltration - the attack vectors that turn a legitimate-looking call into a data leak.
  • What is an MCP gateway - the central control point for authentication, policy, and audit across every server.
  • MCP proxy - how a proxy sits in the call path and what it can enforce there.
  • MCP access control - scoping what each agent and tool is allowed to reach.
  • MCP authentication - OAuth 2.1, protected-resource metadata, and getting tokens right.
  • MCP identity - knowing which human or agent identity is behind every call.
  • MCP compliance - proving your MCP controls to an auditor.
  • AI threat detection - catching anomalous agent and tool behavior in real time.
  • MCP vs A2A - how the tool-access layer differs from the agent-to-agent layer.

Securing MCP in production

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.

Keep reading

More from MCP

View all
MCP

What Is the OWASP Top 10 for MCP?

The OWASP Top 10 for MCP lists the ten biggest Model Context Protocol security risks. Here is every entry, real CVEs, and where to enforce each fix.

Agen.co·July 29, 2026
MCP

MCP Security: Risks, Best Practices & Enterprise Guide

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.

Keon ArminKeon Armin·March 13, 2026
MCP

MCP Access Control: Secure AI Agent Gateways

Learn how to implement MCP access control for AI agents with OAuth 2.1, RBAC, CBAC, and Zero Trust enforcement patterns for platform and security teams.

Keon ArminKeon Armin·March 13, 2026
View all guides