The Model Context Protocol (MCP) is an open protocol for connecting AI applications to external tools and data. It defines a common message format, a capability negotiation model, and transports so that one integration can work across multiple clients instead of being rebuilt for every product.
MCP does not make a tool safe, and it does not guarantee that two implementations are compatible. It gives both sides a shared language. The rest depends on configuration, permissions, versions, and the quality of the server.
The three roles
An MCP deployment has three roles:
- Host: the application the user interacts with, such as a coding agent or IDE.
- Client: the protocol component inside the host that connects to one server.
- Server: the program that exposes tools, resources, or prompts.
A host can create multiple clients, one per server. The server can run locally as a child process or remotely behind HTTP. The host decides which servers exist, which tools are exposed to the model, and what the user must approve.
What a server can expose
MCP has three primary server-side primitives:
| Primitive | Controlled by | Typical use |
|---|---|---|
| Tools | The model | Actions and queries the model can invoke |
| Resources | The application or user | Context identified by a URI |
| Prompts | The user | Reusable prompt templates with arguments |
Servers can also use lower-level features such as logging, progress notifications, and completions, depending on negotiated capabilities. A client is not required to support every primitive. During initialization, both sides declare what they can handle.
Messages and lifecycle
MCP uses JSON-RPC 2.0. A request has a method and an id; a response carries either a result or an error. Notifications omit the id.
Older revisions (2025-11-25 and earlier) used an initialize handshake. This legacy example is shown only to explain older clients:
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-11-25",
"capabilities": {},
"clientInfo": { "name": "example", "version": "1.0.0" }
}
}
The current specification is dated 2026-07-28. That revision removed the initialize handshake and HTTP session lifecycle; clients carry protocol metadata with requests and use server discovery instead. Do not port a legacy initialize example into a current implementation without checking the lifecycle specification. Pin your SDK and read the revision you actually implement.
Common JSON-RPC error codes include -32700 parse error, -32600 invalid request, -32601 method not found, -32602 invalid params, and -32603 internal error. MCP adds codes such as -32020 HeaderMismatch and -32022 UnsupportedProtocolVersion.
Transports
Two transports are current:
- stdio: the client launches the server as a child process and exchanges newline-delimited JSON over standard input and output.
- Streamable HTTP: the server exposes a single HTTP endpoint; the client sends POST requests and may receive a JSON response or a request-scoped SSE stream.
HTTP+SSE from the 2024-11-05 revision is deprecated. New implementations should use Streamable HTTP. Do not copy an SSE URL into a client that only implements Streamable HTTP and expect it to work.
For local tools, stdio is usually simpler and keeps data on the machine. For shared services, Streamable HTTP fits container and cloud deployments but introduces network authentication, Origin validation, TLS, and proxy concerns.
Where trust actually lives
MCP is explicit that servers can execute code and access data. The protocol does not sandbox a stdio server: it runs with the permissions of the process that launched it. A filesystem server granted a home directory can read everything that user can read. A database server with a privileged connection can change production data.
Protect the boundary with:
- Least-privilege credentials and read-only roles where possible.
- A narrow filesystem allow-list and network egress policy.
- Explicit tool approval in the client for anything destructive.
- A review of third-party server code and release history.
- Secrets in environment variables or a secret manager, never in committed configuration.
The official MCP Registry is a metadata and namespace service in preview. Listing is not a security audit. The registry itself explains that code scanning is delegated to package ecosystems and downstream tools.
Reading the rest of this site
Use the server catalog to find real integrations and the client center to see how each host formats configuration. If a configuration fails, start with the Config Doctor and the error knowledge base. The site records source links and verification levels for every entry; “source verified” means the project source exists, not that a runtime test was performed here.
Sources
Sources were checked on Oct 23, 2026. Versions and client behavior can change; confirm the current documentation before relying on a configuration.