Skip to main content

Playwright

Official ⚙️ Developer Tools

Browser automation for web testing, scraping, and interaction. Navigate pages, click elements, fill forms, take screenshots, and more.

Tools (15)

browser_navigatebrowser_clickbrowser_typebrowser_snapshotbrowser_take_screenshotbrowser_evaluatebrowser_fill_formbrowser_select_optionbrowser_hoverbrowser_dragbrowser_press_keybrowser_tabsbrowser_wait_forbrowser_console_messagesbrowser_network_requests

Client configuration

Cursor (.cursor/mcp.json)

{ "mcpServers": { "playwright": { "command": "npx", "args": [ "-y", "@playwright/mcp@0.0.80", "--headless" ], "env": { "HEADLESS": "your-headless-here" } } } }

VS Code (.vscode/mcp.json)

{ "servers": { "playwright": { "command": "npx", "args": [ "-y", "@playwright/mcp@0.0.80", "--headless" ], "env": { "HEADLESS": "your-headless-here" }, "type": "stdio" } } }

Replace the placeholders before connecting. Authorize in your client when prompted.

The Cursor JSON also works in Claude Desktop's local MCP configuration. Install the required runtime and local software first.

Documentation →