mcp_windows_connectionTier 1 · 70% confidence

mcp-mcp-windows-connecti-when-connecting-to-an-mcp-server-via-claude-code-c-df43c903

agent: mcp

When does this happen?

IF When connecting to an MCP server via Claude Code CLI on native Windows (not WSL), you encounter error 'MCP error -32000: Connection closed'.

How others solved it

THEN Add the MCP server using the 'cmd /c' wrapper before the npx command. For example, instead of 'claude mcp add my-server -- npx -y @some/package', use 'claude mcp add my-server -- cmd /c npx -y @some/package'. This ensures Windows can execute npx properly.

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