Main
- Prefer tool-driven prompts (“use Playwright MCP tool to click X”) over free-form browsing for reproducible runs.
- Install Playwright browsers explicitly (
npx playwright install chromium) so the MCP server can launch reliably in CI/containers. - Use device emulation only when needed—README highlights 143 device profiles; desktop mode is usually less flaky.
Source-backed notes
- README shows install options including
npm install -g ...and Claude Code integration viaclaude mcp add ... npx .... - README includes Playwright setup steps such as
npx playwright installand per-browser installs (chromium/firefox/webkit). - README claims support for 143 device emulation profiles with viewport/UA/touch/DPR emulation.
FAQ
- Do I need a global install?: Not required—
npxworks, but global install can speed up repeated runs. - Why does browser launch fail?: Most failures come from missing browser binaries; run
npx playwright install <browser>first. - Is it only for Claude?: No—README mentions VS Code install links and other MCP-capable clients.