Turbo-Browser-MCP Collapses an 11-Turn Form Fill Into One Call: 811 Tokens Against 72,614 Cumulative
Turbo-Browser-MCP, a Playwright-based Model Context Protocol server, reached the Hacker News front page on 15 November. The MIT-licensed Node project was created on 14 November, sits at v0.4.0, and had 15 GitHub stars at time of writing. Its pitch is that browser agents waste most of their tokens on round trips, not on the page itself.
The core claim
Standard browser MCP servers charge one model turn per snapshot, field fill, dropdown choice or upload, and every turn replays the growing conversation. The project’s smart_fill_form tool fills a whole form, including React-controlled inputs, Shadow DOM, iframes and file uploads, in a single call and returns a snapshot in the same response.
The author’s benchmark script (npm run benchmark) runs headless Chromium and counts tokens with OpenAI’s o200k_base tokenizer:
| Scenario | Baseline | Turbo-Browser-MCP | Saving |
|---|---|---|---|
| 10-field form plus verify | 11 turns, 574 ms, 72,614 cumulative tokens | 1 turn, 82 ms, 811 tokens | 98.9% cumulative |
| Post-click DOM delta | 3,582-token full ARIA rescan | 56 tokens | 98.4% |
| 140-button SaaS console snapshot | 3,568-token ARIA tree | 1,135 tokens | 68.2% |
| 48 KiB PDF upload | 44,728 tokens as inline Base64 | 85 tokens as a disk path | 99.8% |
| 6-step UI flow | 6 turns, 3,162 cumulative tokens | 1 turn, 406 tokens | 87.2% |
| Open 6 tabs | 6 sequential turns, 998 ms | 1 turn, 420 ms | 2.38x faster |
The 72,614 figure is a modelled number, not a measured bill. The README defines cumulative cost as the sum over N turns of (N - i + 1) times the tokens in turn i, which assumes full history replay with no prompt caching. Providers that cache prefixes charge far less for replayed history, so the real-world gap on the 11-turn case will be smaller than 98.9%. The direct, non-cumulative saving on that scenario is 93.4% (12,197 tokens down to 811).
Tool surface
The server exposes 10 tools: tabs_batch, inspect_compact, smart_fill_form, act_fast, batch_actions, extract_clean_text, evaluate_js, page_diagnostics, capture_page and network_session. The README puts the static schema cost at 3,010 tokens per turn, against 3,917 for @playwright/mcp (25 tools) and 6,737 for chrome-devtools-mcp (33 tools). That is 23.2% and 55.3% fewer tokens respectively, paid on every turn.
Other design choices:
inspect_compactwithonlyChanged: trueemits only elements added or changed since the previous snapshot, which is where the 56-token post-click figure comes from.- File uploads pass a disk path to Playwright’s
setInputFilesinstead of Base64 in context. - A submit guard is on by default (
allowSubmit=false). Buttons labelled Submit, Publish, Send, Post, Apply, Confirm or payment triggers are blocked unless the caller opts in, and the guard also hooks implicit Enter submits andHTMLFormElement.requestSubmit. - File output paths are confined to the working directory or
TURBO_BROWSER_SAVE_ROOT, with symlink and..traversal checks. - It can attach to an existing Chrome over CDP on port 9222, so an agent can reuse a signed-in session.
What the numbers do not show
All figures come from the author’s own harness on locally generated pages: a 140-button console, a 10-field form, 8 images plus a font. There is no run against live sites, no task-success rate, and no comparison of how often a batched form fill gets a field wrong compared with step-by-step filling. Collapsing 11 turns into one also removes the model’s chance to correct a mistake mid-sequence, which is the usual trade-off with batched tools.
The README is explicit about one limit: closed Shadow roots attached before its init script ran, and strict cross-origin sandboxed frames, fall back to coordinate actions and keyboard input. It also concedes that chrome-devtools-mcp remains the better choice for Lighthouse audits, performance traces and V8 heap snapshots.
Context
The release follows a run of tooling aimed at cutting the per-turn cost of browser agents, including Agweb, a WebKit browser built to be driven by coding agents. The README cites 407 passing tests across 86 suites.