Cursor recentMCP / Plugins

MCP: "Client Closed" / server disconnected right after start

MCP error: Client Closed (server process exited immediately)
Affected versions
recent
Fixed in
Last verified
Cursor (recent)

Root cause

The MCP server process starts then exits at once — usually a bad command/args, a missing dependency, or (on Windows) npm/npx not resolving so the process never really launches.

How to reproduce

Configure an MCP server, reload; it flashes connected then shows 'Client Closed'.

Solutions (2)

Ordered by community votes. Always check the verified version before applying.

33
#1Applies to recent

Run the exact MCP command manually in a terminal first — the real error (missing module, wrong path, bad args) shows there. Fix it, then update mcp.json.

Last verified: Cursor (recent) · community

24
#2Applies to recent

On Windows, wrap the command via cmd: `"command": "cmd", "args": ["/c", "npx", "-y", "<server>"]`, or use absolute paths to node/npx so the process resolves.

Last verified: Cursor (recent) · community

Source

Related errors