Playwright MCP Server
Microsoft's official Playwright MCP server drives a real browser: it navigates pages, clicks and fills forms, reads the accessibility tree, takes snapshots and extracts content for the AI to act on. It is an official, vendor-maintained server. Works in Claude, Cursor, VS Code and Claude Code.
What Playwright can do
Tools Playwright exposes
10 tools · from docsThe exact tools this MCP server gives your AI.
| browser_navigate | Go to a URL | write |
| browser_snapshot | Capture the accessibility tree of the page | read |
| browser_click | Click an element | write |
| browser_type | Type text into a field | write |
| browser_fill_form | Fill multiple form fields | write |
| browser_take_screenshot | Screenshot the page or an element | read |
| browser_evaluate | Run JavaScript on the page | write |
| browser_network_requests | List network requests | read |
| browser_console_messages | Read console output | read |
| browser_wait_for | Wait for text or an element | read |
Try asking Claude
Example prompts once Playwright is connected.
Set up Playwright
Pick your client. Every snippet is copy-ready.
Claude Desktop → Settings → Developer → Edit Config (claude_desktop_config.json).
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"-y",
"@playwright/mcp@latest"
]
}
}
}Permissions & safety
Can change data via: browser_navigatebrowser_clickbrowser_typebrowser_fill_formbrowser_evaluate
Runs locally, so your data stays on your machine and only what the AI needs is sent to the model.
To stay safe, connect with least-privilege scopes and use a read-only credential where the service supports one.
Troubleshooting
FAQ
Playwright is a local server, so you add it with a command: run "claude mcp add playwright -- npx -y @playwright/mcp@latest", then restart Claude. See the config snippet above for Cursor and VS Code.
More Browser Automation MCP servers
Chrome DevTools
Browser Automation
Google's Chrome DevTools MCP server controls and inspects Chrome: it runs performance traces, reads the network and console, inspects the DOM and automates the page.
BrowserTools
Browser Automation
BrowserTools MCP captures console logs, network traffic and screenshots from your browser so the AI can debug a frontend.
Puppeteer
Browser Automation
Puppeteer MCP automates a headless Chrome browser to navigate, screenshot and scrape pages.
Playwright compared
Running a digital business since 2019 and a local SEO agency, Ari built and shipped GBPAudit.AI as a Claude connector. Every server here is connected and its tools read before it's listed.
Something wrong with this listing? Report it.