Fixes › Claude Code

Claude Code: MCP server added but not available ("No MCP servers configured")

Claude Code

The error

No MCP servers configured • server missing from /mcp in another folder

Why it happens

claude mcp add defaults to local scope, which only applies to the current project directory. Open a different folder and the server is gone.

How to fix it

  1. Pick the right scope
    -s user for every project, -s project to share through .mcp.json in the repo.
    claude mcp add -s user context7 -- npx -y @upstash/context7-mcp
    claude mcp list
  2. Put -- before the server command
    Everything after -- is the server command; flags placed after it go to the server, not to Claude.
    claude mcp add -s user -e GITHUB_PERSONAL_ACCESS_TOKEN=ghp_xxx github -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
  3. Check status inside Claude
    Run /mcp to see connection state and authenticate remote servers.

Related servers

Sources