mcp_connection_windowsTier 1 · 70% confidence

mcp-mcp-connection-windo-error-not-connected-when-using-mcp-tools-on-window-eb6eac2b

agent: mcp

When does this happen?

IF Error 'Not connected' when using MCP tools on Windows with npx command.

How others solved it

THEN Configure MCP server settings to use 'cmd' as command and '/c' as first arg in args, then install the package globally via 'npm install -g' to avoid Windows temporary PATH restrictions.

{
  "mcpServers": {
    "github": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
      }
    }
  }
}

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics