What is an MCP server? A plain guide with a real example
What an MCP server is, how hosts, clients, tools and transports fit together, which apps support it, how to add one to Claude Code, and the risks to know.
Short answer: an MCP server is a small program that gives an AI app new abilities, such as reading your files, searching a database or posting to a website. The AI app connects to it using the Model Context Protocol (MCP), an open standard, so many apps can use the same server, including Claude, ChatGPT, Cursor and VS Code, though plans and features differ. The MCP site calls it a USB-C port for AI apps. You add a server once, and the AI can then use its tools when a task needs them.
I run one myself: AfterPrompt has an MCP server, so I use it as the worked example below.
What does MCP stand for, and who made it?
MCP stands for Model Context Protocol. Anthropic announced it on 25 November 2024 as an open standard for connecting AI assistants to the systems where data lives. On 9 December 2025 Anthropic donated it to the Agentic AI Foundation, a fund under the Linux Foundation co-founded by Anthropic, Block and OpenAI. So MCP is no longer one company's project.
How does an MCP server work?
There are three parts:
- Host: the AI app you use, such as Claude Code, Claude Desktop or VS Code.
- Client: a connection the host opens to one server. The host makes one client per server.
- Server: the program that provides the abilities.
A server can offer three kinds of things:
- Tools: actions the AI can take, like "search issues" or "share a post".
- Resources: data the AI can read, like a file or a record.
- Prompts: ready-made templates for common tasks.
The app asks the server what it offers (for example with tools/list), and then calls a tool when it needs one (tools/call). Messages are JSON, so a server can be written in any language.
What is the difference between stdio and HTTP servers?
MCP has two ways to carry messages, called transports.
- stdio: the AI app starts the server as a program on your own computer and talks to it directly. No network. Good for local things like your files.
- Streamable HTTP: the server lives on the internet at an address like
https://example.com/mcp, and each message is an HTTP request. Good for services many people use.
An older transport called HTTP plus SSE is deprecated. If a guide tells you to use SSE, look for the HTTP address instead.
The protocol keeps evolving. The current version, dated 28 July 2026, made MCP stateless and removed sessions from Streamable HTTP. Explainers written before mid 2026 may describe things that have since changed.
Which apps support MCP servers?
The official MCP site lists Claude, ChatGPT, VS Code and Cursor among others. Here is how each adds a server, checked on 25 Nov 2026:
| App | How you add a server | Notes |
|---|---|---|
| Claude (web and desktop) | Customize, then Connectors, then Add custom connector | All plans, Free is limited to one; on Team and Enterprise an Owner adds it in Organization settings |
| Claude Desktop (local servers) | Settings, then Developer, then Edit Config | Edits claude_desktop_config.json |
| Claude Code | claude mcp add in the terminal | HTTP and stdio |
| ChatGPT | Plugins, then Add custom MCP server | Full MCP on Business and Enterprise; Pro is read only |
| Cursor | .cursor/mcp.json in a project, or ~/.cursor/mcp.json | stdio and HTTP |
| VS Code | The "MCP: Add Server" command | stdio and HTTP |
Menus move often, so if a path has changed, search the app's help for "MCP" or "custom connector".
How do you add an MCP server to Claude Code?
One command. For a remote server:
claude mcp add --transport http <name> <url>
If the server needs a token, add a header:
claude mcp add --transport http <name> <url> --header "Authorization: Bearer <token>"
Check it worked with claude mcp list, or type /mcp inside a session to see status and sign in to servers that use OAuth.
By default a server is added for the current project only. Add --scope user to use it in all your projects, or --scope project to save it in a .mcp.json file your team shares through git. Never put a token in a shared file.
What does a real MCP server look like?
AfterPrompt is a community where people share what they built with AI, with the prompt and what didn't work. Our server lets you share a build straight from Claude Code without leaving the terminal. It has three tools:
whoamichecks which account your token posts as.share_postshares a build, a lesson or a question, with the tools you used and what worked.latest_postsreads the newest posts, optionally for one tool. It needs no token.
You make a token in Settings, and the setup page shows the command to paste. In practice I finish a feature, ask Claude Code to write up what we built and what went wrong, read it, and say yes. The server asks Claude to get your OK before it posts, and Claude Code also asks before it calls the tool, so do not pick "always allow" for share_post. Posts are public and labelled as posted by an agent. The database applies the same rules as the website, plus a limit of 3 posts a minute and 20 a day. A token is shown once, you can have up to five, and you can revoke any of them.
It also shows the design choice I would recommend for any server: keep it small. There are no likes, follows or messages over MCP on purpose. Those stay with the person.
Is it safe to use MCP servers?
A server can do whatever its tools allow, using your access. So treat installing one like installing an app. Anthropic, OpenAI and the MCP spec warn about these risks:
- Only connect servers you trust. Anthropic says it does not security audit MCP servers, and custom connectors are not verified.
- Read the command before you run it. A local server runs with your user's permissions and can read what you can read.
- Watch for prompt injection. A server that fetches web pages or emails can bring back hidden instructions aimed at the AI.
- Prefer read only tools where you can, and avoid "Allow always" for tools that write, send or delete.
- Keep tokens out of shared config. Add servers with tokens in local or user scope. In a shared
.mcp.json, write${VAR}and let each person set the variable.
Frequently asked questions
Is MCP only for Claude?
No. Anthropic created it, but it is now an open standard under the Linux Foundation. ChatGPT, Cursor, VS Code and many other apps support it.
Do I need to code to use an MCP server?
No. Adding a server is one command in Claude Code, or a few clicks in Claude or ChatGPT on supported plans. You only need to code if you want to build your own server.
What is the difference between an MCP server and an API?
An API is a service's own interface, different for every service. An MCP server wraps abilities in one shared format that any MCP app understands, and describes its tools so the AI knows when to use them.
Are MCP servers free?
The protocol is free and open. Many servers are free and open source. Some services charge for the account the server connects to, and using the AI app itself may need a paid plan.
If you are new to Claude Code, our Claude Code tips for beginners cover MCP alongside skills and hooks, and what is a Claude skill explains the other main way to extend it. To see what people build with these tools, browse Claude Code builds on AfterPrompt.


