Skip to content

What is MCP? The Model Context Protocol, explained for agent builders

MCP is the open standard AI applications use to reach tools and data. Where it came from, how an application and a server talk over it, what a tool call looks like, what the protocol leaves to you, and why servers that run code belong in a sandbox.

Harshraj

6 min read

What is MCP in AI?#

MCP, the Model Context Protocol, is an open standard for connecting AI applications to tools and data. An application such as a chat client or a coding agent speaks MCP to a server, and the server offers things the model can use: tools to call, data to read and prompt templates to follow. Write a server once and every application that speaks MCP can use it. Anthropic introduced it in November 2024, and since December 2025 it has been governed by the Agentic AI Foundation under the Linux Foundation.

Where it came from#

Before MCP, every pairing of an AI application and a tool needed its own glue code. A team that wanted its model to read from a ticket tracker, a database and a file store wrote three integrations, and wrote them again for the next application. The protocol replaced that with one standard on each side.

It was published on 25 November 2024. Adoption moved quickly. By December 2025, Anthropic counted "more than 10,000 active public MCP servers" and "97M+ monthly SDK downloads across Python and TypeScript", and listed ChatGPT, Cursor, Gemini, Microsoft Copilot and Visual Studio Code among the products that support it. That same month it donated the protocol to the Agentic AI Foundation, a directed fund under the Linux Foundation co-founded by Anthropic with Block and OpenAI. The point of the move was neutral ground: a standard that rival companies depend on is easier to trust when no single one of them owns it.

How it works#

Its shape comes from the Language Server Protocol, which lets one code editor support many programming languages. Three roles make up a connection.

The host is the AI application the user works in, such as a desktop chat app or an IDE. Inside it, a client holds one connection to one server. The server is a program that exposes capabilities: it might wrap a database, a SaaS API, a browser or a set of shell commands. They talk with JSON-RPC 2.0 messages, and each side states what it supports when the connection opens.

Servers can offer three kinds of things:

  • tools, which are functions the model can ask to run;
  • resources, which are data for the user or the model to read;
  • prompts, which are templated messages and workflows.

Clients can offer something back. The current specification, dated 28 July 2026, lists elicitation, a way for a server to ask the user for more information mid-task. On top of the core protocol sit optional extensions, among them Tasks for long-running work that the client polls, and MCP Apps for interactive pieces of interface shown inside a conversation.

What a tool call looks like#

From the model's side, a tool is a name, a description and a schema for its arguments. The client fetches the list from the server, the host shows it to the model, and when the model decides to use one, the client sends a call like this:

JSON
{
  "jsonrpc": "2.0",
  "id": 7,
  "method": "tools/call",
  "params": {
    "name": "run_tests",
    "arguments": { "path": "tests/unit" }
  }
}
Language: json

The server does the work and returns the result as content the model can read. Nothing about the call says where the work happens. A tool named run_tests could run on the user's laptop, on a server in a data centre or in a sandbox created for this one call. That gap matters, and the next section is about it.

What the protocol leaves to you#

The protocol defines how the two sides talk. It does not decide who runs a server, what that server may touch or whether its description of itself is honest. The specification says so directly: "Tools represent arbitrary code execution and must be treated with appropriate caution." It asks hosts to "obtain explicit user consent before invoking any tool", and it warns that descriptions of tool behaviour "should be considered untrusted, unless obtained from a trusted server".

So the safety of an MCP setup depends on choices outside the protocol. Which servers do you install, and from whom? What credentials do they hold? Where do they run, and what can they reach from there? A server that reads a calendar is low stakes. A server that runs shell commands or executes code the model wrote is high stakes, because the model chooses the arguments and the model can be steered by anything it reads.

Servers that run code belong in a sandbox#

The most useful MCP servers for agents are often the riskiest: an execute tool that runs Python, a shell tool, a tool that installs a package and runs a test suite. Run one of those on the machine that also holds your source code, your SSH keys and your cloud credentials, and every prompt injection becomes a way into that machine.

The safer pattern is to keep the MCP server thin and send the actual execution somewhere disposable. The server receives the call, starts or reuses a sandbox, runs the code there with the network limited to what the task needs, returns the output and deletes the sandbox when the session ends. The model still gets a working tool. A bad call damages a machine that was going away anyway.

That pattern also answers the scaling question. One shared execution machine behind an MCP server serialises every user's work and lets one user's mess leak into the next. A sandbox per session keeps users apart and lets many sessions run at once.

Promigence fits behind an execute tool like this. A sandbox is ready for its first command in 207 ms at p50 through the CLI, a notebook-style code cell runs in 8.9 ms at p50, and sandboxes are billed per second, so short tool calls are billed for the seconds they run. The MCP execute tool guide builds one end to end.

FAQ#

What is MCP in AI?#

The Model Context Protocol (MCP) is an open standard for connecting AI applications to external tools and data. A host application connects to MCP servers, and the servers offer tools and data that the model can use.

Who owns the Model Context Protocol?#

Anthropic created it in November 2024 and donated it in December 2025 to the Agentic AI Foundation, a directed fund under the Linux Foundation. Block and OpenAI co-founded the foundation with Anthropic.

What is the difference between an MCP client and an MCP server?#

The client lives inside the AI application and holds a connection to one server. The server is a separate program that exposes capabilities such as tools and data. One application can run many clients, one per server.

Is MCP secure?#

The protocol sets security principles, such as user consent before any tool runs, but it cannot enforce them by itself. Safety depends on which servers you install, what they can reach and where they run. Servers that execute code should run in an isolated sandbox.

What is the safe way to run code from an MCP tool?#

Keep the server small and run the code in a sandbox created for the session, with the network limited and no credentials inside. Return the output to the model and delete the sandbox when the session ends.

Sources#

SourceWhat it supportsRead
Anthropic: Introducing the Model Context Protocol (25 Nov 2024)the launch25 Oct 2026
Anthropic: donating MCP and establishing the Agentic AI Foundation (9 Dec 2025)adoption figures, the foundation, its co-founders25 Oct 2026
MCP specification, 2026-07-28roles, JSON-RPC, features, extensions, the security principles25 Oct 2026
Promigence home page207 ms ready; 8.9 ms per code cell25 Oct 2026

More in the Promigence blog, or follow it by RSS.

Request access

Leave your work email and we will email you an invite code. $10 free, no card. $40 more when you add one.

See our Privacy Policy for how we use your email.

Request access

Leave your work email and we will email you an invite code. $10 free, no card. $40 more when you add one.

See our Privacy Policy for how we use your email.