PM

Playwright MCP

Microsoft's browser automation server: the agent drives a real browser through the page's accessibility tree.

🧭 Browser automationGitHub stars39,698Updated 2026-11-15License: Apache-2.0Auth: noneGitHub ↗
Best for browser automation · tested 2026-10-21

Opened our test page, clicked 'Reveal code' and read back the code in both Claude Code and Cursor, with 4 browser calls in each. Chrome DevTools tied on every measure (passed both, 4 calls each); Playwright gets the nod for its smaller tool list (25 vs 30). ByteDance's agent-infra browser also passed both (11 calls); Browser Use failed both (Claude Code read the code only from a screenshot, and its browser didn't start under Cursor). On Oct 14 Playwright, Chrome DevTools and agent-infra also passed in Claude Desktop and ChatGPT (Codex); Browser Use failed in both (its Chrome didn't start). Confirmed Oct 21, 2026: a second run passed again in all 4 clients (Claude Code, Cursor and ChatGPT (Codex) on Oct 21 AM, Claude Desktop on Oct 21 PM; @playwright/mcp 0.0.83).

Test results

Last passed 2026-10-21
Claude CodePassed2026-10-21 · install, connect, tools, agent taskTested with Claude Code 2.1.296 · @playwright/mcp 0.0.83 · connected in 3.2s
CursorPassed2026-10-21 · install, connect, tools, agent taskTested with Cursor CLI 2026.10.19-6bbf2c4 · @playwright/mcp 0.0.83 · connected in 1.6s
Claude DesktopPassed2026-10-21 · install, connect, tools, agent taskTested with Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0) · @playwright/mcp 0.0.83 · connected in 1.5s
ChatGPT (Codex)Passed2026-10-21 · install, connect, tools, agent taskTested with Codex CLI 0.162.0-alpha.17.2 · @playwright/mcp 0.0.83 · connect time not recorded

Server package tested: @playwright/mcp 0.0.83 (npm, Node v20.19.2; resolved 2026-10-21)

Direct and key dependencies as resolved: playwright 1.64.0-alpha-1790635538000 · playwright-core 1.64.0-alpha-1790635538000

All 2 resolved dependencies
playwright==1.64.0-alpha-1790635538000
playwright-core==1.64.0-alpha-1790635538000

Captured with: npm ls --all --json in the npx env.

Full result per app: Does it work with Claude Code? · Does it work with Cursor? · Does it work with Claude Desktop? · Does it work with ChatGPT (Codex)?

Protocol: starts, 25 tools listed · 2026-10-13 · connected in 1.1s

Real test

Passed

One run from our records. When two runs share a date, we show a failure if there is one.

Client
Claude Desktop · Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0)
Date
Oct 21, 2026
The task we gave
Using only the playwright MCP browser tools, open http://127.0.0.1:4399/click.html, click the button labeled 'Reveal code', and reply with the code that appears on the page.
What it promised
details not recorded for this run
What happened

4 tool calls recorded. The names were not stored on this run.

Tool result

{"content": [{"type": "text", "text": "### Ran Playwright code\n```js\nawait page.goto('http://127.0.0.1:4399/click.html');\n```\n### Page\n- Page URL: http://127.0.0.1:4399/click.html\n- Page Title: Toolpassed click test\n- Console: 1 errors, 0 warnings\n### Snapshot\n- [Snapshot](.playwright-mcp/page-2026-10-22T02-30-45-493Z.yml)\n### Events\n- New console entries: .playwright-mcp/console-2026-10-22T02-30-45-392Z.log#L1"}]}

Agent reply

The code on the page is TP-4242.
Verdict
Passed

Install

claude mcp add playwright -- npx -y @playwright/mcp@latest --headless --isolated

Run in your terminal. This exact command is what our harness runs in Claude Code; see the results above.

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "-y",
        "@playwright/mcp@latest",
        "--headless",
        "--isolated"
      ]
    }
  }
}

Save as .cursor/mcp.json. This exact config is what our harness runs in Cursor; see the results above.

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "-y",
        "@playwright/mcp@latest",
        "--headless",
        "--isolated"
      ]
    }
  }
}

Add to claude_desktop_config.json and restart Claude Desktop. Tested on the Linux beta; see the results above.

[mcp_servers.playwright]
command = "npx"
args = ["-y", "@playwright/mcp@latest", "--headless", "--isolated"]

Add to ~/.codex/config.toml (shared by the ChatGPT (Codex) CLI and the ChatGPT desktop app; Codex runs inside the ChatGPT desktop app). Tested with the ChatGPT (Codex) CLI bundled in the ChatGPT desktop app; see the results above.

Not connecting? Troubleshooting: Claude Code · Cursor · Claude Desktop · ChatGPT (Codex)

Test history

DateCheckResultVersions tested
2026-10-21Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · @playwright/mcp 0.0.83
2026-10-21CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.19-6bbf2c4 · @playwright/mcp 0.0.83
2026-10-21Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0) · @playwright/mcp 0.0.83
2026-10-21ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · @playwright/mcp 0.0.83
2026-10-14Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta) · package version not recorded
2026-10-14ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · package version not recorded
2026-10-13Protocol (direct stdio)Protocol: starts, 25 tools listedserver reported v1.64.0-alpha-1790635538000
2026-10-13Protocol (direct stdio)Protocol: starts, 25 tools listed1.64.0-alpha-1790635538000
2026-10-13Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · package version not recorded
2026-10-13CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.12-d47ca18 · package version not recorded

Tested on ToolPassed badge

ToolPassed: passed Claude Code, Cursor, Claude Desktop, ChatGPT (Codex)

Maker of Playwright MCP? It passed in Claude Code, Cursor, Claude Desktop, ChatGPT (Codex) on 2026-10-21. Add this free badge to your README; it links back to this listing. Free, no strings: the badge never changes a result.

[![Tested on ToolPassed](https://toolpassed.com/badge/mcp/playwright.svg)](https://toolpassed.com/mcp/playwright/)

Tools seen by our harness (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
Featured