الانتقال إلى المحتوى
Claude وأدوات الـ AI للبرمجةMCP Servers· 7 دقائق للقراءة

MCP Isn't Another API: What the Model Context Protocol Actually Standardizes

An open protocol between AI applications and the servers that give them tools and data. Your REST API stays; MCP sits in front of it.

ReadIn

مقال كل يوم يفرق معاك

21 نوفمبر 2026
  • كاتب موثّق
  • MCP
محتويات المقال

A product manager files a ticket: "Migrate the Orders API to MCP so AI agents can use it." The planning meeting goes sideways fast. One engineer proposes shipping MCP as /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 a new style of web API that replaces REST, and it only works with Claude." It's an understandable read:

  • 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.

The half-truth: MCP does define messages, and it can run over HTTP. But it standardizes how an AI application talks to a source of context, not how your services, apps and partners talk to each other.

What actually happens

The problem it standardizes

Before MCP, every pairing of an AI application and an external system needed its own glue code. Anthropic's announcement put it plainly: "Every new data source requires its own custom implementation, making truly connected systems difficult to scale." replaces those "fragmented integrations with a single protocol". The MCP docs use a hardware analogy: MCP is "like a USB-C port for AI applications". A tool vendor writes one server; an AI application writes one client; any client can talk to any server.

Three participants and two layers

MCP has three roles. The host is the AI application, such as Claude Code, Claude Desktop or Visual Studio Code. For each server it connects to, the host creates one client with a dedicated connection. The server is "a program that provides context to MCP clients", running locally or remotely.

The protocol itself has two layers. The data layer is built on : discovery, the primitives a server exposes, and notifications. The transport layer carries those messages, either over stdio for a local server that the host starts as a process, or over Streamable HTTP for a remote one. The docs stress that the transport changes nothing above it: the same JSON-RPC format works "across all transport mechanisms".

A server exposes three kinds of primitives: tools the model can call, resources that provide data, and prompts that template interactions. Each comes with methods such as tools/list and tools/call. When Claude decides to use a tool, the host's client sends a message like this to the server:

JSON tools/call
{  "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": {}    }  }}

There's no resource URL and no HTTP verb in it: the method names the operation, and the same message works over stdio or HTTP. In the current revision, 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

An MCP server is usually an adapter in front of something you already run. The official quickstart builds a weather server whose tools call the National Weather Service's existing API. The same shape works for orders:

Python orders_mcp.py
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")

In the second version, the mobile app keeps its REST API, the order rules live in one place, and the MCP server adds what an AI host needs: a tool with a name, a description and an input schema, generated from the function's type hints and docstring. Claude reads that description when it lists the server's tools, so it's worth writing well.

Your REST APIAn MCP server
Who calls itYour apps, partners and servicesAn AI application's MCP client
Shape of a callA URL plus an HTTP verbA JSON-RPC method, such as tools/call
How callers learn what existsYour docs or an OpenAPI fileThey ask: tools/list returns names, descriptions, schemas
TransportHTTPstdio when local, Streamable HTTP when remote
Its jobYour product's logicExposing that logic to AI applications

Not only Claude

MCP is an open protocol with a spec, SDKs in several languages and reference servers. The docs list hosts well beyond Claude: "AI assistants like Claude and ChatGPT, development tools like Visual Studio Code, Cursor, MCPJam, and many others all support MCP — making it easy to build once and integrate everywhere." The server above works in any of them.

How to apply it in your project

  1. Keep the APIYour REST API still serves your apps and partners. MCP adds a door for AI applications; it doesn't replace the house.
  2. Pick a few tasksChoose the operations an AI application should do, and write each tool's name and description for a model to read.
  3. Write a thin serverUse an official SDK, such as MCPServer in Python, and have each tool call your API with a scoped token.
  4. Connect and test itAdd it to Claude Code with claude mcp add, passing the token with --env, and inspect its tools with npx @modelcontextprotocol/inspector uv run orders_mcp.py.
  5. Try a second hostConnect 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/list and tools/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.

📚 المصادر

  1. What is the Model Context Protocol (MCP)? — Model Context Protocol
  2. Architecture overview — Model Context Protocol
  3. Build an MCP server — Model Context Protocol
  4. Versioning — Model Context Protocol
  5. Introducing the Model Context Protocol — Anthropic

التعليقات (0)