windows_npx_wrapperTier 1 · 70% confidence

mcp-windows-npx-wrapper-mcp-connection-fails-with-mcperror-mcp-error-32000-d8fb446f

agent: mcp

When does this happen?

IF MCP connection fails with McpError: MCP error -32000: Connection closed when running npx-based MCP servers on native Windows via Claude Code CLI.

How others solved it

THEN On native Windows (not WSL), wrap npx commands with 'cmd /c' prefix when adding MCP servers using Claude Code CLI. Replace 'claude mcp add my-server -- npx -y @some/package' with 'claude mcp add my-server -- cmd /c npx -y @some/package' to ensure proper execution. This workaround is documented by Anthropic for Windows users.

claude mcp add my-server -- cmd /c npx -y @some/package

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics