# What Is MCP? The Model Context Protocol Explained

> What is MCP? The Model Context Protocol is an open standard that connects AI apps to tools and data through hosts, clients and servers. A plain guide.

- Author: Naman Gundaniya (https://hellonaman.com)
- Published: 2026-11-17
- Updated: 2026-11-17
- Canonical URL: https://hellonaman.com/blog/what-is-mcp

The Model Context Protocol (MCP) is an open standard that lets an AI application connect to external tools and data through one common interface. A host application runs one client per MCP server, and each server offers tools, resources and prompts over JSON-RPC. Anthropic published MCP in November 2024 and donated it to the Linux Foundation's Agentic AI Foundation in December 2025.

Most explanations of MCP stop at "USB-C for AI". That is a fair picture, but it does not tell you what actually runs where, who decides what, or what changed in the 2026 revision of the specification. This post covers those points from the specification and vendor documentation, as of late 2026.

## What is MCP in plain terms?

MCP is a shared language that AI applications and integrations use to talk to each other. The [specification](https://modelcontextprotocol.io/specification/latest) describes it as an open protocol for integrating LLM applications with external data sources and tools, and says it borrows the idea from the Language Server Protocol, which did the same job for programming-language support across code editors.

The problem it solves is repetition. When [Anthropic introduced MCP on 25 November 2024](https://www.anthropic.com/news/model-context-protocol), it wrote that "every new data source requires its own custom implementation". With three AI apps and four internal systems, you would write twelve integrations. With a shared protocol, each system gets one server and each app gets one client implementation.

MCP is no longer one vendor's project. In December 2025 the [Linux Foundation announced the Agentic AI Foundation](https://www.linuxfoundation.org/press/linux-foundation-announces-the-formation-of-the-agentic-ai-foundation), with MCP from Anthropic, goose from Block and AGENTS.md from OpenAI as founding projects. The same announcement cites more than 10,000 published MCP servers and lists Amazon Web Services, Anthropic, Block, Bloomberg, Cloudflare, Google, Microsoft and OpenAI as platinum members.

## How do MCP hosts, clients and servers fit together?

An MCP host is the AI application, an MCP client is a connector inside the host, and an MCP server is a program that provides context and capabilities. The [architecture overview](https://modelcontextprotocol.io/docs/learn/architecture) gives the rule that matters: the host creates one client for each server, and each client keeps a dedicated connection to its server.

![Architecture diagram of the Model Context Protocol. On the left, a box labelled MCP host, the AI application, contains a language model and three MCP clients. Each client connects by an arrow to one MCP server on the right: two local servers for files and a database over stdio, and one remote server for a SaaS API over Streamable HTTP. All messages are JSON-RPC 2.0. A strip along the bottom shows what each server offers: tools for actions, resources for data, and prompts for templates.](https://hellonaman.com/blog/what-is-mcp/diagram.svg)

*One host, one client per server, and three kinds of things a server can offer.*

The architecture overview uses Visual Studio Code as its example of a host, alongside Claude Code and Claude Desktop. When the editor connects to a Sentry server and a filesystem server, it creates two client objects, one per connection.

Two details are easy to miss:

- **The model never talks to a server directly.** The host collects the tool lists from every connected server, hands them to the model, intercepts the model's tool call, and routes it to the right server.
- **"Server" does not mean "remote".** A server is any program that serves context. A local server runs on your machine as a subprocess. A remote server runs on someone else's platform and typically serves many clients.

## What are MCP tools, resources and prompts?

Tools, resources and prompts are the three core primitives an MCP server can expose, and they differ in who is meant to use them. The specification defines them as follows.

| Primitive | What the specification says it is | Typical example |
| --- | --- | --- |
| Tools | Functions for the AI model to execute | Run a database query, create a ticket |
| Resources | Context and data, for the user or the AI model to use | A file's contents, a database schema |
| Prompts | Templated messages and workflows for users | A reusable "review this pull request" template |

Each primitive has a list method, so a client can ask a server what it offers and the answer can change over time. A tool definition carries a name, a description and a JSON Schema for its inputs. The [tools section of the specification](https://modelcontextprotocol.io/specification/2026-07-28/server/tools) calls tools "model-controlled": the model decides when to call them, and the specification says there should always be a human in the loop with the ability to deny tool invocations.

Clients can offer one feature back to servers: elicitation, which lets a server ask the user for more information or a confirmation. Beyond the core, optional extensions cover long-running tasks and interactive UI rendered inside a conversation.

## Which transports does MCP use?

MCP defines [two standard transports](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports): stdio for local servers and Streamable HTTP for remote servers. Both carry the same JSON-RPC 2.0 messages, so a server's tools behave the same way on either.

- **stdio.** The client launches the server as a subprocess and exchanges newline-delimited messages over standard input and output. Nothing leaves the machine and there is no network overhead.
- **Streamable HTTP.** The server exposes a single HTTP endpoint. The client sends each message as an HTTP POST, and the server replies with either a JSON object or a Server-Sent Events stream for that request.

An older HTTP+SSE transport from the first version of the protocol is deprecated, and the specification tells implementers to migrate to Streamable HTTP.

Authorization is optional in MCP. Where a remote server needs it, the [authorization specification](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization) bases the flow on OAuth 2.1, and a local stdio server is expected to read credentials from its environment instead. I cover the security side in [MCP server for your internal tools](https://hellonaman.com/blog/mcp-server-for-internal-tools).

## How is MCP different from function calling?

Function calling is how a model asks for a tool to be run; MCP is how an application finds tools and reaches them. They sit at different layers and are normally used together.

With function calling, as [OpenAI's guide](https://developers.openai.com/api/docs/guides/function-calling) describes it, you send the model a list of tools defined by JSON Schema, the model returns a tool call, your application executes the code, and you send the result back. The integration code lives inside your application and is written for that application.

MCP moves that integration code into a separate server with a standard interface. The host fetches tool definitions from its servers, passes them to the model through the model's ordinary function-calling interface, and forwards the model's calls to the server that owns the tool.

| Question | Function calling | MCP |
| --- | --- | --- |
| What is it? | A model API feature | A protocol between apps and integrations |
| Who defines the tools? | Your application code | An MCP server, discovered at runtime |
| Where does tool code run? | Inside your application | In the server, local or remote |
| Reuse across AI apps | Rewrite per app | Any MCP host can connect |
| Covers data and templates? | No, tools only | Yes, resources and prompts as well |

Model vendors now accept MCP servers directly. OpenAI's API has an [MCP tool for remote servers](https://developers.openai.com/api/docs/guides/tools-connectors-mcp) that, by default, asks for approval before data is shared with a server. If you are choosing between protocols for agent-to-agent work, see [MCP vs A2A](https://hellonaman.com/blog/mcp-vs-a2a).

## What changed in the 2026-07-28 MCP specification?

The current MCP revision, dated 2026-07-28, makes the protocol stateless. Tutorials written before mid-2026 describe an initialization handshake that no longer exists in the current version.

According to the specification's [key changes page](https://modelcontextprotocol.io/specification/2026-07-28/changelog), the main differences from the 2025-11-25 revision are:

- **No handshake.** The `initialize` exchange is removed. Every request carries its protocol version and client capabilities.
- **A discovery call.** Servers must implement `server/discover`, which returns supported versions, capabilities and identity in one request.
- **No protocol-level sessions.** The session header is gone from Streamable HTTP. A server that needs state across calls returns an explicit handle and receives it back as a normal tool argument.
- **Deprecations.** Roots, sampling and logging are deprecated. They still work during the deprecation window, but new implementations should not add them.
- **Tasks moved out.** Long-running tasks became an official extension instead of a core feature.

In practice this makes remote servers easier to run behind ordinary load balancers, because no request depends on an earlier one. Clients and servers can still support older versions side by side.

## When is MCP worth using, and when is it not?

MCP is worth using when more than one AI application needs the same integration, or when you want people to bring their own AI client to your system. A design system, an internal API or a database exposed once as a server can then be used from an IDE, a chat app and a custom agent without three separate builds. One of my own projects, a [design system packaged as an MCP server](https://hellonaman.com/work/design-system-mcp-server), exists for exactly that reason: the same server works with Claude Code, Cursor and other MCP clients.

MCP is not worth the overhead when one application calls two or three functions that nothing else will ever use. Plain function calling inside that application is simpler to build, test and secure. On client projects I start there and move an integration into an MCP server once a second consumer appears. For a build walkthrough, see [how to build an AI agent with MCP and Claude](https://hellonaman.com/blog/how-to-build-an-ai-agent-with-mcp-and-claude).

## Work with me

I build MCP servers and the agents that use them for teams in the US, UK, Canada and Europe, working remotely from India. See [MCP server development](https://hellonaman.com/services/mcp-server-development) and [AI agent development](https://hellonaman.com/services/ai-agent-development), or look through [my work](https://hellonaman.com/work) and book a scoping call to talk through what you want to connect.

## FAQ

### Is MCP only for Claude?

No. MCP is an open protocol under the Linux Foundation's Agentic AI Foundation, whose platinum members include Anthropic, OpenAI, Google and Microsoft. OpenAI's API accepts remote MCP servers, and the official documentation uses Visual Studio Code as an example host next to Claude Code and Claude Desktop.

### Is an MCP server the same as an API?

Not quite. An MCP server usually wraps an API, but it describes its capabilities in a form a language model can read: named tools with descriptions and input schemas, plus resources and prompts. A REST API is written for developers, while an MCP server is written for a model working on a user's behalf.

### Does MCP replace RAG?

No. Retrieval-augmented generation is a technique for finding relevant text and adding it to a prompt. MCP is a connection standard. A retrieval system can be exposed through an MCP server as a search tool or as resources, so the two are often combined.

### Do I need to write code to use MCP?

Not to use existing servers. Most hosts let you add a server through configuration, and many vendors publish official servers for their own products. You need code when you want to expose your own systems, and official SDKs exist for that.

### Is MCP secure by default?

Not on its own. The specification states that MCP cannot enforce its security principles at the protocol level, so safety depends on the host, the server and how much access you grant. Treat every third-party server as code you are choosing to run and data you are choosing to share.

## Sources

- [specification (modelcontextprotocol.io)](https://modelcontextprotocol.io/specification/latest)
- [Anthropic introduced MCP on 25 November 2024 (anthropic.com)](https://www.anthropic.com/news/model-context-protocol)
- [Linux Foundation announced the Agentic AI Foundation (linuxfoundation.org)](https://www.linuxfoundation.org/press/linux-foundation-announces-the-formation-of-the-agentic-ai-foundation)
- [architecture overview (modelcontextprotocol.io)](https://modelcontextprotocol.io/docs/learn/architecture)
- [tools section of the specification (modelcontextprotocol.io)](https://modelcontextprotocol.io/specification/2026-07-28/server/tools)
- [two standard transports (modelcontextprotocol.io)](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports)
- [authorization specification (modelcontextprotocol.io)](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization)
- [OpenAI's guide (developers.openai.com)](https://developers.openai.com/api/docs/guides/function-calling)
- [MCP tool for remote servers (developers.openai.com)](https://developers.openai.com/api/docs/guides/tools-connectors-mcp)
- [key changes page (modelcontextprotocol.io)](https://modelcontextprotocol.io/specification/2026-07-28/changelog)
