New Tool Radar

AI Agents & Automation

How to Add a Project-Scoped MCP Server to Claude Code

Add a project-scoped MCP server to Claude Code in .mcp.json so the whole team shares the same tools.

Schematic with three steps: Add the server at project scope; Commit the config and check it loads; Approve it once and test a tool.

Claude Code has three MCP scopes: local, project and user. Project scope stores the server in a .mcp.json file in the project root, committed to version control, so every teammate who clones the repo gets the same server. That is the scope to use when the team needs the tool. Add it with the project scope flag, commit the file, and remember that Claude Code asks each person to approve a project server before first use.

What you need

  • Claude Code installed and a project folder open
  • The MCP server command or remote URL to add
  • A shared repo the team clones, if the server is for the team

Step 1: Add the server at project scope

Run the add command with the project scope flag, giving the server a name and its launch command or remote URL. Project scope writes the server into .mcp.json in the project root.

Step 2: Commit the config and check it loads

Commit .mcp.json to the repo, then list the configured servers and confirm the new one appears and reports healthy. If it does not appear, the file is in the wrong folder or the scope was not project.

Step 3: Approve it once and test a tool call

Approve the project server when Claude Code asks, then ask Claude to use one of its tools on a harmless task and confirm the result. If approval keeps being asked, check the stored project choices.

Worked example: synthetic team server setup

The table below is a synthetic example. It shows the expected result of project MCP setup; no server was added.

Check Expected Result
Server in .mcp.json Yes Pass
Server lists as healthy Yes Pass
Teammate gets the same server Yes Pass
Tool call works Yes Pass

Expected result (UNTESTED). the server is stored in .mcp.json, lists as healthy, reaches teammates through the repo, and its tools work. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Project servers need approval before first use, and that approval is per person, not per repo.
  • Local scope is private to one project on one machine; use project scope only when the team needs the server.
  • Moving a server between scopes later means editing files by hand, so choose the scope first.

Sources

See all