Comparison
Playwright MCP vs Chrome DevTools MCP for coding agents
Browsers, snapshots and screenshots, performance traces, network tools and setup.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
Microsoft's MCP server that drives a browser through Playwright, reading pages from the accessibility tree.
Google's MCP server and CLI that gives an agent Chrome DevTools, for debugging, performance traces and automation.
| Playwright MCP | Chrome DevTools MCP | |
|---|---|---|
| Browsers | Chromium, Chrome, Edge, Firefox and WebKit | Chrome and Chrome for Testing only |
| How the agent sees the page | Accessibility snapshot; screenshots on request | Accessibility snapshot, screenshots and screencasts |
| Performance | Playwright traces of actions (opt-in devtools tools) | Performance traces with insights, Lighthouse audits |
| Network and console | List requests and console messages; mocking is opt-in | Requests, console with source-mapped stacks, network mocks |
| Memory debugging | Not covered | Heap snapshots and comparisons |
| Data sent to the vendor | None documented | Usage statistics on by default; CrUX lookups for traces |
| Licence | Apache 2.0 | Apache 2.0 |
Playwright MCP and Chrome DevTools MCP both let a coding agent open a real browser, click through pages and read what is on them. Pick Playwright MCP to test user journeys, especially across Firefox and WebKit as well as Chromium, and when the agent’s notes should turn into Playwright tests. Pick Chrome DevTools MCP to debug why a page is slow, leaks memory or throws errors, because it gives the agent performance traces, Lighthouse and heap snapshots. Front-end developers often install both.
Both servers were checked against their READMEs and tool references on 25 November 2026, at @playwright/mcp 0.0.86 and chrome-devtools-mcp 1.14.0. Both run with Node.js through npx.
Pick Playwright MCP when
You are testing what a user does. Playwright MCP reads the page as a structured accessibility snapshot, so the agent acts on roles and names rather than pixels and needs no vision model. Its core tools navigate, click, type, fill forms, handle dialogs, manage tabs and list network requests and console messages. Extra groups are opt-in with --caps: network for request mocking, storage for cookies and local storage, testing for assertions, vision for coordinate clicks, pdf and devtools.
It drives Chromium, Chrome, Edge, Firefox or WebKit (--browser), headed by default or with --headless. By default it keeps a persistent profile per workspace, so logins survive between sessions; use --isolated to start clean each time, and --extension to connect to the browser you already have open. For QA work its output is easy to carry into Playwright tests, as the exploratory testing tutorial shows.
The README now suggests Playwright CLI with skills for coding agents, because CLI calls use fewer tokens than MCP tool schemas and snapshots. It keeps MCP for long, stateful sessions such as exploratory testing.
Pick Chrome DevTools MCP when
You are debugging the page itself. Chrome DevTools MCP gives the agent the tools you use in DevTools: start and stop a performance trace and get insights from it, run a Lighthouse audit, list network requests, read console messages with source-mapped stack traces, set logpoints, take and compare heap snapshots, and emulate slow networks, CPU throttling, viewports and dark mode. It automates pages through Puppeteer, which waits for actions to finish.
It also installs as a CLI (chrome-devtools) and ships skills for accessibility audits, LCP fixes, memory leaks and cookie debugging. In Claude Code you can add the server and skills together as a plugin. Use --slim if you only need basic browser tasks and want fewer tools in context.
It supports Chrome and Chrome for Testing only. Google collects usage statistics by default (turn them off with --no-usage-statistics, or set CI), and performance tools may send trace URLs to the Chrome UX Report API for field data unless you pass --no-performance-crux.
Use both when
You are building and shipping a front end. Playwright MCP checks that a journey works in every browser you support; Chrome DevTools MCP explains why the checkout page takes four seconds to become interactive. They can sit in the same agent config under different names.
Setup per agent
| Agent | Playwright MCP | Chrome DevTools MCP |
|---|---|---|
| Claude Code | claude mcp add playwright npx @playwright/mcp@latest |
claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest |
| Codex | codex mcp add playwright npx "@playwright/mcp@latest" |
codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest |
| Cursor, VS Code and others | "command": "npx", "args": ["@playwright/mcp@latest"] |
"command": "npx", "args": ["-y", "chrome-devtools-mcp@latest"] |
The JSON lines go under mcpServers in the client’s MCP config. The MCP config cheat sheet lists the file for each client.
Whichever you pick
- Treat every page as untrusted input. A page can contain text written to steer the agent, so keep the browser away from accounts and data the task does not need.
- Use a separate browser profile for agent work, not your everyday one with saved logins.
- Pin a version once your setup works. Both READMEs use
@latest, which changes the tools under you. - Ask for evidence: a screenshot, a trace file or the failing request, not just the agent’s summary.
For more browser and testing servers, see the best MCP servers by job, and the browser automation skill page for the tutorials around them.
Check your understanding
Playwright MCP vs Chrome DevTools MCP quiz
When to pick Playwright MCP or Chrome DevTools MCP, how each reads and drives a page, browsers and profiles, privacy defaults, using both, and safe habits for browser agents.
8 questions · pass mark 70%
Review
Checked against
Related
- Exploratory testing with Playwright MCP
Give a coding agent a browser through Playwright MCP, run a time-boxed exploratory charter, record findings, and turn the confirmed ones into Playwright specs.
- Run an accessibility audit with an agent
Run an AI accessibility audit against WCAG 2.2 AA with Playwright, axe-core and an agent, add the manual checks scanners miss, and rank fixes by user impact.
- Browser automation
Driving a browser from code or an agent to test, scrape or complete tasks on websites.
- MCP servers worth installing, checked
A short list of MCP servers worth installing for browsers, GitHub, docs and databases, with the access each one needs and the security settings to turn on.
- Browser agent
An agent that navigates websites and acts on them, such as filling forms, clicking through flows or extracting information from pages.