MCP error fixes
Exact error text, the cause, and a fix you can paste. Every guide cites official docs and real GitHub issues.
MCP server not showing in Cursor (or showing a red dot)
No tools available • Client closed • red status dot next to the server in Cursor's MCP settings
MCP server not showing in Claude Desktop
No hammer/tools icon appears, or "Could not attach to MCP server" / "MCP server failed" in Claude De
Fix "spawn npx ENOENT" when starting an MCP server
Error: spawn npx ENOENT
MCP servers fail on Windows with npx (use cmd /c)
spawn npx ENOENT • 'npx' is not recognized • Connection closed (Windows only)
MCP server can't see my API key (env vars not passed)
401 Unauthorized • "API key is required" • "Missing environment variable"
MCP config JSON syntax errors (trailing commas, comments, quotes)
Unexpected token } in JSON at position … • "Failed to parse MCP config" • servers silently missing
Too many MCP tools: trimming tools in Cursor, VS Code, Codex and Devin Desktop
Tool limit warnings, slow or confused tool choice, or the agent ignoring tools from a server you enabled
Fix "spawn uvx ENOENT" for Python MCP servers
Error: spawn uvx ENOENT
"MCP error -32000: Connection closed": what it means and how to fix it
McpError: MCP error -32000: Connection closed
"MCP error -32001: Request timed out"
McpError: MCP error -32001: Request timed out
"Unexpected token … is not valid JSON" from a custom MCP server
SyntaxError: Unexpected token 'S', "Server sta"... is not valid JSON
MCP server crashes because the client uses an old Node version
SyntaxError: Unexpected token '?' • ReferenceError: fetch is not defined • ERR_REQUIRE_ESM
Claude Code: MCP server added but not available ("No MCP servers configured")
No MCP servers configured • server missing from /mcp in another folder
Claude Code: MCP server connects but shows no tools (or every tool call fails)
Server shows as connected in /mcp but lists no tools • every tool call from that server fails
VS Code ignores my MCP config ("servers" vs "mcpServers")
Server does not appear in Copilot chat or in the MCP Servers list • config copied from Cursor/Claude (or from an old .
GitHub MCP server: "Bad credentials" / 401 errors
401 Bad credentials • "GITHUB_PERSONAL_ACCESS_TOKEN not set"
Windsurf / Devin Desktop: MCP server not loading (mcp_config.json location)
Server missing from Customize → MCPs, or a server you removed keeps coming back, after editing mcp_config.json
Claude Code: MCP server "has a url but no type"
MCP server "" has a "url" but no "type"; add "type": "http" (or "
Claude Code: project MCP server stuck on "Pending approval"
⏸ Pending approval (run `claude` to approve) • server from .mcp.json never loads
Remote MCP server says "Needs authentication" or 401 after it used to work
Needs authentication • Needs login • 401 Unauthorized • invalid_grant / invalid client after an update
Remote MCP server stopped working: old /sse endpoint retired
SSE error: Non-200 status code (404) • 405 Method Not Allowed • server that used an /sse URL no longer connects
Claude or ChatGPT can't connect to my localhost MCP server
Custom connector or ChatGPT plugin fails to connect to http://localhost:… or a server on your private network, even thou
Gemini CLI: remote MCP server won't connect (httpUrl vs url)
Server shows DISCONNECTED in /mcp list • a Streamable HTTP /mcp URL fails while the same URL works in other apps
Claude Desktop on Windows: ENOENT with ${APPDATA} in the path
ENOENT … ${APPDATA} … (in Claude's mcp*.log on Windows)
Claude Code: MCP tool output is too large (MAX_MCP_OUTPUT_TOKENS)
Warning that an MCP tool's output exceeds 10,000 tokens • results cut off at 25,000 tokens • long results saved to a
Codex: "MCP client for `server` timed out after 10 seconds"
MCP client for `` timed out after N seconds. Add or adjust `startup_timeout_sec` in your config.toml