Skip to content

AgentsExplainer

What Is the Model Context Protocol? A Developer's Guide to MCP

MCP standardizes how AI applications connect to tools and data. Here is how hosts, clients and servers fit together, what travels over the wire, and what to check before you ship an MCP server.

AI Dev Hub Editorial

Automated quality gate

Published
Updated
Reading time
3 min read
  • 5 sources cited
  • 17 facts quote-verified

The short version

The Model Context Protocol (MCP) is an open standard that Anthropic introduced on November 25, 2024 for connecting AI applications to the systems where data and tools live 1. Instead of building a one-off integration for every pairing of AI app and external system, a capability is exposed once as an MCP server, and any MCP-capable application can use it 1.

The specification says it takes inspiration from the Language Server Protocol, which standardized how editors talk to language tooling 2. MCP plays a similar role for AI applications: one protocol between many clients and many servers.

How it works

MCP defines three roles 2:

  • Hosts — the AI application a person actually uses, such as a desktop assistant or an IDE.
  • Clients — connectors inside the host; each one maintains a connection to a single server.
  • Servers — services that provide context and capabilities.

Servers can offer three kinds of features 2:

FeatureWhat it isTypical example
ToolsFunctions the model can execute"search issues", "run a query"
ResourcesContext and data for the user or the modelfiles, records, documents
PromptsTemplated messages and workflowsa reusable "review this pull request" prompt

All messages between clients and servers use JSON-RPC 2.0 2. Discovering and invoking a tool is two requests: tools/list returns the available tools, and tools/call executes one 3.

code
{ "jsonrpc": "2.0", "id": 1, "method": "tools/list" }
json
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": { "name": "search_issues", "arguments": { "query": "memory leak" } }
}

Transports

The specification defines two standard transports 4:

  • stdio — the client launches the MCP server as a subprocess and they exchange messages over standard input and output. This is the usual choice for local tools.
  • Streamable HTTP — the server runs as an independent process that can handle multiple client connections, which suits remote and shared servers.

Messages are UTF-8 encoded JSON-RPC in both cases 4.

Where it fits

Tool calling (often called function calling) is how a model asks the application to run something. It does not say where that something lives or how it gets wired in, so every application ends up re-implementing the same integrations. MCP standardizes that side: the same server can plug into different hosts 12. Official SDKs and reference servers are published under the Model Context Protocol organization on GitHub 5.

A useful mental model:

  1. The model decides what to call.
  2. MCP defines how the application discovers and invokes the capability.
  3. The server decides what actually happens — and that is where your security boundary is.

Trade-offs

  • Servers run with real privileges. A server that can read files or call APIs acts with whatever credentials you give it. Scope tokens narrowly and apply least privilege.
  • Everything crossing the boundary is untrusted input. Tool descriptions, arguments and results can carry instructions aimed at the model. This is the indirect prompt injection problem described in Prompt Injection in RAG Pipelines.
  • Keep a human in the loop for side effects. The specification's security principles center on user consent and control, and its tools section recommends that a human is always able to deny a tool invocation 23.
  • Pin a spec revision. The specification is versioned by date — this guide references the 2025-06-18 revision 2 — so check which revision your SDK and hosts implement.

Getting started checklist

  1. Decide whether your capability is a tool (an action), a resource (data) or a prompt (a workflow).
  2. Start with stdio for local development; move to Streamable HTTP when several users or machines need the same server 4.
  3. Use an official SDK instead of hand-writing JSON-RPC plumbing 5.
  4. Treat every string that crosses the boundary — descriptions, arguments, results — as untrusted, and require confirmation before tools with side effects run.

Frequently asked questions

Is MCP only for Claude?

No. Anthropic introduced MCP as an open standard, so any AI application can implement an MCP client and any service can expose an MCP server.

How is MCP different from function calling?

Function calling is how a model asks the application to run a tool. MCP standardizes how the application discovers and invokes tools provided by external servers, so one server can be reused across many applications.

Which MCP transport should I use?

Use stdio for local servers that the client launches as a subprocess, and Streamable HTTP for remote servers that need to handle multiple client connections.

Sources

Every factual claim above cites one of these documents, retrieved and snapshotted by our research pipeline.

  1. S1
    Introducing the Model Context Protocol
    AnthropicOfficialRetrieved Sep 30, 2026
  2. S2
    Model Context Protocol Specification (2025-06-18)
    Model Context ProtocolOfficialRetrieved Sep 30, 2026
  3. S3
    Tools — Model Context Protocol Specification
    Model Context ProtocolOfficialRetrieved Sep 30, 2026
  4. S4
    Transports — Model Context Protocol Specification
    Model Context ProtocolOfficialRetrieved Sep 30, 2026
  5. S5
    Model Context Protocol on GitHub
    GitHubOfficialRetrieved Sep 30, 2026

Open SourceGuide

GraphNav: A Local, MIT-Licensed Code Knowledge Graph for Python Monorepos

GraphNav is an MIT-licensed, fully local code knowledge graph tool designed for Python monorepos and AI coding agents. It automatically maps function calls and updates context on file changes, operating without network access or API keys by default.

6 min readListen · 13 min

AgentsNews

MCP TypeScript SDK v2.2.0 Enhances OAuth, List Calls

The Model Context Protocol TypeScript SDK v2.2.0 has been released, updating key client and server packages. This update introduces a mandatory expectedIssuer parameter for machine-to-machine OAuth providers and enhances list call behavior.

3 min readListen · 8 min

AI ToolsNews

Claude Code v2.1.280 Integrates Opus 5.5, Enhances UI

Claude Code v2.1.280 introduces Claude Opus 5.5 as the new default Opus model, featuring a 1 million token context window. The update also brings enhanced mouse support for navigation and configurable MCP tool descriptions.

3 min readListen · 8 min