How to Add an MCP Server to Claude Code Claude Code version 2.1.267 adds MCP servers through the `claude mcp add` command, which writes the server entry to a config file and loads its tools on the next session, according to Anthropic's documentation checked 10 Sep 2026. The command's scope flag controls visibility: local scope (the default) is private to the project, project scope writes to `.mcp.json` for teammates to commit, and user scope registers a server across every project. Anthropic open sourced the Model Context Protocol on 25 November 2024 with initial SDKs and reference servers. How to Add an MCP Server to Claude Code The claude mcp add command, its scope flag, editing .mcp.json by hand, and how Munder Difflin's Capabilities screen grants an MCP server to one agent at a time. Run claude mcp add with a name and the command that starts the server for a local tool, or add the transport flag set to http and a URL for a hosted one. The default scope is local to your project; add the scope flag set to user to use a server everywhere, or to project to share it with teammates through .mcp.json . Confirm the connection with claude mcp list , and edit .mcp.json directly if you would rather write the JSON yourself. You add an MCP server to Claude Code with one command: claude mcp add , a name you pick, and the command or URL that starts the server. Claude Code writes that entry to a config file, then loads the server’s tools the next time it reads it. That one command handles the common case. What’s worth understanding is the scope flag, which decides who else sees the server, and the other ways to add one: editing .mcp.json yourself, or connecting from VS Code or the desktop app instead of the CLI. If you’re already running more than one Claude Code session, each reads the same project scoped servers, which is one less thing to juggle when you manage multiple Claude Code sessions /blog/manage-multiple-claude-code-sessions/ . What is an MCP server? what-is-an-mcp-server An MCP server is a program that gives an agent tools or data it doesn’t have built in: a way to search issues, query a database, or drive a browser. The Model Context Protocol is the open standard those servers speak, described on its own site as “a standardized way to connect AI applications to external systems” checked 10 Sep 2026, modelcontextprotocol.io https://modelcontextprotocol.io . Anthropic open sourced MCP on 25 November 2024, with initial SDKs and a handful of reference servers checked 10 Sep 2026, Introducing the Model Context Protocol https://www.anthropic.com/news/model-context-protocol . Claude Code is one client among several now; any compliant server works with it. How do you add an MCP server to Claude Code? how-do-you-add-an-mcp-server-to-claude-code Run claude mcp add , pick a name, and tell it what starts the server: a local command, or a URL with the transport flag set to http for a hosted one. Here’s what that looked like in a scratch folder, checked on 10 Sep 2026: bash $ claude --version 2.1.267 Claude Code $ mkdir -p mcp-demo && cd mcp-demo $ claude mcp add --scope project demo-docs -- npx -y @modelcontextprotocol/server-everything Added stdio MCP server demo-docs with command: npx -y @modelcontextprotocol/server-everything to project config File modified: