Fixes › Claude Desktop, Claude Code, Cursor

"MCP error -32001: Request timed out"

Claude DesktopClaude CodeCursor

The error

McpError: MCP error -32001: Request timed out

Why it happens

The client gave up waiting. On first run, npx/uvx may still be downloading the package. Slow tools (browser automation, big crawls) can also go over the default timeout.

How to fix it

  1. Pre-install the package
    Run the command once in a terminal so the download is cached.
    npx -y @playwright/mcp@latest --help
  2. Raise the timeout (Claude Code)
    Claude Code reads MCP_TIMEOUT (startup) and MAX_MCP_OUTPUT_TOKENS.
    MCP_TIMEOUT=30000 claude
  3. Pin a version
    Using @latest makes npx check the registry every launch. Pinning a version avoids that.
  4. Update Claude Code if it happened after sleep
    Claude Code 2.1.307 (released October 21, 2026) fixed MCP servers being reported as timed out, and staying failed in headless runs, when a macOS or Linux computer went to sleep while they were connecting. The same release stopped HTTP MCP tool calls from being sent twice when a connection closed mid-call. Run claude --version to check, then update.
    claude update
  5. Claude Desktop: tool calls stop after 60 seconds? Update
    Claude Desktop v7.37095.0 (November 24, 2026) fixed tool calls to local MCP servers set up in the app failing with "Request timed out" after 60 seconds in the Code tab and Cowork (and, in third-party deployments, in Chat). In Cowork and Chat a call can now run for up to 3 minutes by default. Check for updates from the Claude menu.
  6. Claude Code: give one slow server more time per tool call
    Add a timeout in milliseconds to that server's entry in .mcp.json (or set MCP_TOOL_TIMEOUT for every server). It is a hard limit per tool call; values below 1000 are ignored. MCP_TIMEOUT only covers startup.
    {
      "mcpServers": {
        "playwright": {
          "command": "npx",
          "args": ["-y", "@playwright/mcp@latest"],
          "timeout": 600000
        }
      }
    }
  7. Claude Code: tool call hangs for a long time, then fails? Update to 2.1.331 or later
    Claude Code 2.1.331 (November 23, 2026) fixed MCP tool calls hanging for up to 30 minutes on some malformed replies from a local or WebSocket server. Claude Code 2.1.332 (November 24, 2026) fixed SSE servers hanging or refusing every tool call after their event stream was cut, until you reconnected them by hand.
    claude update

Related servers

Sources