Bookmarks

MCP — MCP protocol

Model Context Protocol

An open protocol that lets applications built on language models connect to external data and tools through a single interface.

Also: MCP server, MCP client, connecting tools to a language model

checked 9 Nov

All terms

Until recently, letting a model work with a database, files or a third-party service meant writing a separate integration for each pair of application and source. MCP replaces this patchwork with a single protocol: a source is connected once and works with any application that supports it.

Clients and servers

RoleWhat it is
Hostan application with a model: an AI assistant, an IDE, your own chatbot; the MCP clients run inside the host
Clientkeeps a connection to one server and speaks the protocol with it
Servera small program on top of a specific source — a database, Git, a CRM, the file system; exposes its capabilities to the client

The server does not know which application the request came from, and the client does not know how the source is built: both sides speak only the protocol.

What the server exposes

  • Tools — functions the model can call: run an SQL query, create a task, send an email.
  • Resources — data the client reads: files, records, table schemas, query results.
  • Prompt templates — reusable request templates for typical scenarios of working with the model.

How the protocol is built

The protocol has two layers: the message format, JSON-RPC 2.0, and the transport. A local server runs as a separate process and communicates over stdio, a remote one is reached over streaming HTTP. The client first learns the protocol version, the capabilities and the list of the server’s methods, and then calls them as needed:

jsonA request for the list of tools and the server’s response
{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}{"jsonrpc": "2.0", "id": 1, "result": {"tools": [{"name": "low_stock", "description": "..."}]}}

Where the term comes from

Anthropic introduced the protocol on 25 November 2024, together with the specification and open SDKs for several languages. The format was later adopted by other assistants and development environments — ChatGPT, VS Code, Cursor — and MCP became the common way to connect tools to an LLM.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • APIapplication programming interface

    An API describes the interface of a single service; MCP is a shared protocol through which a model discovers and calls the capabilities of the connected servers.