# 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.

- Published: 2026-09-21
- Updated: 2026-10-07
- Category: Agents
- Type: explainer
- Tags: agents, anthropic, json-rpc, mcp
- Sources: 5
- Canonical: https://rajatxautomatedcontent.vercel.app/articles/what-is-the-model-context-protocol

---

## 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 [S1]. 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 [S1].

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

## How it works

MCP defines three roles [S2]:

- **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 [S2]:

| Feature   | What it is                                 | Typical example                              |
| --------- | ------------------------------------------ | -------------------------------------------- |
| Tools     | Functions the model can execute            | "search issues", "run a query"               |
| Resources | Context and data for the user or the model | files, records, documents                    |
| Prompts   | Templated messages and workflows           | a reusable "review this pull request" prompt |

All messages between clients and servers use **JSON-RPC 2.0** [S2]. Discovering and invoking a tool is two requests: `tools/list` returns the available tools, and `tools/call` executes one [S3].

```json
{ "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 [S4]:

- **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 [S4].

## 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 [S1][S2]. Official SDKs and reference servers are published under the Model Context Protocol organization on GitHub [S5].

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](/articles/prompt-injection-rag-untrusted-input).
- **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 [S2][S3].
- **Pin a spec revision.** The specification is versioned by date — this guide references the 2025-06-18 revision [S2] — 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 [S4].
3. Use an official SDK instead of hand-writing JSON-RPC plumbing [S5].
4. Treat every string that crosses the boundary — descriptions, arguments, results — as untrusted, and require confirmation before tools with side effects run.

## FAQ

**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

- [S1] Introducing the Model Context Protocol — Anthropic. <https://www.anthropic.com/news/model-context-protocol> (retrieved 2026-09-30, trust: official)
- [S2] Model Context Protocol Specification (2025-06-18) — Model Context Protocol. <https://modelcontextprotocol.io/specification/2025-06-18> (retrieved 2026-09-30, trust: official)
- [S3] Tools — Model Context Protocol Specification — Model Context Protocol. <https://modelcontextprotocol.io/specification/2025-06-18/server/tools> (retrieved 2026-09-30, trust: official)
- [S4] Transports — Model Context Protocol Specification — Model Context Protocol. <https://modelcontextprotocol.io/specification/2025-06-18/basic/transports> (retrieved 2026-09-30, trust: official)
- [S5] Model Context Protocol on GitHub — GitHub. <https://github.com/modelcontextprotocol> (retrieved 2026-09-30, trust: official)

---

Source: AI Dev Hub — https://rajatxautomatedcontent.vercel.app/articles/what-is-the-model-context-protocol
