What is an MCP server? A plain-English guide
What is an MCP server? It's a connector that lets an AI app use an outside service. It speaks the open Model Context Protocol (MCP) and tells the model which tools and data it can use: search files, read a table, create a server. The assistant (Claude, ChatGPT, Cursor) decides when to call a tool, and the MCP server does the work and returns the result.
In about a year MCP went from launch to industry standard: Anthropic reports a large number of active public MCP servers, wide use of the Python and TypeScript SDKs, and support in ChatGPT, Cursor, Gemini, Microsoft Copilot and VS Code.
This guide follows the official MCP specification, currently version 2026-07-28: how the protocol is built, how a request flows, how MCP compares to a regular API, and what people use it for.
What is an MCP server in simple terms?
Think of MCP as a USB port for AI. Before it, every integration was custom: one plugin for this assistant, another for that one. MCP sets one standard. A service builds an MCP server once, and any app that speaks the protocol can use it.
The spec names its inspiration: the Language Server Protocol, which standardized how editors support programming languages. MCP does the same for connecting AI apps to tools and context.
In practice, an MCP server can:
- hand the model data: documents, database rows, logs;
- give the model actions: send a message, open a ticket, start a server;
- offer you ready-made prompt templates.
What MCP servers are used for
A language model only knows its training data and can't touch the outside world. An MCP server fixes both:
- Fresh context. The model reads your current data instead of guessing.
- Actions. The model calls a service's functions: create, update, delete.
- One standard. A server built once works in Claude Desktop, Claude Code, Cursor, ChatGPT and other MCP clients.
- Isolation. By design, a server can't read the whole conversation or "see into" other servers. The host keeps the chat history.
Common examples: a GitHub server for code review, a Postgres server for analytics questions, a browser server for testing a web app, a cloud server for spinning up infrastructure from chat.
How does an MCP server work? Hosts, clients and servers
MCP has three roles that are easy to mix up:
| Role | What it is | Example |
|---|---|---|
| Host | The AI app that creates connections and asks for your consent | Claude Desktop, Cursor, ChatGPT |
| Client | A connector inside the host; each client talks to exactly one server (1:1) | The "0x.cloud" connector in Claude settings |
| Server | A service that exposes tools, resources and prompts | A filesystem, database or cloud MCP server |
One host can run many clients at once: your local files, a company database and a cloud API side by side. A server can be a local process or a remote service on the internet.
Every message is JSON-RPC 2.0: requests, responses and notifications.
The three primitives: tools, resources, prompts
Servers offer three kinds of capabilities. The difference is who controls them.
| Primitive | What it provides | Who triggers it | Example |
|---|---|---|---|
| Tools | Functions the model can execute | The model | create_issue, run_query, create a server |
| Resources | Data and context for the model or user | The app and the user | A file, a table schema, a log |
| Prompts | Templated messages and workflows | The user | "Review this pull request" |
On the client side, version 2026-07-28 has one main feature: elicitation, where the server asks the user for missing input such as a confirmation or a parameter. Sampling and roots from earlier versions are deprecated and shouldn't be used in new implementations.
A real request: the tools/call example
The current protocol is stateless. Every request is self-contained and carries its protocol version and client capabilities in _meta. Servers must not rely on earlier requests on the same connection. Before anything else, a client can call server/discover to learn the server's supported versions and capabilities.
Here's a tool call, taken from the spec:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "get_weather",
"arguments": { "location": "New York" },
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientInfo": { "name": "ExampleClient", "version": "1.0.0" },
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}
Step by step:
- You ask the chat: "What's the weather in New York?"
- The model sees a
get_weathertool and decides to call it. - The host asks for your approval, as the spec requires.
- The client sends
tools/callto the server. - The server replies with
resultType: "complete"and the model writes its answer.
If the server needs more input, it returns resultType: "input_required". The host asks you, and the client retries the original request with your answer. The spec calls this a multi round-trip request (MRTR).
Local vs remote MCP servers: transports
The spec defines two standard transports:
| Transport | How it works | Best for |
|---|---|---|
| stdio | The client launches the server as a subprocess; messages are newline-delimited over standard streams | Local tools: files, Git, scripts on your machine |
| Streamable HTTP | Each message is an HTTP POST to one endpoint; replies come back as JSON or a request-scoped SSE stream | Remote servers: SaaS apps, clouds, company services |
For HTTP, MCP defines an OAuth-based authorization framework. Local stdio servers read credentials from environment variables instead.
How to create your own MCP server
You build one with the official SDKs (Python, TypeScript and other languages): describe a function, its arguments and a description for the model, and the SDK handles JSON-RPC and the transport. A local stdio server plugs into Claude Code or Cursor with one line of config. A remote server for a team has to run 24/7 at an address its clients can reach. Step by step: how to deploy an MCP server on a VPS.
MCP server vs API: what's the difference?
If a service already has a REST API, why add MCP? They solve different problems and often work together. Many MCP servers call the service's API internally.
| REST API | MCP server | |
|---|---|---|
| Built for | Developers writing code for each endpoint | AI assistants that discover and call tools on their own |
| Description | Docs, OpenAPI | Self-describing tools with JSON Schema arguments |
| Integration | Custom work in every app | One server works in every MCP client |
| Wire format | HTTP verbs and URLs | JSON-RPC 2.0 over stdio or Streamable HTTP |
| User consent | Up to the developer | Host must ask before invoking a tool |
| Pick it for | Backends, scripts, CI | Chat-driven work and AI agents |
Short version: APIs are for programs, MCP is for AI agents. When a service offers both, you script against the API and let your agent work through MCP.
MCP vs RAG
RAG (retrieve documents, paste them into the prompt) answers "what should the model read". MCP answers "how does the model connect to the outside world". They combine well: wrap search over your docs as an MCP tool like search_docs, and every MCP client can use it. The difference is that through MCP the model can also act, not just read.
Popular MCP servers: examples
| Server | What it gives the model | Where it runs |
|---|---|---|
| Playwright MCP (Microsoft) | a browser: open pages, click, fill forms | locally or on a server |
| GitHub MCP (GitHub's official server) | repos, issues, pull requests | remote or local |
| Filesystem (reference server in the MCP repo) | read and write files in allowed folders | local, stdio |
| 0x.cloud MCP | pricing, creating and deleting VPS servers | remote |
Each one exposes a single service to the model over the same protocol, which is why a server written once works in Claude, Claude Code, Cursor and VS Code alike.
Example: managing cloud servers from chat
One real-world example is the 0x.cloud MCP server. You connect it to Claude, ChatGPT or Cursor, and the assistant can quote prices, create VPS servers and delete them when you ask.
How it handles safety:
- each API key has its own scopes: read, create, delete;
- each key has a monthly spend limit: new purchases over it are blocked, while hourly servers already created keep billing and count toward the limit;
- when you connect through OAuth, you pick the scopes, limit and expiry yourself;
- any create request can run with
dry_run, which returns the exact price and creates nothing.
Use the 0x.cloud MCP server to get the exact price of an s1-2 server with Ubuntu 24.04 using dry_run. Don't create anything, just show me the hourly and monthly price.
Setup guides: connect an MCP server to Claude and connect an MCP server to Cursor.
MCP security: what the spec requires
MCP gives AI access to data and code execution, so the spec sets three principles:
- User consent and control. Users explicitly agree to data access and operations and understand what they approve.
- Data privacy. Hosts don't expose user data to servers without consent and don't send it elsewhere.
- Tool safety. A tool is arbitrary code execution. Tool descriptions from untrusted servers are treated as untrusted, and hosts need explicit approval before calling a tool.
Practical rules:
- connect servers only from publishers you trust;
- give keys the minimum scopes (for example, no delete);
- cap anything that spends money;
- don't auto-approve destructive actions.
Who's behind MCP
Anthropic introduced MCP in November 2024. On December 9, 2025, Anthropic donated MCP to the Agentic AI Foundation, a directed fund under the Linux Foundation. The spec is open and community-driven, and clients come from many companies, from Anthropic and OpenAI to code editors.
MCP server FAQ
What is an MCP server in simple terms? It's a program or service that tells an AI app which actions and data it can use, over the open Model Context Protocol, and runs those actions when asked. Think of it as a USB port for AI tools.
What are MCP servers used for? Giving AI assistants fresh context (files, databases, logs) and the ability to act (create a ticket, query data, deploy a server) through one standard that works across Claude, ChatGPT, Cursor and other clients.
What's the difference between an MCP server and an API? An API is built for developers who write code against each endpoint. An MCP server describes its tools so an AI model can discover and call them on its own, and the same server works in every MCP-capable client. Many MCP servers call an API under the hood.
How do MCP servers work in Claude? In Claude Desktop, Claude Code and claude.ai, an MCP server is a connector you add so Claude can use an outside tool. By default, Claude asks for your approval before it calls a tool.
Who maintains MCP? Anthropic introduced MCP in November 2024. On December 9, 2025 it was donated to the Agentic AI Foundation, a directed fund under the Linux Foundation. The spec is public at modelcontextprotocol.io.