
MCP Isn't Another API: What the Model Context Protocol Actually Standardizes
- كاتب موثّق
- MCP
محتويات المقال
/v2 and retiring the REST endpoints the mobile app calls. Another says it's Anthropic's format, so it only helps customers who use Claude. The backend lead asks which URLs and HTTP verbs MCP uses for orders. Three questions, one misunderstanding underneath all of them.
The common misconception
MCP is described with API vocabulary: servers, requests, HTTP, bearer tokens, OAuth. Remote MCP servers really do run over HTTP, so from a distance they look like another endpoint. Anthropic introduced it in November 2024, and Claude's apps were among the first to support it. Many companies announce "our MCP server" next to their API, so it reads like a new version of that API.
What actually happens
The problem it standardizes
Three participants and two layers
tools/list and tools/call. When Claude decides to use a tool, the host's client sends a message like this to the server:
{ "jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": { "name": "get_order_status", "arguments": { "order_id": "1042" }, "_meta": { "io.modelcontextprotocol/protocolVersion": "2026-07-28", "io.modelcontextprotocol/clientCapabilities": {} } }}2026-07-28, MCP is stateless: every request carries the protocol version and capabilities in _meta, so a server can handle each one on its own. And the docs draw a clear boundary: MCP "does not dictate how AI applications use LLMs or manage the provided context". It's the plumbing, not the agent.
Where your REST API fits
from mcp.server import MCPServerfrom shop.db import fetch_order # logic copied out of the API servicemcp = MCPServer("orders")@mcp.tool()async def get_order_status(order_id: str) -> str: """Get the shipping status of one order by its ID.""" # The REST route was deleted "since we have MCP now": the mobile app # gets 404s, and this copy skips the API's auth and ownership checks. order = await fetch_order(order_id) return f"Order {order_id}: {order.status}"if __name__ == "__main__": mcp.run(transport="stdio")import osimport httpx2from mcp.server import MCPServermcp = MCPServer("orders")API = "https://api.shop.example/v1" # the REST API you already run@mcp.tool()async def get_order_status(order_id: str) -> str: """Get the shipping status of one order by its ID.""" token = os.environ["ORDERS_API_TOKEN"] # scoped to read orders async with httpx2.AsyncClient() as client: response = await client.get( f"{API}/orders/{order_id}", headers={"Authorization": f"Bearer {token}"}, timeout=30.0, ) response.raise_for_status() return f"Order {order_id}: {response.json()['status']}"if __name__ == "__main__": mcp.run(transport="stdio")tools/call | ||
tools/list returns names, descriptions, schemas | ||
Not only Claude
How to apply it in your project
Keep the API Your REST API still serves your apps and partners. MCP adds a door for AI applications; it doesn't replace the house. Pick a few tasks Choose the operations an AI application should do, and write each tool's name and description for a model to read. Write a thin server Use an official SDK, such as MCPServerin Python, and have each tool call your API with a scoped token.Connect and test it Add it to Claude Code with claude mcp add, passing the token with--env, and inspect its tools withnpx @modelcontextprotocol/inspector uv run orders_mcp.py.Try a second host Connect the same server to another MCP host your team uses, without changing the server.
Key takeaways
MCP standardizes how AI applications connect to tools and data; it doesn't replace REST. A host creates one client per server, and they exchange JSON-RPC 2.0 messages such as tools/listandtools/call.The same messages travel over stdio for local servers or Streamable HTTP for remote ones. An MCP server usually wraps an API you already run, so keep the business rules there. It's an open protocol: Claude, ChatGPT, VS Code, Cursor and many others can use the same server.
التعليقات (0)