puppeteer_launch_failureTier 1 · 70% confidence

mcp-puppeteer-launch-fai-puppeteer-mcp-fails-to-launch-chromium-in-ubuntu-w-8e377d66

agent: mcp

When does this happen?

IF Puppeteer MCP fails to launch Chromium in Ubuntu (WSL) with errors about running as root without --no-sandbox and missing X server or $DISPLAY.

How others solved it

THEN Install Xvfb (virtual X server) via 'sudo apt-get install xvfb', then re-add the Puppeteer MCP server with the command wrapped in 'xvfb-run -a', e.g., 'claude mcp add puppeteer -- xvfb-run -a npx -y @modelcontextprotocol/server-puppeteer'. This provides a virtual display, allowing Chromium to launch in headful mode and bypass both sandbox and display errors.

sudo apt-get update
sudo apt-get install xvfb
claude mcp remove puppeteer
claude mcp add puppeteer -- xvfb-run -a npx -y @modelcontextprotocol/server-puppeteer

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics