[GH-ISSUE #3902] [BUG]: MCP error -32000: Connection closed for playwright #2486

Closed
opened 2026-02-22 18:29:54 -05:00 by yindo · 1 comment
Owner

Originally created by @UnixSafe on GitHub (May 28, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3902

How are you running AnythingLLM?

Docker (local)

What happened?

Playwright MCP server fails to start (error -32000 “Connection closed”) even with explicit command path / PATH env

{
  "mcpServers": {
    "jdbc": {
      "command": "/opt/homebrew/bin/jbang",
      "args": [
        "jdbc@quarkiverse/quarkus-mcp-servers",
        "jdbc:postgresql://db.xxxxx.supabase.co:5432/postgres?user=xxxx&password=xxxxxx"
      ]
    },
    "playwright": {
      "command": "/usr/local/bin/npx",
      "args": ["-y", "@executeautomation/playwright-mcp-server"],
      "env": {
        "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/npx"
      }
    }
  }
}

What works

The JDBC MCP server starts and runs without issues.
• What doesn’t
Starting the Playwright MCP server always fails with the same error:
Failed to start MCP server: playwright [-32000] MCP error -32000: Connection closed

What I’ve tried

Image
1.	Keeping the env.PATH entry (as shown above).
2.	Removing the env block entirely and relying only on the absolute path in command.
3.	Verifying that /usr/local/bin/npx exists and runs npx -y @executeautomation/playwright-mcp-server correctly from the terminal.

In every case the JDBC server still works, but the Playwright server dies immediately with error -32000.

Image

Are there known steps to reproduce?

No response

Originally created by @UnixSafe on GitHub (May 28, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3902 ### How are you running AnythingLLM? Docker (local) ### What happened? Playwright MCP server fails to start (error -32000 “Connection closed”) even with explicit command path / PATH env ``` { "mcpServers": { "jdbc": { "command": "/opt/homebrew/bin/jbang", "args": [ "jdbc@quarkiverse/quarkus-mcp-servers", "jdbc:postgresql://db.xxxxx.supabase.co:5432/postgres?user=xxxx&password=xxxxxx" ] }, "playwright": { "command": "/usr/local/bin/npx", "args": ["-y", "@executeautomation/playwright-mcp-server"], "env": { "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/npx" } } } } ``` What works The JDBC MCP server starts and runs without issues. • What doesn’t Starting the Playwright MCP server always fails with the same error: `Failed to start MCP server: playwright [-32000] MCP error -32000: Connection closed` What I’ve tried <img width="1336" alt="Image" src="https://github.com/user-attachments/assets/19bd8eb3-f0d9-475f-a682-294cab89692e" /> 1. Keeping the env.PATH entry (as shown above). 2. Removing the env block entirely and relying only on the absolute path in command. 3. Verifying that /usr/local/bin/npx exists and runs npx -y @executeautomation/playwright-mcp-server correctly from the terminal. In every case the JDBC server still works, but the Playwright server dies immediately with error -32000. <img width="867" alt="Image" src="https://github.com/user-attachments/assets/5abe9d57-206a-48ec-b53c-aec1b97f8f5f" /> ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:29:54 -05:00
yindo closed this issue 2026-02-22 18:29:54 -05:00
Author
Owner

@timothycarambat commented on GitHub (May 28, 2025):

Docker (local)

The issue is going to be the chromium requirements that are not in the image to support playwright, which is why. We use pupeeteer and have the image patched to support that, but not playwright

@timothycarambat commented on GitHub (May 28, 2025): > Docker (local) The issue is going to be the chromium requirements that are not in the image to support playwright, which is why. We use pupeeteer and have the image patched to support that, but not playwright
yindo changed title from [BUG]: MCP error -32000: Connection closed for playwright to [GH-ISSUE #3902] [BUG]: MCP error -32000: Connection closed for playwright 2026-06-05 14:46:51 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2486