P
Playwright MCP
41
Stack Score
Editorial pick✓ Verified workingMCP server
Playwright MCP
Headless browser automation via Playwright.
Best for
Best for engineers + ops who need reliable headless-browser automation.
At a glance
- Pricing
- open-source
- Setup time
- 20 minutes
- Learning curve
- moderate
- Last verified
- 5/27/2026
What we love
- ✓Microsoft-maintained
- ✓Robust browser automation
- ✓Better-than-Puppeteer DX
Where it falls short
- −Local execution requires deps
- −Headless setup on servers needs care
- −Auth flows on sites can be brittle
Install & connect
Copy-paste ready
Install
shell
npx @playwright/mcp@latest
Config — Claude Desktop
json
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
}
}Config — Claude Code
shell
claude mcp add playwright npx @playwright/mcp@latest
Config — VS Code
json
{
"servers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
}
}Pricing
✓ Pricing verified Jun 21, 20261 tier
Open-source
$0
perpetual
- ✓Apache 2.0
Overview
MCP server for Playwright — navigate, click, type, screenshot, evaluate JS, network interception. Headless or headed Chromium/Firefox/WebKit.
Key features
- ●Navigate + click + type
- ●Screenshots + PDF
- ●JS evaluation
- ●Network intercept
- ●Multi-browser
Exposed tools
The MCP-tool names this server exposes. Your agent can invoke any of these when this server is connected.
- browser_navigate / browser_navigate_backNavigate to a URL or go back to the previous page.
- browser_click / browser_hover / browser_drag / browser_dropMouse interactions targeted at accessibility-tree elements.
- browser_type / browser_fill_form / browser_press_key / browser_select_option / browser_file_uploadKeyboard, form-fill, and file input interactions.
- browser_snapshot / browser_take_screenshotCapture an accessibility snapshot or a pixel screenshot of the current page.
- browser_console_messages / browser_evaluate / browser_run_code_unsafeRead console output and execute JavaScript in the page context.
- browser_network_request / browser_network_requests / browser_network_state_setIssue and inspect network requests and toggle network state.
- browser_route / browser_route_list / browser_unrouteManage request interception routes.
- browser_handle_dialog / browser_wait_for / browser_resizeHandle JavaScript dialogs, wait for conditions, and resize the viewport.
- browser_tabs / browser_closeManage tabs and close the browser.
- browser_cookie_clear / browser_cookie_delete / browser_cookie_get / browser_cookie_list / browser_cookie_setCookie CRUD operations.
- browser_localstorage_* / browser_sessionstorage_*Local and session storage CRUD operations (clear, delete, get, list, set).
- browser_set_storage_state / browser_storage_stateRead and apply a full storage state snapshot.
- browser_get_configRead the active Playwright MCP configuration.
- DevTools tools (browser_annotate / browser_highlight / browser_hide_highlight / browser_start_tracing / browser_stop_tracing / browser_start_video / browser_stop_video / browser_video_chapter / browser_resume)DevTools-only opt-in tools (enable with --caps=devtools) for tracing, video capture, and visual annotation.
- Coordinate-based mouse tools (browser_mouse_click_xy / browser_mouse_down / browser_mouse_up / browser_mouse_move_xy / browser_mouse_drag_xy / browser_mouse_wheel)Pixel-coordinate mouse input as an alternative to accessibility-tree clicks.
- browser_pdf_saveSave the current page as a PDF file.
- browser_generate_locator / browser_verify_element_visible / browser_verify_list_visible / browser_verify_text_visible / browser_verify_valueLocator generation and assertion-style verification helpers.
Best use cases
Browser-based scraping
Let Claude scrape and parse modern client-rendered sites.
E2E test automation
Run E2E test flows through Claude orchestration.
Integrations
Similar tools
See all automation tools →One AI Stack pick every week.
The tool we’d pay for this week, why we’d pay for it, and what we’d skip. No promo spam.