
How to add Playwright MCP (ExecuteAutomation) to Claude Desktop
Popular community Playwright + API testing MCP server with codegen, screenshots, and device emulation. Paste the config into ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude Desktop.
Last updated June 15, 2026 ยท 4.5kโ ยท stdio ยท no auth
Claude Desktop config for Playwright MCP (ExecuteAutomation)
npx -y @executeautomation/playwright-mcp-server{
"mcpServers": {
"playwright-mcp-executeautomation": {
"command": "npx",
"args": [
"-y",
"@executeautomation/playwright-mcp-server"
]
}
}
}Setup steps
- 1Open Claude Desktop โ Settings โ Developer โ Edit Config (this opens ~/Library/Application Support/Claude/claude_desktop_config.json).
- 2Paste the Playwright MCP (ExecuteAutomation) config below under the top-level "mcpServers" key.
- 3Fill in any placeholder secrets (API keys, paths) in the snippet.
- 4Save the file, then fully quit and reopen Claude Desktop.
- 5Open a chat and confirm Playwright MCP (ExecuteAutomation)'s tools appear under the ๐ tools menu.
Before you start
- Node.js 18+ (run via npx or a global install)
- Playwright browsers โ installed automatically on first use, or manually with `npx playwright install`
- No API key or authentication required (local stdio server)
What Playwright MCP (ExecuteAutomation) can do in Claude Desktop
playwright_navigateOpen a URL in a Playwright-controlled browser, with optional headless/viewport options
playwright_screenshotCapture a full-page or element screenshot of the current page
playwright_clickClick an element by selector
playwright_iframe_clickClick an element located inside an iframe
playwright_fillType text into an input field
playwright_selectSelect an option in a dropdown by value
playwright_hoverHover the mouse over an element
playwright_evaluateExecute arbitrary JavaScript in the page context
Security
Can execute arbitrary JavaScript in pages and generate/run test code, so treat target URLs and any generated scripts as untrusted. The browser shares whatever profile it launches with, so avoid pointing it at sites holding sensitive logged-in sessions.
Playwright MCP (ExecuteAutomation) + Claude Desktop FAQ
Where is the Claude Desktop config file?
Claude Desktop reads MCP servers from ~/Library/Application Support/Claude/claude_desktop_config.json. Paste the Playwright MCP (ExecuteAutomation) config there under the "mcpServers" key and restart the client.
Is Playwright MCP (ExecuteAutomation) safe to use with Claude Desktop?
Can execute arbitrary JavaScript in pages and generate/run test code, so treat target URLs and any generated scripts as untrusted. The browser shares whatever profile it launches with, so avoid pointing it at sites holding sensitive logged-in sessions.
Is this the official Microsoft Playwright MCP server?
No. This is a community server maintained by ExecuteAutomation. Microsoft publishes a separate official server, @playwright/mcp, which has a different toolset (accessibility-tree driven). They are not the same project.
Does it need an API key?
No. It runs locally over stdio and requires no authentication. It controls browsers on your own machine.
Why does it fail to launch a browser on first run?
Playwright's browser binaries may not be installed. Run `npx playwright install` to download Chromium/Firefox/WebKit, then retry.