MCP Documentation

What is MCP?

The Model Context Protocol (MCP) is an open standard that enables developers to build secure, bidirectional connectors between their data sources and AI-assisted tools.

Basic Architecture

MCP follows a Client-Host-Server architecture based on JSON-RPC 2.0:

  • MCP Host: The AI application (e.g. Claude Desktop, IDEs).
  • MCP Client: Maintains a 1:1 connection with the server.
  • MCP Server: Exposes resources, prompts and tools through the protocol.

JSON-RPC Specification

// Request Example
{
  "jsonrpc": "2.0",
  "method": "tools/list",
  "id": 1
}