The Playwright MCP alternative that remembers
The short answer: if your agent does the same website tasks again and again, Dejo is the Playwright MCP alternative that remembers them. It learns a task once, then replays it in one tool call with no page reading. In our test of 19 tasks on 11 real websites, it used 38% fewer tokens than Playwright MCP on the first run and 78% fewer on every run after, and got every answer right. For one-off tasks and cross-browser testing, Playwright MCP is still a good choice.
How the options compare
| Dejo | Playwright MCP | Playwright CLI | Chrome DevTools MCP | Claude in Chrome | |
|---|---|---|---|---|---|
| what it is | MCP server | MCP server | command-line tool + skills | MCP server | browser extension |
| remembers a task between sessions | yes | no | no | no | no |
| tokens per run, 19 real-site tasks (our test) | 251K first, 89K after | 409K | 559K | not measured yet | not measured yet |
| right answers, same test | 19 of 19 | 17 of 19 | 18 of 19 | not measured yet | not measured yet |
| when a site changes | repairs the one step that moved | the model works it out again | the model works it out again | the model works it out again | the model works it out again |
| stays signed in | yes, its own profile | yes, persistent profile | with --persistent | yes, persistent profile | uses your own Chrome |
| needs | Python 3.11+ | Node | Node | Node | a paid Claude plan |
| license | MIT | Apache 2.0 | Apache 2.0 | Apache 2.0 | Anthropic product |
"Not measured yet" means that tool has not been through the real-site benchmark yet; the rest of its row comes from its official docs (checked 18 October 2026). In an earlier test of Dejo 0.1.2, three tasks on well-known sites ten times each, Chrome DevTools MCP used 7.1M tokens, Playwright MCP 8.7M and Dejo 4.6M.
Why people look for a Playwright MCP alternative
Playwright MCP is Microsoft's official browser server for AI agents, and it works well. The complaint is cost. Every action returns a snapshot of the page, the model reads it, decides, and acts again. A short task can take several calls, and each call carries a page's worth of text.
The bigger cost is repetition. A new chat starts from nothing, so if you ask your agent to check the same dashboard every morning, it reads the same pages and makes the same decisions every morning.
Here is one task from our real-site benchmark, each run in a brand-new Claude session. The task: open a college's course catalog, show only one subject's courses, open one course and say how many credits it is worth.
| tokens | first run | every run after |
|---|---|---|
| Dejo | 324K | 83K, in one tool call |
| Playwright MCP | 1,355K | starts from nothing again |
Playwright MCP does the same work every time. Dejo does it once, saves the task with a check on every step, and from then on one dejo_run call walks it in plain code, with no page reading.
Over all 19 tasks, Dejo's first run averaged 251K tokens and every run after 89K, against 409K for every Playwright MCP run. Full method and raw data: the benchmark.
What Dejo does differently
- It remembers the route. The first run explores; every run after replays. No snapshots, no reasoning, zero model calls inside Dejo.
- It finds the right element more often. On our 50-site reliability test, with the same fixed steps and no model, Dejo 0.4.0 passed 47 and plain Playwright 45. See the benchmark.
- It checks every step. Each saved step carries a check that proves it landed: the page changed, the file downloaded, the field holds what was typed. That is how it tells a changed site from a working one.
- It repairs only what moved. Each step keeps up to nine ways to find its control. If all of them fail, Dejo stops at that one step and your agent picks the new control. The rest of the route is untouched.
- It keeps you signed in, safely. You sign in yourself in a real window, once. Passwords never go into memory. Several accounts can stay signed in side by side. See Signing in.
When Playwright MCP is the better choice
Be honest with yourself about what you need:
- One-off tasks. If you will never do the task again, there is nothing to remember. Dejo's first run costs more than Playwright MCP's, because it also saves the route.
- One page, one line. "Open this page and read the title" takes two or three calls with any tool. In our one-page tests on six sites, Dejo used more tokens than Playwright MCP on five of them.
- Cross-browser testing. Playwright MCP can drive Firefox and WebKit. Dejo drives Chrome or Chromium only.
- Tests you want as Playwright code. Playwright's tools are built for that. Dejo's routes are its own format.
The other alternatives
- Playwright CLI, also from Microsoft. Its README says CLI commands are "more token-efficient" than MCP because they avoid loading tool schemas and page trees into the model; snapshots are saved to files instead. It is the better pick for coding agents that write tests. It does not remember tasks between sessions.
- Chrome DevTools MCP, from Google's Chrome team, for controlling and inspecting a live Chrome: network requests, console, performance. Best for debugging a page. See Chrome DevTools MCP vs Playwright MCP.
- Claude in Chrome, Anthropic's extension. Claude Code works inside your own Chrome, with all your sign-ins, in a visible window. Needs a Pro, Max, Team or Enterprise plan.
- agent-browser, from Vercel Labs: a fast command-line browser for agents, with filters that shrink snapshots. See Dejo vs agent-browser.
- Browser MCP, an extension that lets your agent use your own open Chrome. See Dejo vs Browser MCP.
- browser-use, an open-source browser agent with its own model loop. See Dejo vs browser-use.
- Stagehand, Browserbase's SDK, where a model finds elements from plain English. See Dejo vs Stagehand.
Switch in a minute
pip install dejo-mcp
playwright install chromium
claude mcp add --scope user dejo -- dejo-mcp
Then ask your agent for something on a website, in your own words. Other agents: Codex, Cursor.
More comparisons: Playwright MCP vs Playwright CLI vs memory, Playwright MCP vs Claude in Chrome and the best browser MCP for Claude Code.
FAQ
Is Playwright MCP free?
Yes. Playwright MCP is free and open source under the Apache 2.0 license. What costs money is the model: every page snapshot it returns is read by your AI, and those tokens are what you pay for or what fills your plan.
Why does Playwright MCP use so many tokens?
Each step returns a snapshot of the page so the model can decide what to do next, and a new chat starts from nothing, so the same pages are read again every time. In our test it averaged about 290,000 tokens per session on a short three-step task.
Which is better, Playwright MCP or Playwright CLI?
Microsoft recommends the CLI for coding agents because it does not push page data into the model, which saves tokens. It recommends MCP for loops that need continuous browser state. Neither one remembers a task between sessions.
Can I use Dejo and Playwright MCP together?
Yes. They are separate MCP servers. Many people keep Playwright MCP for testing and use Dejo for the website tasks they repeat.