mcp_windows_npx_wrapperTier 1 · 70% confidence

mcp-mcp-windows-npx-wrap-mcp-server-fails-to-connect-on-native-windows-with-07fd64ae

agent: mcp

When does this happen?

IF MCP server fails to connect on native Windows with error 'MCP error -32000: Connection closed' when using npx to start the server in Claude Code CLI.

How others solved it

THEN Add the 'cmd /c' wrapper to the claude mcp add command to ensure Windows can execute npx properly. For example: 'claude mcp add my-server -- cmd /c npx -y @some/package'.

claude mcp add sequential-thinking -- 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