MCP server scopes
MCP server scopes answer two questions: which projects an MCP server works in and who sees it. Claude Code has three, chosen when you add a server: local, the default, only you and the current project; project, the whole team through a .mcp.json file in the repo, each person approves the server before first use in an interactive session (in claude -p, the Agent SDK and cloud sessions it loads without a prompt); user, only you and all your projects. On a name clash the upper layer wins entirely: local overrides project, project overrides user.
The three scopes side by side
| local | project | user | |
|---|---|---|---|
| Who sees it | only you | the whole team | only you |
| In which projects | the current one | this repository | all of yours |
| Where it is stored | ~/.claude.json, under the project path | .mcp.json at the repo root | ~/.claude.json, shared section |
| How to add | claude mcp add by default | claude mcp add --scope project | claude mcp add --scope user |
| Before first use | nothing | everyone approves the server in an interactive session | nothing |
| On a name clash | overrides project and user | overrides user | yields to the others |
Frequently asked questions
What MCP scopes does Claude Code have?
Three: local for you in the current project, project for the whole team through a file in the repo, and user for you across all projects.When do you pick an MCP server scope?
When adding the server; the default is local.Where it appears · 7
- Escalation to a human in AI agents · Harness
- What are quality gates for AI agents · Harness
- MCP server and AI agent for 1C · Harness
- The agent’s data plane and control plane · Harness
- Incident investigation with an AI agent · Harness
More 2
- MCP scopes in Claude Code · Harness
- MCP for an AI agent · Harness