Hacker News new | ask | show | jobs
by egeozcan 26 days ago
I'd personally suggest Playwright-CLI: https://github.com/microsoft/playwright-cli

It works much faster for me than the MCP servers I tried.

3 comments

Also, spel (https://github.com/Blockether/spel) for persistent browser sessions (through a daemon) and Chromium, Firefox, and WebKit engines.
playwright is AWESOME for e2e testing (works great with electron!).

although, i use the playwright mcp. :)

The CLI is, IME, faster and less buggy than the MCP.
the CLI is also Microsoft's preferred way to use it with agents:

> playwright-cli is best for coding agents (Claude Code, GitHub Copilot, etc.) that favor token-efficient, skill-based workflows. CLI commands avoid loading large tool schemas and verbose accessibility trees into the model context.

they do still recommend the MCP for long-running autonomous workflows (e.g. a UAT agent).

i will be digging into the CLI option, kudos.
All this felt heavy to me. Full browser, debug protocol, DOM dump on every read. MCP vs CLI is the smaller question, what sits underneath matters more. So I built a small Rust binary that drives the system webview directly and returns state tokens and deltas instead of the DOM. Loading the HN front page costs the agent about 50 tokens. It speaks both MCP and CLI, pick whichever your agent prefers.

https://github.com/frane/vibesurfer