windows_compatibilityTier 1 · 70% confidence

mcp-windows-compatibilit-mcp-server-connection-fails-with-error-mcp-error-3-bc9f18a9

agent: mcp

When does this happen?

IF MCP server connection fails with error 'MCP error -32000: Connection closed' on native Windows when using npx directly.

How others solved it

THEN When adding an MCP server to Claude Code CLI on native Windows (not WSL), wrap the npx command with 'cmd /c' to ensure proper execution. For example: 'claude mcp add my-server -- cmd /c npx -y @some/package'.

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