Serverdex error reference · read 21 November 2026
Client closed (Cursor): what it means and how to fix it
Client closedCursor's MCP panel shows "Client closed" next to a server when the process it started exited at once. It is Cursor's wording for the same family of failures as `Connection closed`: the command did not produce a living MCP server.
Shown by: Cursor
Causes, most likely first — and the fix for each
1The command fails in Cursor's environment but works in your shell — most often PATH (nvm/uv) or a missing environment variable that your shell profile sets.
Fix: Use absolute paths for `command`, put the variables in the `env` block of the server entry, and restart Cursor (the MCP list only re-reads on restart or on the refresh button).
2Windows: `npx`/`uvx` need `.cmd` or `cmd /c` under spawn.
Fix: `"command": "cmd", "args": ["/c", "npx", "-y", "<package>"]`.
3The config entry is a remote server written as if it were local (a `url` placed under `command`).
Fix: Use the `url` field for hosted servers; see the Cursor guide on Serverdex for the exact shape.
Still failing?
Work through the twelve general causes in order in MCP server not working: the causes, in order, check the exact config file path and shape for your client in the client setup guides, or generate a known-good config with the config generator.
Sources (read 21 November 2026)
Other MCP errors: MCP error -32000: Connection closed · MCP error -32001: Request timed out · MCP error -32601: Method not found · MCP error -32602: Invalid params · MCP error -32603: Internal error · MCP error -32600: Invalid request · HTTP 406 Not Acceptable from an MCP server · spawn npx ENOENT · spawn uvx ENOENT (and uv, docker) · Server transport closed unexpectedly · No tools, prompts, or resources (Cursor) · Unexpected token … is not valid JSON · SSE error: Invalid content type, expected text/event-stream · Could not attach to MCP server (Claude Desktop) · Failed to reconnect to an MCP server (Claude Code) · MCP server needs authentication (401 Unauthorized) · MCP OAuth loop (infinite sign-in tabs) · Tools limited to 40 total (Cursor) · executable file not found in $PATH (Antigravity) · MODULE_NOT_FOUND / No module named mcp.server.fastmcp.