TokenSave logo TokenSave

TokenSave Data · Dataset

How many tokens does browser MCP cost? Playwright vs Chrome DevTools, and a snapshot diet

On everyday browser tasks both servers were light: the largest tool result in 16 runs was 6,012 characters, because Claude ran small scripts or searches instead of reading whole pages. One full snapshot of a long Wikipedia article is another story: about 205,642 Claude tokens from Playwright MCP and 208,926 from Chrome DevTools MCP. Our open-source proxy, tokensave-mcp-diet 0.2, turned that into a table of contents of about 1,141 and 1,118 tokens, cut a Hacker News snapshot by 63% and 43%, and made the Wikipedia fact-finding task cheaper on both servers.

Measured 2026-10-22 · 94 runs · Claude Code 2.1.295, Opus 5.5 · License CC BY 4.0 · Tool: tokensave-mcp-diet · Related: Claude Code vs Codex

DOI 10.5281/zenodo.23555401 · Also on Hugging Face · Kaggle · GitHub · GitHub (tokensave-mcp-diet)

Estimate your own Claude Code or Codex bill → See the monthly cost of Claude Code and Codex for your usage: API per task vs Claude and ChatGPT plans. Free, no sign-up. Claude tokens one browser MCP page snapshot adds, as shipped and with tokensave-mcp-diet

Key findings

Everyday tasks, servers as shipped

Average of 2 runs. Input = all input tokens of the task (uncached + cache read + cache write). Cost at Opus 5.5 API prices as reported by Claude Code. Largest result = the biggest single tool result in either run.

Task (2 runs each)Playwright MCP: inputPlaywright MCP: costPlaywright MCP: largest result (chars)Chrome DevTools MCP: inputChrome DevTools MCP: costChrome DevTools MCP: largest result (chars)
TodoMVC: add 3 items, complete 1178,408$0.191,455199,737$0.221,203
Wikipedia: designer and first year115,888$0.176,012117,240$0.17555
Hacker News: top 5 stories90,006$0.1690193,496$0.17469
Wikipedia: 5 release dates91,350$0.1669693,683$0.16446

Snapshot tasks, with and without tokensave-mcp-diet 0.2

The prompt asked for an accessibility snapshot and forbade JavaScript. “Snapshot tokens” = how much the next request grew after the snapshot came back. Cost = average of 5 runs (3 for the full-snapshot probe), lowest and highest run in brackets. The snapshot token counts varied by at most 4% between runs.

TaskServerSnapshot tokens, as shippedWith the dietTask cost, as shippedWith the dietChange
Hacker News top 5, from a snapshotPlaywright MCP18,4076,770$0.298 ($0.297–$0.299)$0.208 ($0.207–$0.208)-30%
Hacker News top 5, from a snapshotChrome DevTools MCP14,1158,047$0.271 ($0.271–$0.272)$0.226 ($0.224–$0.229)-17%
Wikipedia facts, from a snapshotPlaywright MCPrefused in 3 of 5 runs1,141$0.181 ($0.163–$0.214)$0.173 ($0.170–$0.174)-4%
Wikipedia facts, from a snapshotChrome DevTools MCPrefused, saved to file1,118$0.230 ($0.223–$0.235)$0.178 ($0.177–$0.178)-23%
Wikipedia, one full snapshotPlaywright MCPrefused, saved to file1,141$0.154 ($0.153–$0.154)$0.157 ($0.157–$0.158)+2%
Wikipedia, one full snapshotChrome DevTools MCPrefused, saved to file1,118$0.160 ($0.159–$0.160)$0.165 ($0.164–$0.166)+3%

What tokensave-mcp-diet does

It is a small open-source MCP proxy (github.com/johnisking/tokensave-mcp-diet, MIT) that sits in front of either server. Every tool passes through. When a page snapshot is over 8,000 characters it first removes noise (link targets, cursor marks, separators, empty layout wrappers) and keeps every element ref, so clicking still works. If the result is still over 20,000 characters it sends an outline of headings, form fields, buttons and links instead, and above 60,000 characters only a table of contents. The full snapshot stays in memory, and a new tool, snapshot_detail, returns any part of it by ref (a heading ref returns its whole section) or by text. The CSV also has the runs of version 0.1, which had no table of contents.

What to take from it

Method

Limitations

How to cite

Free to use, quote and republish with attribution under CC BY 4.0. Please link to this page.

TokenSave (2026). Browser MCP token cost: Playwright MCP vs Chrome DevTools MCP, and what a snapshot diet saves [Data set]. Zenodo. https://doi.org/10.5281/zenodo.23555401

Embed the chart

Related

Questions or corrections: contact@jonhisking.com