$ recombobulate _
home / tips / scope-mcp-servers-globally-or-per-project
1

Scope MCP Servers Globally or Per-Project

bagwaa @bagwaa · Mar 25, 2026 · MCP Servers
scope-mcp-servers-globally-or-per-project

Not every MCP server belongs in every project. Claude Code lets you configure servers at user scope — available everywhere — or project scope — only for that specific repo.

~/.claude/settings.json     ← global: available in every project
.claude/settings.json       ← project: only available in this repo

A typical split:

// ~/.claude/settings.json — tools you always want
{
  "mcpServers": {
    "brave-search": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-brave-search"],
      "env": { "BRAVE_API_KEY": "..." }
    },
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/home/user"]
    }
  }
}
// .claude/settings.json — tools specific to this repo
{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-postgres"],
      "env": { "DATABASE_URL": "postgresql://localhost/myapp_dev" }
    }
  }
}

Both configs are merged at runtime — project settings take precedence on conflicts. This means you can override a global server with a project-specific version if needed.

Global scope is ideal for utilities like web search, note-taking, or a shared filesystem tool. Project scope is right for database connections, internal APIs, or any server that requires project-specific credentials.

Scope your MCP servers like environment variables: global for utilities, local for project-specific secrets.

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Build a Custom MCP Server to Expose Your Internal APIs

Scaffold a custom MCP server with Claude to give it direct access to your internal APIs, dashboards, and microservices.

bagwaa @bagwaa · 3 hours ago
0
Lock Down MCP Servers with --strict-mcp-config

Use --strict-mcp-config to restrict Claude Code to only the MCP servers you explicitly provide, ignoring all other sources.

bagwaa @bagwaa · 4 hours ago
0
Use the /mcp Command to Inspect Your MCP Servers

When an MCP server misbehaves, /mcp gives you a live view of every connected server, its status, and the tools it's exposing — right inside your session.

bagwaa @bagwaa · 6 hours ago