================== /// MCP /// /// MCP /// ================== [server:online] [protocol:ready]
mcp-playwright
by executeautomation
Playwright Model Context Protocol Server – expose Playwright-based browser automation, screenshotting, code-gen and JS execution as MCP tools.
4.5k
371
Open SourceInstallation
Prerequisites:
1. Node.js ≥ 18 (LTS) and npm installed.
2. Supported browsers installed by Playwright (Chromium, Firefox, WebKit).
Quick install (global):
# 1. Install the server and Playwright browsers
npm i -g mcp-playwright playwright
# 2. Verify browsers download (optional)
playwright install
# 3. Start the MCP server on default port 6112
mcp-playwright serve --port 6112
Project-local install:
npm init -y # if you do not already have a package.json
npm i mcp-playwright playwright --save-dev
# run locally
npx mcp-playwright serve --port 6112
Docker (if provided):
docker run -p 6112:6112 executeautomation/mcp-playwright:latest
Configuration:
• PORT – server port (default 6112)
• HEADLESS – set to "false" to launch browsers with UI (default true)
• LOG_LEVEL – trace | debug | info | warn | error (default info)
• PLAYWRIGHT_BROWSERS_PATH – custom path for browser binaries
Expose these as environment variables or pass as CLI flags, e.g.
HEADLESS=false PORT=7000 mcp-playwright serve
Documentation
License: MIT License
Updated 7/30/2025