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.
  4. Update Claude Code if MCP connect or config edits act up
    Claude Code 2.1.332 (November 24, 2026) fixed /mcp reconnect all and /mcp disable all counting a built-in server that isn't turned on for your account, and fixed local MCP servers seeing a new session ID after a Remote Control session's process restarts. Claude Code 2.1.311 (October 26, 2026) fixed subagents being unable to use tools from MCP servers that finished connecting after the subagent started. Claude Code 2.1.314 (October 29, 2026) fixed servers that also work without sign-in showing "needs authentication" after their saved sign-in stopped working, and fixed claude mcp logout reporting success when the sign-in was not actually removed. Claude Code 2.1.317 (November 3, 2026) fixed project and local MCP servers disconnecting after the first turn in some Claude Desktop Code-tab sessions. Claude Code 2.1.318 (November 4, 2026) fixed claude mcp add/remove writing config without waiting for the lock, fixed those commands (and related settings) reporting success when a shared network home directory could not be updated, and stopped stdio MCP servers that exit on the version probe from being re-probed on every start (they pin to the legacy handshake for 7 days). Claude Code 2.1.321 (November 9, 2026) fixed a blank screen or no answer at startup, and empty claude mcp list output, when a stored MCP sign-in record was empty (null); it also stopped MCP OAuth requests from sending secrets such as refresh tokens to another host when a server redirected them, and fixed a project MCP server disconnecting after the first message in a Claude Desktop Code tab when the desktop app has a server or extension with the same name. Claude Code 2.1.323 (November 12, 2026) fixed MCP tool calls ending with the sign-in server's error, such as TOKEN_EXPIRED, instead of asking you to sign in again, and fixed a server staying disconnected with no tools after a claude -p or Agent SDK caller removed and re-added it. Claude Code 2.1.325 (November 13, 2026) fixed Claude Desktop and SDK sessions listing a folder's own servers (.mcp.json, local) wrongly or not at all after a folder move. Claude Code 2.1.326 (November 16, 2026) made /mcp show why a local (stdio) server failed to start and made claude mcp add-json say what to change instead of "Invalid configuration: : Invalid input". Claude Code 2.1.327 (November 17, 2026) fixed /mcp saying no servers were configured after one was added during the session, and fixed claude mcp add/remove --scope project deleting other top-level keys (such as $schema) from .mcp.json. Run claude --version to check, then update.
    claude update
  5. Project scope stops with a .mcp.json error?
    Since Claude Code 2.1.327, claude mcp add --scope project stops instead of overwriting the file when .mcp.json lists servers at the top level without an mcpServers key. Move those entries inside "mcpServers": { … }, then run the command again.
    {
      "mcpServers": {
        "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp"] }
      }
    }

Related servers

Sources