Skip to content

What is MCP?

The Model Context Protocol is an open standard that lets you build servers that expose data and functionality to LLM applications in a secure, standardized way. Think of it like a USB-C port for AI — a universal interface between AI applications and the tools/data they need.

Core Concepts

Server — Provides capabilities (tools, resources, prompts) to connected clients.

Client — Connects to servers to discover and invoke their capabilities on behalf of an LLM.

Transport — The underlying communication layer (stdio, HTTP, WebSocket) that carries JSON-RPC messages.

Primitives

PrimitiveDirectionDescription
ToolsClient → LLMFunctions the LLM can call to perform actions
ResourcesClient → LLMStructured data the LLM can read
PromptsServer → LLMTemplates for common interaction patterns
ElicitationServer → LLMRequest user input (form or URL navigation)

Protocol Versions

The SDK supports five protocol versions across two eras:

EraVersionsHandshake
Legacy2024-11-05, 2025-03-26, 2025-06-18, 2025-11-25initialize
Modern2026-07-28server/discover

Legacy versions use initialize handshake with standalone server-to-client requests for sampling/roots/elicitation. The modern version (2026-07-28) uses stateless server/discover, per-request _meta envelope, MRTR (InputRequiredResult), and subscriptions/listen.