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
- Pick the right scope
-s userfor every project,-s projectto share through.mcp.jsonin the repo.claude mcp add -s user context7 -- npx -y @upstash/context7-mcp claude mcp list - 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 - Check status inside Claude
Run/mcpto see connection state and authenticate remote servers. - Update Claude Code if MCP connect or config edits act up
Claude Code 2.1.332 (November 24, 2026) fixed/mcp reconnect alland/mcp disable allcounting 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 fixedclaude mcp logoutreporting 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) fixedclaude mcp add/removewriting 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 emptyclaude mcp listoutput, 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 asTOKEN_EXPIRED, instead of asking you to sign in again, and fixed a server staying disconnected with no tools after aclaude -por 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/mcpshow why a local (stdio) server failed to start and madeclaude mcp add-jsonsay what to change instead of "Invalid configuration: : Invalid input". Claude Code 2.1.327 (November 17, 2026) fixed/mcpsaying no servers were configured after one was added during the session, and fixedclaude mcp add/remove --scope projectdeleting other top-level keys (such as$schema) from.mcp.json. Runclaude --versionto check, then update.claude update - Project scope stops with a .mcp.json error?
Since Claude Code 2.1.327,claude mcp add --scope projectstops instead of overwriting the file when.mcp.jsonlists servers at the top level without anmcpServerskey. Move those entries inside"mcpServers": { … }, then run the command again.{ "mcpServers": { "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp"] } } }
Related servers
Docs & Knowledge● Maintained
Context7
Upstash Context7: up-to-date library documentation for AI coding agents (local @upstash/context7-mcp or hosted mcp.context7.com/mcp). Version 4.9.0 (N
★ 65.7k · updated 2026-11-30 · 🔑 auth
Dev Tools● Maintained
GitHub
GitHub's official MCP server for repositories, issues, pull requests, Actions and more (local Docker image or the hosted api.githubcopilot.com/mcp/ en
★ 34.9k · updated 2026-11-27 · 🔑 auth
Dev Tools● Maintained
Serena
A powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent
★ 31.8k · updated 2026-11-27