MCP Setup Guide

How to Set Up Puppeteer MCP with ClawdBot

Give ClawdBot browser superpowers—click buttons, fill forms, take screenshots, and scrape data from any website.

Overview

The Puppeteer MCP enables:

Prerequisites

Method 1: NPX (Local Node.js)

Simplest if you have Chrome installed locally.

Puppeteer NPX Config json
{
  "Puppeteer": {
    "command": "npx",
    "args": ["-y", "@anthropics/mcp-server-puppeteer"]
  }
}

Dependency Check

Run this to verify Chrome is findable:

npx puppeteer browsers install chrome

Method 2: Docker (Recommended)

Avoids all local dependency issues. Chrome runs inside the container.

Puppeteer Docker Config json
{
  "Puppeteer": {
    "command": "docker",
    "args": [
      "run", "-i", "--rm",
      "--cap-add=SYS_ADMIN",
      "ghcr.io/anthropics/mcp-server-puppeteer"
    ]
  }
}

Note: --cap-add=SYS_ADMIN is required for Chrome sandbox.

Verify Setup

  1. Run clawdbot status — Puppeteer MCP should show as "running"
  2. Test: "Go to https://example.com and take a screenshot"
  3. Test: "Navigate to https://news.ycombinator.com and list the top 5 headlines"

Common Errors

ErrorCauseFix
Failed to launch browser Chrome not installed or not found Run npx puppeteer browsers install chrome or use Docker
No usable sandbox Linux sandbox issue Add --no-sandbox flag or use Docker with SYS_ADMIN
Navigation timeout Page too slow or blocked Increase timeout or check network/firewall
Element not found Selector invalid or page not loaded Wait for element, verify selector in DevTools

Windows / WSL2 Notes

Security Considerations

Example Prompts

When to Use Puppeteer vs Fetch

Use CasePuppeteerFetch
Static HTML page ❌ Overkill ✅ Fast & simple
JavaScript-rendered content ✅ Required ❌ Won't work
Form submission ✅ Full control ❌ Limited
Screenshots ✅ Yes ❌ No
Resource usage ⚠️ High (runs browser) ✅ Low

Related MCPs