microsoft/playwright-mcp
Give the model a real browser, using the accessibility tree instead of screenshots to understand and operate pages.
Real-machine probe ok
tools 25 README 说 21
≈ tokens 5.9k schema 21KB · 单工具 236
warm start 1472ms first run includes download
Real tool names (25)
browser_closebrowser_resizebrowser_console_messagesbrowser_handle_dialogbrowser_emulate_mediabrowser_evaluatebrowser_file_uploadbrowser_dropbrowser_findbrowser_fill_formbrowser_press_keybrowser_typebrowser_navigatebrowser_navigate_backbrowser_network_requestsbrowser_network_requestbrowser_run_code_unsafebrowser_take_screenshotbrowser_snapshotbrowser_clickbrowser_dragbrowser_hoverbrowser_select_optionbrowser_tabsbrowser_wait_for
Probed 2026-12-06 · spawn → initialize → tools/list → bytes / 3.6
What it solves
Screenshot-only approaches are both slow and easily blocked by anti-bot measures, and the model still needs pixel-level reasoning to click the right button.
- Real Chromium operation
- Accessibility tree snapshots
- Forms and navigation
Works with
- claude-desktop
- cursor
- vscode
- cli
Install
npx @playwright/mcp@latest Copy-ready config
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
}
} Security flags
- Needs API key: No
- Runs locally: Yes
- Network access: Yes
- Needs root: No
Maintenance
| Last commit | 2026-12-05(1d) |
|---|---|
| Stars | 18,400 |
| Open issues | 96 |
| License | Apache-2.0 |
| Archived | No |
| Data fetched | 2026-12-05 |
Source excerpt
Verbatim README excerpt, unedited, so you can check the summary above.
Playwright MCP server: give LLMs a real browser through accessibility snapshots instead of screenshots.