Wrapping REST APIs with MCP
In this article
- Explain what an OpenAPI file and an MCP tool list each describe, and for whom.
- Predict what happens to a wrapper tool when the API behind it adds a field, and say who must own the schema.
- Choose direct REST, a generated function schema or an MCP wrapper for an integration, and name who owns the service rules, auth and versioning.
- Spot a wrapper that hides a 404 from the model.
- Terms defined here: OpenAPI, MCP wrapper.
Overview
Your company already runs a web API for orders, with a file that describes every endpoint. Now several AI apps need the same lookups, and someone proposes an MCP server, a program that offers actions to AI apps, in front of the API. So a fair question comes up in the design review: does the MCP server replace that API, or sit on top of it, and when the two disagree, whose word counts?
By the end you can put the API and the MCP tool side by side, predict what breaks when the API changes, and pick among three ways for an AI app to reach a service, naming who owns the business rules, the access checks and the versions in each.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Two descriptions of one lookup
- Side by side
- Who still checks the caller
- When the service adds a field
- When the order does not exist
- Three ways to reach the API
- Three briefs
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions