Explainer · AI · July 2026
MCP servers - what do they really do and why not just use an API?
Software companies have had APIs for decades, and many of them are now launching Model Context Protocol (MCP) servers as well. Here's what an MCP server does, and where it's more useful than the API it usually sits on.
What an API is
When you eat in a restaurant, a waiter takes your order to the kitchen and brings back a plate, so you get food from the kitchen without going into it yourself.
An API does the waiter's job for a company's systems, where things like your invoices, customers and calendar are kept and which you can't get into directly. It takes a precise request to where the data is and brings back what you asked for. Your banking app, for example, never touches the bank's databases, and instead asks the API for your balance and shows you what comes back.
If you ask the API for last month's invoices you get last month's invoices, without a summary or any view on which customers are a problem, and making sense of them is up to you.
In the restaurant, someone has to read the menu before ordering. With an API that's a developer, who reads the documentation, works out which request answers which question, and writes code to send it. That works well while the question stays the same, but every new question means going back to the documentation and writing more code.
The problem AI assistants ran into
An AI assistant can't see your invoices, calendar or files unless it's connected to the tools that hold them.
Without a standard, each of those connections has to be built separately, with one integration between the assistant and your accounting system, another for your email and another for your calendar. Every pairing of assistant and tool needs its own, so five assistants and eight tools means forty integrations rather than thirteen, and each one has to be built, tested and kept working when either side changes.
Move the sliders to see how quickly the number grows.
Left: every assistant connected to every tool separately, so the work multiplies. Right: each one connects once to a shared standard, so the work only adds up.
MCP was designed to reduce that work by changing how assistants connect to tools, and it doesn't make the assistant itself any smarter.
What MCP changes
Anthropic published MCP as an open standard in November 2024. OpenAI, Google and Microsoft all added support in spring 2025, and in December 2025 Anthropic donated it to the Agentic AI Foundation, a fund run under the Linux Foundation, so no single company controls it. With MCP, each tool describes itself once, in a format any assistant that supports MCP can read, so nobody has to connect every assistant to every tool by hand.
In the restaurant, the kitchen and the waiter stay as they were and only the menu changes. It used to be a technical manual for developers listing the API's endpoints, and now it's handed straight to your assistant, listing what the kitchen can make and what each dish needs from you.
Say you ask which of your biggest customers are behind on payments, and who at your company should be chasing them. There's almost certainly no single API request for that, because it's really three questions: who your biggest customers are, which of their invoices are overdue, and who owns each account. Before MCP, a developer would have had to go back to the documentation and write new code to combine the three.
With MCP, the assistant reads the menu and asks for what it needs. It gets the customer list, uses the names that come back to ask for their unpaid invoices, picks out the most overdue, and looks up who's responsible for each, before giving you the answer in whatever form you asked for.
The kitchen, the waiter and the rules about what can be ordered stay the same, and the only change is who reads the menu and decides what to order.
What the server does
Most MCP servers have no AI in them and simply list what they offer, in a form an assistant can read, then run whatever the assistant asks them to. The server only sees those requests, not your question, so working out what you meant, which tools to use and what the results add up to is all done by the assistant.
The risks
Letting an assistant act on your systems carries more risk than letting it chat, and MCP makes it easy to connect an assistant to a lot of systems. Security researchers had published attacks on MCP within a few months of its release.
Several of these attacks work through tool descriptions, which are written for the assistant and which it reads in full, while you usually see a shortened version. A malicious server can hide instructions in a description, for example telling the assistant to read your private files and send them somewhere, which researchers called tool poisoning. In a variant called shadowing, one server's description changes how the assistant uses another, trusted server's tools, for example by sending every email to an attacker. A server can also change its descriptions after you've approved it.
Instructions can also be planted in data the assistant reads, such as a web page, a document or a support ticket, and the assistant may follow them. Tools that are safe on their own can be risky together too, because one that reads your files and one that sends messages give an attacker a way to both find data and get it out.
Defences include showing people a tool's full description, warning when a description changes, asking before a tool runs, and giving each server as little access as possible, but none of them fully stops instructions hidden in data, which is still an open problem.
The assistant can also simply pick the wrong tool, ask for the wrong thing or stop a step before the answer. Code written against an API can't make that kind of mistake, because a developer chose the requests when writing it. With MCP the assistant makes that choice, which makes it more flexible and also less predictable.
MCP and APIs, side by side
Most MCP servers are a thin layer on top of an existing API, so when the assistant asks for your invoices, it's still the API that fetches them. Some read a database or a folder of files directly instead. Either way the data and permissions stay where they were, and the API or database still decides what you're allowed to see.
For a report that has to come out the same way every Monday, code written against the API is the better choice, because the requests never change and you want the same result each time. MCP is more useful when a question spans several systems and you can't know in advance which ones you'll need, or in what order, because that depends on what the first answer turns up. The API still does the fetching, and the assistant decides what to fetch next.
A note on terms. MCP stands for Model Context Protocol, an open standard Anthropic released in November 2024. OpenAI, Google and Microsoft added support in spring 2025. On 9 December 2025 Anthropic donated it to the Agentic AI Foundation, a directed fund under the Linux Foundation co-founded by Anthropic, Block and OpenAI; the protocol's maintainers still make the technical decisions. Besides tools, which are actions an assistant can run, an MCP server can offer resources (data for the assistant to read) and prompts (ready-made templates for common tasks). The attacks described above were published during 2025, including Invariant Labs' work on tool poisoning, shadowing and changed descriptions in April. The connection counts in the first chart are illustrative: not every assistant needs every tool.