NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Middle1 view

What is MCP’s architecture, and which protocol/message format underlies it instead of the REST API?

Practice

AI answer

MCP is a client-server protocol: the host application manages MCP clients, which connect to MCP servers that provide tools, resources, and prompts. Message exchange is based on JSON-RPC 2.0, not REST: it uses requests, responses, and notifications. The transport is usually stdio for local servers or Streamable HTTP for remote ones; when a connection is established, the parties negotiate capabilities.