The MCP (Model Context Protocol) is an open standard that defines how an AI application connects to external tools and data: a service develops an “MCP server” once, and then any compatible assistant can use it. Launched by Anthropic in November 2024 and entrusted in December 2025 to a foundation within the Linux Foundation, its current version is dated July 28, 2026. It simplifies integrations, but each connection opens an access that must be authorized, limited, and monitored.
This article explains the problem the protocol solves, its architecture, how to connect an assistant to a service, its risks, and the cases where a classic API integration remains preferable. MCP is one of the building blocks of agents; to understand its role in the bigger picture, see our reference guide on AI agents and automation.
The protocol solves a problem
Before MCP, each assistant had to be linked to each data source via a custom integration: ten assistants and ten services meant potentially one hundred connectors to write and maintain. In announcing the protocol on November 25, 2024, Anthropic presented it as a universal standard intended to replace these fragmented integrations, published with a specification, development kits, and a repository of open-source servers (notably Google Drive, Slack, GitHub, Postgres). The specification also claims lineage with the Language Server Protocol, which standardized programming language support in code editors.
The bet paid off. On December 9, 2025, Anthropic entrusted MCP to the Agentic AI Foundation, a Linux Foundation structure co-founded with Block and OpenAI; the protocol then claimed over 97 million monthly downloads of its development kits and 10,000 active servers, according to the project’s official blog. Software vendors are adopting it to open their products to all assistants at once: Adobe thus announced a local MCP server for Creative Cloud, which should allow an external agent to modify Photoshop or Premiere files, with a private beta planned for early 2027.
The architecture defines the roles
According to the official specification, exchanges are based on JSON-RPC 2.0 messages between three roles: the host, meaning the AI application you are using; the client, a connector created by the host to communicate with a single server; and the server, a local or remote program that exposes a service’s capabilities. The page dedicated to architecture establishes an important isolation principle: a server should only receive the necessary context, without being able to read the entire conversation, which stays with the host, nor “see” other servers.
The flow of a call reads from left to right:
- The user makes a request in the host.
- The host’s language model decides to use a tool.
- The MCP client transmits the call to the relevant server.
- The server executes the operation on the service (API, database, files) and returns the result.
- The client hands the result back to the model, which continues its response or decides on a new call.
A server can offer three types of capabilities, distinguished by who controls them.
| Capability | Controlled by | Role | Example |
|---|---|---|---|
| Prompts | The user | Message templates chosen explicitly | A “summarize this ticket” command in a menu |
| Resources | The application | Context data attached by the client | The content of a file, the history of a Git repository |
| Tools | The model | Functions the model can call to act | Create a ticket, write a file, run a query |
The specification defines two standard transports: stdio, where the host launches the server as a local subprocess, and Streamable HTTP, for remote servers. The July 28, 2026 version overhauled the protocol significantly: according to the official release post, the initial handshake and sessions are gone, each request now carries its version and capabilities, while three legacy functions (Roots, Sampling, Logging) are deprecated but maintained for at least twelve months.
A tool reveals its operation
Take an MCP server for a ticket management tool. The client requests the list of tools (tools/list request) and receives, for each, a name, description, and schema of expected parameters, for example search_tickets and create_ticket. When the user asks “open a ticket for the 3rd floor printer outage”, the model chooses create_ticket and fills the parameters; the client sends the call (tools/call) and the server returns the result or an explicit error the model can correct. The specification page on tools recommends that a human should always be able to refuse an invocation, and that the application clearly displays which tools are exposed and when they are called.
You connect an assistant to a service
The procedure varies by host, but the steps remain the same: find the server, choose the transport, add it to the host’s configuration, authenticate, select authorized tools, then test. Desktop assistants, development environments, and automation platforms generally offer a screen or configuration file for this. In n8n, for example, the MCP Client Tool sub-node links an agent to a remote server and allows selecting only certain tools; our tutorial for creating an AI agent with n8n shows this connection in a complete workflow.
If your need is limited to making an assistant answer based on your documents, without taking action in software, a document retrieval architecture may suffice: this is the subject of our guide “Create a chatbot that answers only from your documents.”
You check a server before adopting it
| Criterion | What to check |
|---|---|
| Publisher | Official server published by the service vendor, or third-party project whose code you can read |
| Transport | Local (stdio) for files on your workstation, remote (HTTP) for an online service |
| Authentication | OAuth for a remote server, limited permissions to what the assistant needs |
| Exposed tools | Clear distinction between read and write, ability to enable only certain tools |
| Traceability | Call log on the host side or service side |
| Protocol version | Compatibility with the July 28, 2026 version or fallback mechanism to earlier versions |
You manage access and risks
Authorization is optional in the protocol. When implemented on an HTTP transport, it relies on a subset of OAuth 2.1; for a local stdio server, the specification rather expects credentials to be read from the environment. The document on security best practices details known attacks: a server that relays a received token as-is for another service (explicitly prohibited practice), a hijacked OAuth proxy without user consent, or tokens with overly broad permissions. It recommends progressive permissions: minimal rights initially, then targeted elevation when a sensitive operation requires it.
Local servers pose a particular risk. A configuration file can contain a malicious startup command, and the server runs with the same rights as the client application. The specification therefore mandates, in case of one-click installation, displaying the exact command that will be executed and obtaining explicit user consent, while also recommending running these servers in an isolated environment.
Then there is prompt injection, which OWASP ranks as the top risk for language model-based applications (sheet LLM01:2025). With MCP, malicious text can hide in a tool’s result (an email, a page, a ticket) or in the description of a tool itself; the specification indeed asks to consider tool annotations as untrustworthy unless they come from a trusted server. Our upcoming guides on AI agent security and preventing prompt injection will delve deeper into these protections.
You avoid common mistakes
- Installing a server found in a directory without checking its publisher or the command it executes.
- Enabling all tools of a server when the use case only requires reading.
- Connecting in the same session a server that reads external content and a server capable of sending data, without human validation between the two.
- Disabling tool call confirmations to save time.
You choose between MCP and API
MCP does not replace APIs: an MCP server itself calls, most often, the service’s API. The question is who decides the calls and how many assistants need to access it.
| Criterion | MCP Server | Direct API Integration |
|---|---|---|
| Reusability | One server usable by all compatible hosts | One integration per application |
| Who decides calls | The model, within authorized limits | Your code, following a written path |
| Predictability | Variable, depends on model’s choice | High |
| Token cost | Tool descriptions occupy the model’s context | None if the model is not involved |
| Typical case | Assistant or agent that must choose among several actions | Repetitive processing, critical transaction, deterministic workflow |
MCP is essential when several assistants need to access the same service, when the vendor provides a maintained official server, or when the user needs to freely combine tools. A direct API integration remains preferable for processing where all steps are known, for a financial transaction, or for any flow where predictability is paramount.
You test the integration before deploying it
Test the connection with real requests, observing in the host’s logs which tools are called, with what parameters, and for what token consumption. Verify that a request outside the scope triggers no call, and that a document containing instructions does not cause unintended action. These tests are only valid for a given version of the server and protocol: repeat them with each update.
