Playwright is dead. Long live Playwright.
Summary
The Playwright CLI tool, when combined with a Claude Code skill, significantly outperforms both the Playwright MCP and Claude in Chrome extension for browser automations. The CLI is roughly 500% more token-efficient than the MCP while retaining all key capabilities like parallel execution and headless mode.
Key Insight
- Playwright CLI vs MCP vs Claude in Chrome - three approaches to browser automation with Claude Code, with dramatically different efficiency profiles
- Token efficiency is the killer metric: the CLI uses ~500% fewer tokens than the Playwright MCP for the same tasks - this compounds fast in agentic workflows with many browser steps
- Claude in Chrome is the worst option: relies on screenshots for everything, making it both slow and token-heavy, plus no headless mode and no parallel execution
- Both CLI and MCP support parallel execution - you can spin up multiple sub-agents each running their own browser automation simultaneously
- Headless mode available in both CLI and MCP but not Claude in Chrome, which matters for CI/CD and background tasks
- The CLI is free and open source from Microsoft - just point Claude Code at the Playwright-CLI GitHub repo and it handles installation
- The author has a deeper YouTube walkthrough for implementation details