playwright-stealth

v0.2.3
com.pulsemcp/playwright-stealth Checked 4 days ago Published 5 months ago

Browser automation using Playwright with optional stealth mode to bypass anti-bot protection.

Values you need

VariableWhat it is
STEALTH_MODEoptional Enable stealth mode with anti-detection measures. Default: false
STEALTH_USER_AGENToptional Custom User-Agent string for stealth mode.
STEALTH_MASK_LINUXoptional Mask Linux in User-Agent as Windows to avoid fingerprint mismatch. Default: true
STEALTH_LOCALEoptional Custom locale for Accept-Language header in stealth mode. Default: en-US,en
HEADLESSoptional Run browser in headless mode. Default: true
TIMEOUToptional Default timeout for Playwright actions in milliseconds. Default: 30000
NAVIGATION_TIMEOUToptional Default timeout for page navigation in milliseconds. Default: 60000
SCREENSHOT_STORAGE_PATHoptional Directory for storing screenshots. Default: /tmp/playwright-screenshots
VIDEO_STORAGE_PATHoptional Directory for storing video recordings. Default: /tmp/playwright-videos
PROXY_URLoptional Proxy server URL for connections.
PROXY_USERNAMEoptional secret Proxy authentication username.
PROXY_PASSWORDoptional secret Proxy authentication password.
PROXY_BYPASSoptional Comma-separated list of hosts to bypass proxy.
BROWSER_PERMISSIONSoptional Comma-separated list of browser permissions to grant.
IGNORE_HTTPS_ERRORSoptional Ignore HTTPS certificate errors. Default: true

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add playwright-stealth -- npx -y playwright-stealth-mcp-server@0.2.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "playwright-stealth": {
      "args": [
        "-y",
        "playwright-stealth-mcp-server@0.2.3"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "playwright-stealth": {
      "args": [
        "-y",
        "playwright-stealth-mcp-server@0.2.3"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "playwright-stealth": {
      "args": [
        "-y",
        "playwright-stealth-mcp-server@0.2.3"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.playwright-stealth]
command = "npx"
args = ["-y", "playwright-stealth-mcp-server@0.2.3"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: browser_execute, browser_screenshot, browser_get_state, browser_close, browser_start_recording, browser_stop_recording.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json