What is Model Context Protocol (MCP)?

MCP is an open specification that lets AI applications connect to tools, data sources and prompt templates through a standard client and server protocol.

It differs from the A2A protocol in what it connects: A2A links agents to each other, while MCP links an agent or application to tools and data sources. It is also not tool calling itself: tool calling is how a model uses a tool, while MCP defines how tools are discovered and offered.

Topic
Agents and protocols
Also known as
Model Context Protocol
Origin
2024, published as an open specification

How Model Context Protocol (MCP) works

  1. The architecture has three parts: the host the user works in, the MCP client that manages the connection and the MCP server that offers capabilities.
  2. The server advertises tools, resources and prompt templates; the host presents them to the model.
  3. When the model wants a tool, the client sends a standard request and the server returns the result.
  4. Messages travel between local processes or over the network (MCP transport); network links need separate authentication.

In more detail

JSON-RPC 2.0 and transports: stdio versus Streamable HTTP

MCP encodes all messages using JSON-RPC 2.0 and defines two standard transports: `stdio` for local subprocesses on the same machine and `Streamable HTTP` (which superseded the earlier HTTP+SSE transport) for remote network servers, supporting both plain request-response and Server-Sent Events streaming.

The six MCP primitives and who controls each

Beyond server-provided Tools (model-controlled actions), Resources (application-controlled data) and Prompts (user-controlled templates), MCP supports client-side primitives: Roots (exposing permitted workspace boundaries), Sampling (allowing a server to request an LLM completion through the client with user oversight) and Elicitation (requesting structured user input mid-task).

MCP-specific attack surface: tool poisoning and rug pulls

MCP introduced a distinct security threat surface: 'tool poisoning' (malicious instructions hidden inside tool descriptions or schemas that hijack model behaviour), 'rug pulls' (servers changing tool definitions after user approval) and cross-server data exfiltration via prompt injection in retrieved resources. Enterprise hosts mitigate these via strict tool-schema pinning, output sanitisation and human confirmation for state-changing calls.

Origins and open governance

Initially released by Anthropic in November 2024 as an open specification, MCP rapidly became a cross-vendor industry standard and later transitioned to open-source foundation stewardship (the Agentic AI Foundation under the Linux Foundation), ensuring no single vendor lock-in for enterprise adopters.

Commonly confused terms

TermHow it differs
Tool callingTool calling is the model-level capability to emit structured function calls during generation, whereas MCP is the application-level protocol that standardises how tools, resources and prompts are discovered, authenticated and executed across servers.
OpenAPI and REST API integrationOpenAPI/REST describes general web APIs, whereas MCP provides a stateful or streamable JSON-RPC abstraction tailored for LLM hosts, including dynamic capability discovery, prompt templates, resources and client-side callbacks like sampling and elicitation.

Why Model Context Protocol (MCP) matters for on-premises AI

It removes the need for a separate integration per AI application; internal systems connect through one standard interface. As an open specification, in-house MCP servers can be built and run air-gapped. In return each MCP server adds a capability and an attack surface: only approved servers are used, tools get least privilege, user permissions apply on every call and calls are logged (MCP security). An MCP gateway can centralise control.

ON-PREMISES EXAMPLE

A bank's in-house assistant reaches the internal reporting system through an approved MCP server; users get current data only from reports they may see.

Common questions

How does MCP relate to tool calling?

MCP offers tools in a standard, discoverable way; the model uses them through tool calling. One is the offering protocol, the other the usage mechanism.

Can MCP be used in-house or on a closed network?

Yes. It is an open specification; host, client and servers can run on the organisation's own network and in environments without internet access.

Sources

Related page on this site: Related FAQ · In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.