Resources / MCP
MCP vs REST API: what changes when an AI agent is the client
How the Model Context Protocol relates to REST APIs, when to expose tools over MCP, and why you usually want both.
MCP doesn't replace REST — it describes an API in a way language models can use. A REST endpoint is built for a programmer who reads the docs once; an MCP tool is built for a model that reads the description every time it decides what to do.
What's the same
Both are request/response over HTTPS, both take structured input and return structured output, and both need authentication, validation and rate limits.
What's different
- Discovery. MCP clients list tools at runtime; REST clients rely on docs written ahead of time.
- Descriptions are instructions. A tool's description tells the model when to call it. Vague descriptions cause wrong calls.
- Schemas are mandatory in practice. Models fill arguments from the input JSON Schema, so every field needs a type and a description.
- Errors are read by a model. "id must be a number like 4821" gets a better retry than "400 Bad Request".
When to use which
Use REST for your own frontend, webhooks and other services. Add MCP when you want agents — your support bot, Claude for your team, a customer's assistant — to use the same capabilities. The best setup is one implementation exposed both ways.
One implementation, two interfaces
In Wisp, each endpoint is a normal HTTPS API and an MCP tool. The input and output schemas you (or the assistant) define document the REST endpoint and become the tool definition, so they never drift apart.
Build it with Wisp — describe an API, get it live.