Hosts, clients and servers
The protocol names three roles. The host is the AI application a person uses, such as a desktop assistant. Inside it, a client keeps a connection to each server, a program that offers the capabilities of one system, such as a file store, a database or a help desk. They exchange JSON-RPC 2.0 messages. A server can run on the same machine as the host or be reached remotely over HTTP, and the specification sets out how remote servers authorise access.
What a server can offer
| Feature | What it is | Example |
|---|---|---|
| Tools | Functions the model can ask to run | Look up an order, open a ticket |
| Resources | Data the application can read into context | A file, a record, a document |
| Prompts | Ready-made message templates a user can pick | Summarise this ticket thread |
MCP does not replace an API. A server usually wraps an existing API so that AI applications can discover and call it. Other AI providers and many developer tools have added support, and in December 2025 Anthropic donated the protocol to the Agentic AI Foundation, a fund run under the Linux Foundation.
Using MCP safely
A server is code with access to your systems, and the text it returns goes straight into the model's context, so treat both with care.
- Choose servers as you would dependencies. Prefer the system vendor's own, or ones you have reviewed, and pin versions.
- Give each server narrow access: read-only credentials where possible, scoped to the data the task needs, following least privilege.
- Watch for injected instructions. Tool descriptions and tool results can carry text written to steer the model, a form of prompt injection.
- Keep the approval step. The specification expects hosts to ask the user before a tool runs. Keep that on for anything that writes, sends or pays.
- Log every tool call with its inputs and results, so you can review what an AI agent did.
An example
Imagine a support team whose assistant connects to two servers: one for the order system, offering a read-only order lookup and a return request that needs a person's approval, and one for the help desk. Later the company moves to a different AI application that also supports MCP, and the same servers work there without new integration code. This example is hypothetical.
Read how we approach AI integration and AI security.