What is MCP?In short: It is an open protocol that allows AI models to securely "connect to your data and tools". It was published by Anthropic in November 2024 and donated to the Agentic AI Foundation, a subsidiary of the Linux Foundation, in December 2025. It is now the de facto common standard for the entire AI tool ecosystem.
But what this article really wants to address is something else:On July 28, 2026, the MCP specification underwent a major revision that is no longer backward compatible.The protocol has been changed from stateful to stateless, the initialization handshake has been removed, and Roots and Sampling have been marked as deprecated. This means that the MCP tutorials you find now when searching in Chinese...A significant portion of the descriptions pertain to designs that have already been removed.The old concepts and new specifications will be explained separately below.
This article will answer the following questions
- What is MCP? How does it differ from function calling?
- Why can an agreement become an industry standard within a year?
- What are the responsibilities of Host, Client, and Server?
- When should you use Tools, Resources, or Prompts?
- What exactly changed in the major update on July 28, 2026, and should I follow it?
- What parts of the server I wrote in 2025 need to be changed now?
- How to choose between STDIO and Streamable HTTP?
- Why is it said that the most underestimated aspect of MCP is its security?
- In what situations should you not use MCP?
- What four things should you decide before connecting to your first server?
I. What is MCP? In short...
MCP stands for Model Context Protocol. It defines a standard interface that allows AI applications (such as Claude, ChatGPT, and various IDEs) to call external tools and read external data in a unified way.
More precisely, MCP doesn't solve the problem of "making the model smarter," but rather "enabling the model to access things it couldn't otherwise access." The model itself only produces output based on the input; it doesn't know what files are in your Google Drive, how many orders are in your database, or how to issue a Jira invoice for you. MCP is the connection that links these capabilities.
A common analogy is "the USB-C of AI." This analogy captures the essence: before USB-C, each device had its own connector; before MCP, each AI application had to write a dedicated integration for each data source.
II. Why is it needed: From M×N to M+N
Suppose there are M AI applications on the market, and N systems you want to connect to (Slack, GitHub, Postgres, Notion, etc.). Without a common protocol, connecting them all would require writing... M×N The system is integrated, and each system needs to be maintained independently.
With a common agreement in place, each AI application only needs to implement the client once, and each system only needs to implement the server once, for a total of M+N That's the whole reason MCP exists, and why it became a standard within a year—it solves a structural combinatorial explosion problem, not the functional requirements of any particular manufacturer.
| No common agreement | MCP | |
|---|---|---|
| Integration quantity | M × N | M + N |
| Who is responsible for maintenance? | Each AI application maintains its own integration. | The data source maintains its own server. |
| The cost of replacing AI applications | All integration and rewriting | Zero—Just switch to a different client. |
| Add a new source | Every AI application needs to be modified. | Write a server so all clients can use it immediately. |

III. Three roles: Host, Client, Server
To understand MCP, you only need to remember three roles, and their roles are very clearly defined:
- HostThe actual AI application that the user is operating. Claude Desktop, Claude Code, ChatGPT, and your IDE are all hosts. It is responsible for deciding which servers to connect to, whether to give a certain tool to the model, and when to ask the user.
- ClientThe internal protocol implementation of the host: one client corresponds to one server connection, responsible for sending and receiving messages. You usually won't encounter it directly.
- ServerThe end that provides the capability. This could be a program running on your local machine (e.g., reading your file system) or a remote HTTP service (e.g., your company's internal API).
The key point is:The server never speaks directly to the model.It delegates capabilities to the host, which decides whether to expose them to the model and whether to ask the user first. This design forms the basis for the "Security" section later—all access control occurs on the host, not the server.

IV. What can the Server provide: Tools, Resources, Prompts
An MCP server can provide three things to the outside world, and the difference between them lies in "who decides who to use":
| ability | Who decides to use it? | Typical example |
|---|---|---|
| Tools(tool) | The model decides for itself. | Query the database, send API requests, create profiles |
| Resources(resource) | Application or user decision | Archive content, data table structure, documents |
| Prompts(Sample prompt) | User actively selects | Pre-written processes like "help me code review this PR" |
In practice Tools account for over 90% of usage.When most people say "write an MCP server," they actually mean "package a set of tools."
Here's an important update: Originally, there were three other capabilities provided to the server by the client: Roots, Sampling, and Logging.It has been marked as obsolete in the specifications released on July 28, 2026.There is a 12-month transition period. Newly written servers should no longer depend on them; see the next section for details.
V. Major revision on July 28, 2026: This section is the most lacking piece of Chinese material.
The scope of this revision, according to the official description, is a rewrite. It changes MCP from a "connection-oriented, stateful" protocol to a "request-oriented, stateless" protocol. If the tutorial you are reading does not mention the following points, it is based on the old version.

1. The agreement becomes stateless.
The biggest cut:Remove the initialize/notifications/initialized handshake, and also remove the Mcp-Session-Id header from Streamable HTTP.Previously, the client had to first handshake and establish a session, and subsequent requests would be attached to that session; now, each request comes with its own protocol version and client capabilities, which are placed in _meta (io.modelcontextprotocol/protocolVersion, io.modelcontextprotocol/clientCapabilities).
This has a direct impact on deployment:MCP server can now be horizontally scaled without statefulness.It eliminates the need for sticky sessions and synchronized connection states across multiple machines. Servers that require cross-request states can now send a handle themselves, treating it like a regular utility parameter.
2. Add server/discover
All serversMustThe `server/discover` function is used to announce which protocol versions it supports, what capabilities it has, and who it is. Clients can call it before any other requests to select a version, or use it as a compatibility check on STDIO. An incompatible version will return an `UnsupportedProtocolVersionError`.
3. Subscriptions/listen replace the old notification mechanism
The original HTTP GET endpoints and resources/subscribe/resources/unsubscribe were all removed and replaced with a single long connection, subscriptions/listen. The client explicitly subscribes to the notification types it wants (toolsListChanged, promptsListChanged, resourcesListChanged, resourceSubscriptions), and the server responds with confirmation and marks the subscription ID on the notification.
Note the distinction: This includes terms like `notifications/progress` and `notifications/message`.The notification that follows a single request remains on the response stream of that request itself.It won't go to subscriptions/listen.
4. MRTR: The server no longer initiates queries.
Previously, when the server needed to supplement data (roots/list, sampling/createMessage, elicitation/create), the server would proactively send a request to the client. The new specification uses... Multi Round-Trip Requests (MRTR) Instead: The server returns a result with resultType set to input_required, placing the necessary information in inputRequests; the client then provides the inputResponses.Resend the original request.
Consequently, all results must now include a resultType field (complete or input_required). When encountering older server versions that lack this field, the client must treat it as complete.
5. Roots, Sampling, and Logging are now deprecated.
The three features will remain available during the deprecation period, but new implementations should not use them. The official recommended alternative is:
- Roots → Directly use tool parameters, resource URI, or server settings to transfer the directory/file.
- Sampling → Connect to the LLM vendor's API yourself; don't go through the client-side.
- Logging → For STDIO, write to stderr; otherwise, use OpenTelemetry.
In the same wave, logging/setLevel, ping, and notifications/roots/list_changed were directly removed; the log level was changed to be specified for each request using io.modelcontextprotocol/logLevel in _meta.
6. Removed SSE resume functionality.
Streamable HTTP no longer supports resuming disconnected downloads for Last-Event-ID and SSE event ID.If the stream is interrupted, the entire request is invalidated.The client must resend the request with a new request ID. This is the price to pay for statelessness; long-running tasks need to be extended using tasks instead.
7. Other details worth knowing
- Tasks have been moved from the core protocol to the official extension io.modelcontextprotocol/tasks, and are now polled using tasks/get.
- The list class results now include ttlMs and cacheScope, allowing clients to cache data and reduce polling.
- tools/list - Recommended to upload backFixed orderTo improve prompt cache hit rate
- HTTP+SSE transport is now officially being phased out; Streamable HTTP will be used exclusively instead.
- OAuth dynamic registration (RFC 7591) has been superseded by Client ID Metadata Documents.
8. If you have written an MCP server in 2025, what changes will you need to make?
| You originally had | What to do now |
|---|---|
| initialize handshake | Delete it and replace it with reading the version information of _meta for each request. |
| Mcp-Session-Id and session state | Change to a server-initiated handle when tool parameters are passed. |
| HTTP GET notification endpoint | Change to subscriptions/listen |
| The server actively sends sampling/elicitation. | Change to input_required and wait for the client to resend. |
| Depends on Roots to obtain the working directory | Use tool parameters or server settings instead. |
| Resume transmission using Last-Event-ID | Alternatively, expand using tasks, or accept retransmissions. |
VI. Two transmission methods: STDIO and Streamable HTTP
| STDIO | Streamable HTTP | |
|---|---|---|
| Where to run | Subroutines are on the same machine as the host. | Remote service |
| Suitable | Read local files and operate local tools | Shared by the team, internal enterprise system, SaaS |
| verify | Rely on operating system permissions | OAuth 2.1 |
| state | Stateless (starting from July 28, 2026) | Stateless (starting from July 28, 2026) |
The old HTTP+SSE transport method has been discouraged since March 26, 2025.Officially included in the list of items to be phased out on July 28, 2026.Don't choose it for the new project.
VII. Ecology and Governance: Who Uses It, Who Manages It
It took only about a year for the MCP to go from publication to becoming a standard; the timeline is worth noting:
| time | event |
|---|---|
| November 2024 | Anthropic releases MCP, open source. |
| March 2025 | OpenAI announced its adoption and integration into the ChatGPT desktop version. |
| April 2025 | Google expresses support |
| September 2025 | ChatGPT apps allow third-party access via MCP. |
| December 2025 | Anthropic donated MCP to the Agentic AI Foundation (a subsidiary of the Linux Foundation, co-founded with Block and OpenAI). |
| April-May 2026 | Salesforce Headless 360 implementation accumulated 4.5 million MCP calls within two months. |
| July 28, 2026 | Major specification revision finalized |
In terms of scale,By mid-2026, more than 10,000 MCP servers were operating in production environments, and the official SDK was downloaded more than 97 million times per month.The fact that governance is in the hands of the foundation rather than a single vendor is crucial for enterprise adoption—it's no longer a "use it and you're tied to Anthropic" technology choice.
8. Security: The most underestimated aspect of this agreement
As early as April 2025, cybersecurity researchers pointed out several unresolved structural issues with MCP, which still hold true today. If you intend to implement MCP within your company, this section is more important than any of the previous ones:
- Prompt injectionThe content returned by the server will enter the model's context. As long as that content can affect the model's behavior, a corrupted webpage, an email, or an issue comment can become a command.
- Poisoned toolsThe tool's name and description are the text the model reads. A malicious server can hide commands in the tool description, tricking the model into calling them.Other Server tools.
- Cross-tool data leakWhen you connect to both tools that can "read internal data" and tools that can "send requests to external entities", the combination of these two forms a leakage channel, even though each tool may seem harmless on its own.
In practice, there are only a few lines of defense, and they are all on the host side:Least privileges(Only open the necessary servers, do not open all of them at once.)Manual confirmation(Any operation that causes side effects requires the user to press confirm.)Source Trust(Only install servers where the source code is visible, or official/company-hosted servers), andisolation(A server capable of reading sensitive data should not be placed in the same working phase as a server capable of connecting to the outside world.)
It's worth noting that the July 28, 2026 update also tightened the authorization requirements: client credentials must be bound to the issuing authorization server and cannot be reused across servers; authorization responses must also include the `iss` parameter for verification. These measures are all aimed at preventing obfuscation attacks.

9. When should MCP be used, and when should it not be used?
This is the part that I believe most teaching materials don't cover. MCP is not a one-size-fits-all answer.
| Context | Suggestion |
|---|---|
| You want multiple AI applications to share the same set of internal tools | This should be usedThis is precisely the value of M+N. |
| You need to make the tools available to external developers or customers. | This should be usedStandardized protocols allow the other party to access the system at zero cost. |
| The team is already using tools that support MCP, such as Claude Code and Cursor. | This should be usedThe ecosystem is readily available. |
| There is only one application, one source of information, and it will not change. | No needDirectly calling the API makes debugging simpler and easier. |
| You need extremely low latency or high throughput data access | Not recommendedThe additional layer of agreement and model decision-making in the middle makes delays uncontrollable. |
| The tool's output is long and structured, so the model doesn't actually need to read it. | Not recommendedIt will consume a large number of tokens, resulting in high costs. |
The last point is often overlooked:Each server you connect to will have its tool list occupying context.Connecting to ten servers means cramming a long tool description into each conversation. This is a real cost and a loss of accuracy; think it through before accepting.
10. Frequently Asked Questions
What is the difference between MCP and Function Calling?
Function calling is a feature of the model API that defines "how the model expresses its intention to call a function"; MCP is a contract that defines "where these functions come from, how they are discovered, and how they are safely executed". The two are complementary: the host typically uses function calling to pass the tools provided by the MCP server to the model.
Can MCP only be used with Claude?
No. OpenAI announced its adoption in March 2025, followed by Google, and it is currently governed by a foundation under the Linux Foundation. It is no longer an agreement between any single company.
Do I need to upgrade to the 2026-07-28 specification immediately?
It depends on your role.The person writing the server needs to do so as soon as possible.This is because the deployment simplification brought about by statelessness is very practical, and the deprecated features only have a 12-month transition period.People who are simply using an existing server don't need to rush.The client will handle compatibility.
Under what circumstances is MCP most likely to cause problems?
Connecting to too many servers from unknown sources, without implementing manual verification for operations that could cause side effects—when these two things happen simultaneously, all three attack paths mentioned earlier become available.
11. Before actually connecting to the first server, think clearly about these four things.
Technically, connecting an MCP server typically involves adding a declaration to the host's configuration: how the server starts (the execution command for the local program or the URL of the remote service), and what environment variables or credentials to include. The real time-consuming part is never this step, but rather the following four decisions:
1. What should this server be able to see?
The vast majority of incidents are not due to "hacking," but rather to "granting too many permissions." This includes granting read-only accounts for database access, restricting access to file systems to a single directory, and issuing a key that can only access specific endpoints for internal APIs.The default value is always the minimum range and needs to be widened..
2. Which operations require manual confirmation?
Divide the tools into two categories:Only Read(Query, list, and load) allow the model to call them freely;Side effects(Writing, deleting, sending, making payments, sending messages) all require the user's approval. If this line is drawn clearly, most of the attack paths mentioned earlier will be cut off.
3. How much context does the tools list consume?
The tool name and description for each server will be added to the model's context. With five servers, each with ten tools, the tool descriptions alone could consume thousands of tokens.And it's paid for every single conversation.Running only the servers you actually need right now is much more cost-effective than running them all.
4. Who wrote this server?
There are tens of thousands of ready-made servers in the community, but the tool description itself is text that the model can read, which is equivalent to an input surface that can be injected.Only install source code that you can see, or official or company-built content.Do not connect to servers of unknown origin in work areas where sensitive data can be accessed.
Once you've thought through these four things, the remaining setup work usually takes less than ten minutes. Reversing the order—adding the necessary components first, then considering permissions—is how most teams run into problems.
Further Reading
- Claude Complete Instructional GuideThis is the main entry point for the Claude series on this site, covering 11 articles from beginner to cost control.
- What is an AI Agent? A Complete IntroductionMCP is the channel through which an agent obtains external capabilities. Understanding agents first will help you better understand this article.
- What is Claude Code? A complete tutorial.The most commonly used development tool for hosting MCP servers.
- What is RAG? A complete tutorial from the AI knowledge base.Another route to acquiring external knowledge that is often confused with MCP.
- What is AI Harness?How to handle situations where too many tools cause the context to become out of control.
First-hand information:MCP Official Change Log, July 28, 2026、Model Context Protocol Official Documentation、Wikipedia: Model Context ProtocolThe specifications and timeline in this article are based on the official change log.
Further reading: How does MCP integrate with Agents, Skills, and permission settings to form a controllable system in a real development process? (See also...) AI Harness Review: A Comprehensive Analysis of the Six Core Elements of OpenCode.
