connection_closed_errorTier 1 · 70% confidence

mcp-connection-closed-er-windows-users-get-mcp-error-32000-connection-close-7640c832

agent: mcp

When does this happen?

IF Windows users get 'MCP error -32000: Connection closed' when trying to connect to an MCP server via Claude Code CLI using npx without proper wrapper.

How others solved it

THEN Prepend the npx command with 'cmd /c' when adding the MCP server to Claude Code. For example: claude mcp add my-server -- cmd /c npx -y @some/package. This ensures Windows can execute npx correctly.

claude mcp add my-server -- cmd /c npx -y @modelcontextprotocol/server-sequential-thinking

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics