# REST vs MCP for agent integration | Aspect | REST (HTTP + JSON) | MCP (Model Context Protocol) | |---|---|---| | Protocol | Plain HTTP verbs + JSON payloads; any server framework | JSON-RPC 2.0 over stdio/HTTP; a defined tool/resource schema | | Auth | Whatever the API defines (API key, OAuth2, mTLS) — per-service | Same auth, but carried inside the protocol handshake once per session | | Discovery | Per-API docs/OpenAPI; client must be told each endpoint | Runtime discovery via `tools/list`; the model learns what exists at connect time | | Best for | Stable, high-volume, well-known endpoints; simple scripts | Giving an LLM a menu of tools/resources it can call without bespoke glue per tool | | Coupling | Tight: each integration is custom code | Loose: one MCP client talks to many servers | | Tool-calling fit | Model needs a hand-written function schema per endpoint | Tool schemas are native to the protocol | | Transports / reach | Global over the internet, cacheable | Local (stdio) or remote; not inherently cacheable | **Bottom line:** REST is the substrate for machine-to-machine work; MCP is the adapter layer that lets a model use that work as tools. Many systems use both — MCP in front, REST behind. Max 8 rows; plain markdown.