MCP, the Model Context Protocol, is the open standard that lets Claude work with your real tools instead of text you paste into chat. Connect a server once, and Claude can read your Notion pages, search your GitHub issues, or check your Sentry errors, with your approval for each action. This guide explains what MCP is, then connects your first server to Claude Code in minutes, using the exact commands from Anthropic’s documentation, verified on 30 November 2026. You need Claude Code installed and signed in, and about ten minutes.
Key takeaways:
- MCP is an open standard, like a USB-C port for AI apps: one plug shape, any tool. A server set up once works across Claude, ChatGPT, VS Code and Cursor.
- The fastest route is one command:
claude mcp add --transport http notion https://mcp.notion.com/mcp, then sign in through your browser. - Trust a server before you connect it: Anthropic reviews its directory listings but does not security-audit them.
What MCP is
MCP stands for Model Context Protocol, an open-source standard for connecting AI applications to external systems. The protocol’s own site puts it best: think of MCP like a USB-C port for AI applications. A server is built once and any client that speaks the protocol can use it. The project is governed under the Linux Foundation’s LF Projects umbrella.
A connection has three parts: the host (the AI app, such as Claude Code), the client (the piece inside the host that manages the connection), and the server (the outside system, such as Notion or GitHub). A server exposes tools, resources and prompts. In practice, Claude stops working from pasted text: it can file a GitHub issue from a Jira ticket or check Sentry usage for a feature. Google opening its own MCP servers for Workspace apps is a separate product announcement, covered separately.
Before you start
You need Claude Code installed and signed in; if you have not set it up yet, our Claude Code for Beginners: What the AI Coding Agent Does and How to Start covers installation, sign-in and your first code change. You also need a terminal open in a project directory and the address of the server you want, from the Anthropic Directory at claude.ai or the service’s own documentation. Local servers run through npx need Node.js 18 or later.
Every command below was verified against the Claude Code documentation as published on 30 November 2026 and against the installed Claude Code 2.1.332 command help. The add commands were not executed against a live server here, because that needs your own signed-in account, so run the verification step after each add.
Connect your first server in minutes
The fastest first connection is Notion, over remote HTTP.
claude mcp add --transport http notion https://mcp.notion.com/mcp
Here claude mcp add is the command, --transport http says the server is a remote HTTP service, notion is the name you will use to refer to it, and the URL is Notion’s MCP endpoint. On success it prints an Added ... line. By default the server is registered at local scope, private to you and active only in this project.
Notion’s server sits behind sign-in: hosted services such as Sentry, Linear and Notion run their MCP servers behind OAuth, so you add the server’s URL, then sign in through your browser (run /mcp inside a session to do it).
Check the connection with claude mcp list; what you want to see is ✔ Connected. Then use it: ask Claude to summarise last Tuesday’s meeting notes in Notion. Claude calls the server’s tools to search your workspace and answers from the real pages. Every action still asks for your approval first.
The four ways to connect
Claude Code speaks four transports, and the wrong transport is the most common reason a server fails to connect.
| Transport | Best for | How you add it |
|---|---|---|
| Remote HTTP | Hosted tools: Notion, GitHub, Sentry, Stripe | claude mcp add --transport http <name> <url> |
| Remote SSE | Older hosted servers that only expose SSE | Same --transport http command (auto-switch), or --transport sse |
| Local stdio | Programs on your machine: a browser, files, a database socket | claude mcp add --transport stdio <name> -- <command> |
| Remote WebSocket | Servers that push events to Claude unprompted | JSON config only, "type": "ws" |
Remote HTTP, the recommended route. Use it for nearly every hosted tool:
claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
A server that needs a static token instead of OAuth takes it at add time with a header. Replace <your-token> with a fine-grained personal access token. The command does not validate it, so a wrong token fails later; verify with claude mcp get github:
claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer <your-token>"
Remote SSE, the older hosted shape. Some services expose only an SSE endpoint. Add these with the same --transport http command: Claude Code tries HTTP first and switches to SSE when the server does not accept it. That switch needs Claude Code v2.1.265 or later; earlier, pass --transport sse instead.
Local stdio, programs on your machine. Stdio servers run as local processes for tools that need direct system access. Claude Code starts the program when the session starts and stops it when the session ends. The -- separator is the part people get wrong: everything after it is the server’s own command, everything before it is Claude’s flags. This adds the Playwright MCP server, which gives Claude a browser it can navigate, click and read. It runs through npx and needs Node.js 18 or later:
claude mcp add --transport stdio playwright -- npx -y @playwright/mcp@latest
Environment variables go before the separator with -e, as in claude mcp add my-server -e API_KEY=<redacted> -- node ./my-server.js.
Remote WebSocket, servers that push to Claude. WebSocket servers hold a persistent bidirectional connection for servers that push events to Claude unprompted. Configure one in .mcp.json or with claude mcp add-json, using "type": "ws"; authentication is header-only.
Servers written for another client. Instructions may be written for Claude Desktop, Cursor or another client: a URL means the server is remote, a launch command goes after --, and an mcpServers block goes to claude mcp add-json (a url with no type needs "type": "http" first):
claude mcp add-json notion '{"type": "http", "url": "https://mcp.notion.com/mcp"}'
Scopes: who gets the server
Every add writes the server to one of three scopes:
| Scope | Stored in | Available to |
|---|---|---|
local |
~/.claude.json, under this project |
Only you, only this project. The default |
user |
~/.claude.json, top-level mcpServers |
Only you, all projects |
project |
.mcp.json in your project root |
Everyone who clones the project |
Add -s user for all your projects, or -s project to share a server with your team by checking .mcp.json into the repository. A server you have not approved yet shows as ⏸ Pending approval: run claude interactively and approve it.
You can also write .mcp.json by hand:
{
"mcpServers": {
"notion": {
"type": "http",
"url": "https://mcp.notion.com/mcp"
},
"playwright": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@playwright/mcp@latest"]
}
}
}
After saving, start a new Claude Code session in the project and approve the servers when asked.
The no-code route: connectors on claude.ai and Claude Desktop
If you never want the terminal, use connectors: a connector is what Claude calls an MCP server once it appears inside Claude. Directory connectors are Anthropic’s reviewed listings; a custom connector is any remote MCP server you add by URL. Open Claude on the web or in the desktop app, go to Customize, then Connectors, and pick a directory connector such as Google Drive, Notion or Slack. One click, sign in, done.
Connectors and custom connectors work on every plan, including Free; Free accounts are limited to one custom connector. A connector you add once follows your Claude account across the web, desktop, Cowork and mobile apps, and connectors added at claude.ai load automatically in the CLI. One limit: Claude reaches a custom connector from Anthropic’s cloud, so it cannot reach a server that only runs on your laptop. More guides are in the Software and Applications archive.
Claude Desktop: the config file route
Claude Desktop takes servers through a config file, the route for local servers in the desktop app. Open the Claude menu, then Settings, then the Developer tab, then Edit Config: that opens claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/; Windows: %APPDATA%\Claude\). The Filesystem server looks like this:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem",
"/Users/you/Desktop", "/Users/you/Downloads"]
}
}
}
Fully quit and restart Claude Desktop: the config only loads at startup. You need Node.js for npx-based servers.
Three security rules before you connect anything
First, trust before you connect. Servers that fetch external content can expose you to prompt injection: malicious instructions hidden in a page, email or document the server reads can try to steer Claude. Anthropic reviews its directory listings, but it does not security-audit or manage any MCP server.
Second, scope access down: grant the one folder, not the home directory, and the read-only token, not the admin one.
Third, keep approval prompts on. Claude asks before it acts through a server’s tools, and that pause is where you catch a wrong target or a destructive command.
When you stop using a server, remove it cleanly. For an OAuth server, clear its stored credentials first:
claude mcp logout sentry
claude mcp remove sentry
Removing a remote server also deletes the OAuth tokens Claude Code stored for it, but it does not revoke them at the issuer, which is why the logout step comes first.
Troubleshooting: what the statuses mean
Check status with /mcp or claude mcp list, then match the symptom.
| Status | Meaning | Fix |
|---|---|---|
✔ Connected |
Ready to use | Nothing to do |
! Needs authentication |
Reachable, but needs a browser sign-in or a token | Sign in from /mcp, or re-add with --header |
✘ Failed to connect |
The server did not respond | Check the URL, the token, and whether the service is up |
⏸ Pending approval |
A project-scoped server you have not approved yet | Run claude interactively and approve it |
Three mistakes cause most failures: a JSON entry with a url but no type is read as a stdio server (add "type": "http"); an expired token, fixed by re-signing in from /mcp; and a Desktop config change with the app not fully quit.
FAQ
Do I need to know how to code to use MCP?
No, not for remote servers: it is one command or one config block, copied and pasted.
Does MCP only work with Claude?
No. It is an open standard under the Linux Foundation, and ChatGPT, VS Code and Cursor support it too.
Can I use MCP on the free Claude plan?
Yes, with a limit: custom connectors are available on every plan, and Free users are limited to one custom connector.
Sources and Further Reading
- Claude Code Docs, “Connect Claude Code to tools via MCP”. https://code.claude.com/docs/en/mcp
- Claude Code Docs, “Connect to MCP servers” (quickstart). https://code.claude.com/docs/en/mcp-quickstart
- Model Context Protocol, “What is the Model Context Protocol (MCP)?” https://modelcontextprotocol.io/introduction
- Anthropic Help Center, “Add a connector that isn’t in the directory”. https://claude.com/docs/connectors/custom/add-unlisted
- AI Weekly, “How to Set Up MCP Servers for Claude, Step by Step”, 11 July 2026. https://aiweekly.co/learning-ai/generative-ai/how-to-set-up-mcp-servers
- Adventures in CRE, “How to Connect an MCP Server to Claude Desktop”. https://www.adventuresincre.com/how-to-connect-mcp-server-claude-desktop/


