# Playwright MCP token usage: measured on 19 real tasks

> 19 tasks on lesser-known websites, a fresh Claude session each: Dejo used 38% fewer tokens than Playwright MCP on the first run and 78% fewer on every run after, with every answer right. The method, the raw data and the honest limits.

Canonical: https://dejo.run/benchmark
Last updated: 2026-11-04

> For AI agents: the index of this site is https://dejo.run/llms.txt, and every page is also served as markdown (add .md to its address, or send Accept: text/markdown).

**The short answer:** we gave Claude the same 19 tasks on lesser-known websites with each browser tool, every time in a brand-new session. On the first run, Dejo used **38% fewer tokens** than Playwright MCP and got all 19 answers right. On every run after, Dejo replayed the task from memory with **78% fewer tokens**, in a single tool call on 17 of the 19 tasks.

## All the numbers

| one run, averaged over 19 tasks | right answers | tokens | tool calls | cost | time |
|---|---|---|---|---|---|
| **Dejo, first run** | **19 of 19** | **251K** | **4.7** | **$0.17** | **31 s** |
| **Dejo, every run after** | **19 of 19** | **89K** | **1.2** | **$0.02** | **16 s** |
| Playwright MCP, every run | 17 of 19 | 409K | 6.5 | $0.23 | 40 s |
| Playwright CLI, every run | 18 of 19 | 559K | 8.4 | $0.28 | 38 s |

Claude Sonnet 5, medium effort. `@playwright/mcp@0.0.80`, Dejo 0.2.0 code. Recorded 21 to 23 October 2026. Tool calls count browser actions only. Claude Code also makes a few calls to load a tool's definitions (ToolSearch); Dejo's tools load up front so it makes none, and Playwright MCP made about 1.3 per task (7.8 with them).

## Why does Dejo use fewer tokens than Playwright MCP?

Two reasons. On the first run, your agent sends many steps in one call, so it takes fewer model turns, and every turn re-reads the whole conversation. On every run after, Dejo replays the learned task without the model reading the pages at all, so a run is about one call.

**The first run.** Playwright MCP takes one model turn per action, and every turn re-reads the whole conversation. Dejo lets the agent send many steps in one call (`click link "Courses"`, `select label "Prefix" "MEC"`, `read css ".credits" as credits`), shows each page as one short line per control, and saves the task when a step reads the answer. The difference is largest on hard sites:

| first run, one task | Dejo | Playwright MCP |
|---|---|---|
| college course catalog, filtered | 324K | 1,355K |
| college course catalog, page 3 | 480K | 1,005K |
| museum collection, filtered | 398K | 983K |
| RFC Editor, filtered | 307K | 689K |

**Every run after.** Playwright MCP starts from nothing in every session: it opens the page, reads it, decides, clicks, reads again, and pays the same on run 10 as on run 1. Dejo replays the saved task in plain code, with no page reading and no model calls inside Dejo. On 17 of 19 tasks that was a single `dejo_run` call, about 81K tokens. Most of those tokens are not Dejo at all: they are the agent's own instructions and tool list, which every session loads.

## Where Dejo is not cheaper

Honest limits, all visible in the data:

- **A typical first run is close.** The median first run was 216K tokens for Dejo and 257K for Playwright MCP. On 6 of the 19 tasks, Playwright MCP's run cost fewer tokens than Dejo's first run, for example 164K against 252K on a Dart package's changelog (and in one of the six, Playwright MCP's answer was wrong).
- **Sites that block automated browsers.** 6 more tasks were on sites behind Cloudflare checks or plain 403 errors. Dejo and Playwright MCP were turned away on all six; Playwright CLI got through two of them, at 1.2M and 1.7M tokens. They are in the results file, not in the table.
- **Two of 19 repeats took more than one call.** Both answered right, in 4 turns each: a search page built by JavaScript, and a filter whose header has no name to find it by.


## Reliability: 50 real websites, no model

Tokens are one half. The other half is whether the tool finds the right element at all. We run 50 fixed step programs on real public websites, covering iframes, shadow DOM, custom dropdowns, date pickers, hover menus, infinite scroll, a second tab, search suggestions, tables and long pages. No model is involved, so the score is the browser tool alone.

| 50 tasks, the same steps for each tool | 3 Nov 2026 | 2 Nov 2026 |
|---|---|---|
| **Dejo** | **47 of 50** (0.4.0) | 47 of 50 (0.3.1) |
| Plain Playwright | 45 of 50 | 43 of 50 |
| Dejo 0.3.0, before the fixes this test found | | 25 of 50 |

On 3 November two of Dejo's three misses were one site that blocked the test machine; Playwright's score moves a little from day to day because live sites change. 0.4.0 also added 11 tasks for its new steps (dialogs, right click, network reads, emulation and more), on practice sites made for testing: Dejo passed 11 of 11, plain Playwright 10 of 11. Every step program and its answer are in [`benchmarks/reliability_tasks.py`](https://github.com/dejohq/dejo-mcp/blob/main/benchmarks/reliability_tasks.py), and both runs are in the [`benchmarks/reliability-2026-11-0*.json`](https://github.com/dejohq/dejo-mcp/tree/main/benchmarks) files.

## How we tested

- **Agent:** Claude Code in headless mode (`claude -p`), model Claude Sonnet 5 at medium effort.
- **One tool per session.** Each session could use only the browser tool under test. Built-in web tools such as WebFetch were turned off.
- **A brand-new session every run,** so nothing carried over in the chat. Dejo's memory on disk is the only thing that persists, and that is the point being measured: Dejo learns in one session and replays in the next.
- **The tasks:** 25 jobs on 14 lesser-known sites, the kind a model cannot answer from memory: a college course catalog, the Debian package directory, the RFC Editor, a museum's collection, a county history society, a Dart package registry, two demo shops, a small transit agency. Search boxes, filters, tables, pagination, deep menus and tabs. 19 of them, on 12 sites, were open to automated browsers.
- **Every right answer was written down before any tool ran,** read off the live page in a real browser. A reply counts only if it contains that exact value. One answer key was wrong in format (the page writes "Oct 20, 2026"), and fixing it changed the result for every tool alike.
- **Versions pinned:** `@playwright/mcp@0.0.80`, and Dejo on the code that became 0.2.0. Playwright MCP and CLI were measured on 21 to 22 October; Dejo was measured again after fixing what this benchmark found, on 23 October.
- **Tokens** are everything the session processed: input, output, cache reads and cache writes, as reported by Claude Code. **Tool calls** leave out Claude Code's own tool search, which is not a browser call.
- **The ten-run chart** uses the measured first run and the measured second run; from run 3 on, each tool is shown costing what it did on run 2.

What we did not test: other models, other agents, Chrome DevTools MCP and Claude in Chrome (next), and sites that need a sign-in.

An earlier test of Dejo 0.1.2, three tasks on well-known sites run ten times each, is written up in [the browser agent memory post](https://dejo.run/blog/browser-agent-memory).

## Run it yourself

The script, the tasks and the raw results are in the open-source repository:

```bash
git clone https://github.com/dejohq/dejo-mcp
cd dejo-mcp
python benchmarks/benchmark_learning.py --bench real --tools dejo,playwright,playwright-cli --runs 1
python benchmarks/reliability.py --reference
```

The token benchmark needs the `claude` command signed in, and Node for the Playwright tools. The reliability test needs neither: it runs the step programs itself, and `--reference` also runs them through plain Playwright. The tasks and their answers are in [`benchmarks/real_tasks.py`](https://github.com/dejohq/dejo-mcp/blob/main/benchmarks/real_tasks.py), and every number on this page comes from the [`benchmarks/benchmark-real-2026-10-2*.json`](https://github.com/dejohq/dejo-mcp/tree/main/benchmarks) files.

## FAQ

## FAQ

### How many tokens does Playwright MCP use?

In our test, about 409,000 tokens per Claude session on average, over 19 tasks on real websites, counting everything the session read and wrote, including the agent's own instructions. On the hardest sites one session used over a million.

### Why does Playwright MCP use so many tokens?

Each step returns a text snapshot of the page so the model can decide what to do next, every step is a model turn that re-reads the whole conversation, and every new session starts from nothing, so the model reads the same pages again each time.

### How can I reduce Playwright MCP token usage?

For tasks you repeat, stop paying to rediscover them: a tool that remembers the task, like Dejo, replays it without reading the pages. For one-off tasks, keep sessions short and ask for exactly the value you need.

### Is Dejo cheaper on every task?

No. On a typical first run it costs a little less than Playwright MCP, and on 6 of our 19 tasks Playwright MCP's run cost fewer tokens than Dejo's first run. The big savings are on hard sites and on every run after the first.

### Is Dejo more reliable than Playwright?

On our 50-site reliability test, with the same fixed steps for each tool and no model, Dejo 0.4.0 passed 47 and plain Playwright 45 (3 November 2026). On 11 more tasks for the steps added in 0.4.0, Dejo passed 11 and Playwright 10. Two of Dejo's three misses were a site that blocked the test machine. It is one test, run by us; the steps and raw results are public.

## Related

- [Playwright MCP alternative that remembers websites](https://dejo.run/compare/playwright-mcp)
- [Chrome DevTools MCP vs Playwright MCP (measured)](https://dejo.run/compare/chrome-devtools-mcp)
- [Browser Use alternative: Dejo vs browser-use](https://dejo.run/compare/browser-use)
- [Stagehand alternative: Dejo vs Stagehand](https://dejo.run/compare/stagehand)
- [Browser MCP alternative: Dejo vs Browser MCP](https://dejo.run/compare/browser-mcp)
- [Dejo vs agent-browser (Vercel), compared](https://dejo.run/compare/agent-browser)
- [Dejo MCP server setup: install in a minute](https://dejo.run/docs)
