Does Playwright MCP work with Claude Code?
Yes. Playwright MCP passed every step of our test in Claude Code on Oct 21, 2026: it installed, connected, its tools were visible, and an agent used it to finish a real task.
Result
Steps
- install OK
- connect OK
- tools visible OK
- agent task: click reveal OKnavigate + interact + read back. The code is computed by page JavaScript only after the click.
From our own harness run, not the maker’s claims. How we test.
Versions tested
Claude Code 2.1.296 · @playwright/mcp 0.0.83 · connected in 3.2s · tested Oct 21, 2026
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-1790635538000Captured with: npm ls --all --json in the npx env.
What happened in this run
Install config we used
claude mcp add -s local playwright -- npx -y @playwright/mcp@latest --headless --isolatedConnection check
playwright: npx -y @playwright/mcp@latest --headless --isolated - ✔ ConnectedTools check
verified via task step: agent saw and called the server's tools
Agent task: click reveal
- Tool calls, in order:
mcp__playwright__browser_navigate,mcp__playwright__browser_snapshot,mcp__playwright__browser_click,mcp__playwright__browser_snapshot
Raw details from our harness log for this run. Secrets redacted.
Set it up in Claude Code
Copy-paste config for every app is on the Playwright MCP page. Not connecting? Claude Code MCP troubleshooting.
Other apps we tested it in: Cursor (passed) · Claude Desktop (passed) · ChatGPT (Codex) (passed).