playwright-stealth
v0.2.3Browser automation using Playwright with optional stealth mode to bypass anti-bot protection.
Values you need
| Variable | What it is | |
|---|---|---|
STEALTH_MODE | optional | Enable stealth mode with anti-detection measures. Default: false |
STEALTH_USER_AGENT | optional | Custom User-Agent string for stealth mode. |
STEALTH_MASK_LINUX | optional | Mask Linux in User-Agent as Windows to avoid fingerprint mismatch. Default: true |
STEALTH_LOCALE | optional | Custom locale for Accept-Language header in stealth mode. Default: en-US,en |
HEADLESS | optional | Run browser in headless mode. Default: true |
TIMEOUT | optional | Default timeout for Playwright actions in milliseconds. Default: 30000 |
NAVIGATION_TIMEOUT | optional | Default timeout for page navigation in milliseconds. Default: 60000 |
SCREENSHOT_STORAGE_PATH | optional | Directory for storing screenshots. Default: /tmp/playwright-screenshots |
VIDEO_STORAGE_PATH | optional | Directory for storing video recordings. Default: /tmp/playwright-videos |
PROXY_URL | optional | Proxy server URL for connections. |
PROXY_USERNAME | optional secret | Proxy authentication username. |
PROXY_PASSWORD | optional secret | Proxy authentication password. |
PROXY_BYPASS | optional | Comma-separated list of hosts to bypass proxy. |
BROWSER_PERMISSIONS | optional | Comma-separated list of browser permissions to grant. |
IGNORE_HTTPS_ERRORS | optional | 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.3Add 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: browser_execute, browser_screenshot, browser_get_state, browser_close, browser_start_recording, browser_stop_recording.
- 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