Playwright MCP
Browser automation for AI agents via Microsoft Playwright
BestMCPTools
Playwright MCP
bestmcptools.org
Maintenance status
ActiveHow to Install Playwright MCP
$npx @playwright/mcp@latestRequires Claude Desktop, Cursor, Windsurf, or another MCP-compatible client.
Setup by client
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"playwright-mcp": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"playwright-mcp": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}VS Code (.vscode/mcp.json)
{
"servers": {
"playwright-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}Claude Code (terminal)
claude mcp add playwright-mcp -- npx @playwright/mcp@latestAdd any API keys or environment variables the server's README lists.
About Playwright MCP
Microsoft's official Playwright MCP server gives AI agents full browser automation: navigating pages, clicking, typing, taking screenshots, and extracting structured data. Built on Playwright's battle-tested cross-browser engine with Chromium, Firefox, and WebKit support.
Playwright MCP is a Browser Automation MCP server designed for QA, growth, ops, and research teams. It enables driving a real browser from an AI assistant by exposing Playwright/Puppeteer sessions as MCP tools. Key capabilities include navigate, click, type, and submit, headless screenshots and pdfs, form-fill and file-upload flows, and structured tool calls that work cleanly inside an LLM context. It integrates with Playwright, Puppeteer, headless Chromium, and Selenium grids, and is best suited for QA, growth, ops, and research teams who need end-to-end testing.
Key Features
- browser-automation
- playwright
- microsoft
- scraping
- testing
Pricing
Open Source: from Free
Pros & Cons
Pros
- Reaches sites that don't expose APIs
- Self-healing test flows
- Strong selectors paired with LLM context
Cons
- Slower than direct API calls
- Brittle against aggressive bot protection
- Per-session state can leak without isolation
Best For
- End-to-end testing
- Scraping rendered pages
- Form-heavy workflows
- Dashboard data extraction
Our Take on Playwright MCP
The definitive browser automation MCP: more capable and better maintained than Puppeteer MCP.