# Playwright CLI Uses 500% Fewer Tokens Than the MCP

> The Playwright CLI is roughly 500% more token-efficient than the Playwright MCP for browser automation in Claude Code, with the same capabilities.

Published: 2026-03-13
URL: https://daniliants.com/insights/playwright-is-dead-long-live-playwright/
Tags: playwright, browser-automation, claude-code, cli-tools, mcp, token-efficiency, ai-coding

---

## 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