An API is an interface a developer reads about and writes code against. MCP (Model Context Protocol) is an interface an AI model reads at runtime and calls on its own. Most MCP servers are thin layers over an existing API, so the real decision is whether your API also needs an MCP server on top.
Teams with a working REST API usually ask this the wrong way round: "do we have to rewrite it for MCP?" No. The API stays. What changes is who calls it, and a model is a different kind of caller than a developer. The five differences below follow from that.
MCP vs API at a glance#
| API (REST, GraphQL, gRPC) | MCP server | |
|---|---|---|
| Caller | Code a developer wrote | An AI model inside a host such as Claude, ChatGPT or Cursor |
| Discovery | Docs or an OpenAPI file, read before the code is written | server/discover and tools/list, read at runtime |
| Wire format | Whatever the provider chose | JSON-RPC 2.0 over stdio or Streamable HTTP |
| Auth | Provider's choice: API keys, OAuth, mTLS | OAuth 2.1 for HTTP servers, environment credentials for local ones |
| State | Usually stateless | Stateless since the 2026-07-28 spec revision |
| Cost of a call | Network and compute | Network, compute and context tokens |
1. The caller is a model#
A developer reads your docs once, writes the request and ships it. The same code sends the same request for years.
With MCP nobody writes the request ahead of time. The MCP specification calls tools "model-controlled": the language model discovers them and decides when to invoke one, based on what the user asked. That changes what a good interface looks like. A developer can live with GET /v2/accts/{id}/txns?f=1 because the docs explain it. A model has only the tool's name, its description and its input schema, so those three things become the product.
The spec also says there should always be a human who can deny a tool call. An API has no such concept, because the human already approved the code.
2. Discovery happens at runtime#
The OpenAPI Specification describes an HTTP API so that people and programs can understand it without reading the source. In practice someone reads that description at build time and generates a client.
An MCP client asks the server what it can do while the conversation is running. It calls tools/list and gets back entries like this one, taken from the tools section of the spec:
{
"name": "get_weather",
"description": "Get current weather information for a location",
"inputSchema": {
"type": "object",
"properties": {
"location": { "type": "string", "description": "City name or zip code" }
},
"required": ["location"]
}
}Add a tool on the server and every connected client sees it on the next listing. No SDK release, no client update.
3. Auth follows one pattern#
Every API invents its own auth. One wants a key in a header, another in the query string, a third has its own flavor of OAuth. A developer sorts that out once per integration.
A model can't read your auth docs, so MCP fixes the pattern. Authorization is optional, but for HTTP servers the spec defines a single path: the MCP server acts as an OAuth 2.1 resource server, the client acts as an OAuth 2.1 client, and the server tells the client where its authorization server lives. That is why you can paste a server URL into an MCP client and get a sign-in window without configuring anything. Local servers that run over stdio skip this and read credentials from the environment.
The full flow is in our MCP OAuth explainer.
4. State: the answer changed in 2026#
Many comparison pages still say "APIs are stateless, MCP keeps a session." That was accurate until July 2026.
The 2026-07-28 revision removed the initialize handshake and the Mcp-Session-Id header. Every request now carries its own protocol version and client capabilities. A server that needs to remember something across calls hands out an explicit handle and receives it back as an ordinary tool argument.
For anyone hosting a remote server this is good news. A stateless server needs no sticky sessions, so it runs behind a plain load balancer like any HTTP API.
5. Cost: you pay for tool definitions in tokens#
An API endpoint costs nothing until someone calls it. An MCP tool costs something as soon as it is loaded, because its definition is sent to the model as input tokens.
OpenRouter measured this in October 2026. The GitHub MCP server's 46 default tools added 19,436 tokens to every request on Claude. One tool result, a full release object, added about 20,400 more. Scoping the server to the two tools the task needed and trimming the results brought the whole task from 59,417 input tokens down to 5,357.
Anthropic's tool search docs add a second reason to keep the list short: a model's ability to pick the right tool degrades past 30 to 50 available tools.
So the tempting move, one MCP tool per API endpoint, is the wrong one. A 200-endpoint API should become a handful of tools named after tasks a user would ask for, each returning only the fields the model needs.
When an API is enough and when to add MCP#
Stay with the API alone when the caller is code. Your web app talking to your backend, a nightly job syncing invoices, a partner posting webhooks: none of these gain anything from MCP.
Your own agent with three functions you control is also fine without it. Plain function calling inside your agent code does the job. MCP starts to pay off when a second client needs the same tools.
Add an MCP server when:
- Customers ask whether they can use your product from Claude, ChatGPT or Cursor. One server covers every MCP client, and you don't write a plugin per app.
- You want agents as paying users of your data or actions, and need per-user auth and metering in front of them.
- Several internal teams keep wrapping the same API as tools in their own agents.
If you already have an OpenAPI file, you can generate the first version of the server from it and then cut the tool list down. To see how other developers scoped theirs, look through the automation servers in the marketplace.
The part most teams don't want to build is the OAuth and hosting layer. MCPize hosting deploys a TypeScript or Python server in minutes and puts it behind a gateway that handles sign-in, API keys and quotas, with 25,000 free gateway requests a month.
FAQ#
Is MCP going to replace APIs?#
No. An MCP server needs something to call, and that is usually your API. What MCP replaces is the custom glue every AI app used to write for each integration.
Does an MCP server use an API?#
Usually, yes. A tool handler is ordinary code that makes an HTTP request, runs a database query or reads a file. The spec describes tools as a way for models to query databases, call APIs or perform computations.
Is MCP just JSON?#
On the wire, yes: messages are JSON-RPC 2.0. The protocol adds the parts JSON alone doesn't give you: fixed method names such as tools/list and tools/call, capability discovery, and rules for authorization.
Is MCP like an API gateway?#
No. A gateway is a piece of infrastructure that routes, authenticates and rate-limits traffic. MCP is the protocol the client and server speak. The two meet in an MCP gateway, which sits in front of MCP servers and does auth, quotas and metering for them.
What is the difference between MCP and a REST API?#
REST is a style: each provider designs its own resources, verbs and auth. MCP is one protocol with the same methods on every server, built so a model can learn what a server does by asking it.
Verdict#
Keep your API. It still serves every caller that is code. Add an MCP server when models are among your callers, and build it small: a few well-named tools with short results beat a full mirror of your endpoints on accuracy and on cost.
The same "do I need both" question comes up for CLIs, agent skills, RAG and A2A. When you're ready to write the server, start with the build guide.






