Blog /

Chrome DevTools MCP vs Playwright MCP: Which to Pick

Chrome DevTools MCP vs Playwright MCP for AI coding agents: when to debug a live Chrome page, when to drive a flow, and how to install each in Claude Code.

Chrome DevTools MCPPlaywright MCPMCP servers

Chrome DevTools MCP and Playwright MCP don't compete for the same slot. Pick Chrome DevTools MCP to inspect and debug a page in Chrome: performance traces, network requests, console messages with source-mapped stack traces. Pick Playwright MCP to drive a user flow through accessibility-tree snapshots in Chromium, Firefox or WebKit. Run both when a flow has to be driven and then profiled.

Ranking one above the other measures the wrong thing. Each server answers a different question, and the right pick depends on whether the job is chasing a failure inside one browser or repeating a journey in more than one. The shared vocabulary of clicks, snapshots and tools hides that split.

Which Tool Handles Which Job

The split follows the question being asked. A developer who wants to know why a checkout step stalls needs a debugger attached to a browser. A developer who wants the same sign-in journey to pass again tomorrow, in more than one engine, needs an automation server.

Chrome DevTools MCP gives the agent a Chrome it controls and returns DevTools evidence from it. The project README states that the server "officially supports Google Chrome and Chrome for Testing only"; other Chromium-based browsers may work, but that is not guaranteed.

Playwright MCP takes the opposite position on portability. Its introduction page lists Chrome, Firefox, WebKit and Edge, and describes 70+ tools covering navigation, forms, network mocking, storage, tracing and video. The server operates on the accessibility tree, not pixels.

Rule for the first five minutes: a question that starts with "why is this slow" or "why did this request fail" goes to Chrome DevTools MCP. A question that starts with "does sign-in still work" goes to Playwright MCP.

Job
Inspect and debug a page in Chrome
Browsers supported
Google Chrome and Chrome for Testing (officially)
How the agent sees the page
DevTools data: console, network requests, performance traces
Install in Claude Code
/plugin marketplace add ChromeDevTools/chrome-devtools-mcp, then /plugin install chrome-devtools-mcp@chrome-devtools-plugins
Best when
A page is slow, a request fails, or a console error needs a source line
Job
Drive a user flow
Browsers supported
Chrome, Firefox, WebKit and Edge
How the agent sees the page
Accessibility tree snapshots
Install in Claude Code
claude mcp add playwright npx @playwright/mcp@latest
Best when
A sign-up or sign-in must repeat, or the same flow must pass in more than one browser engine

Two cells carry more weight than the rest. The browsers column is a hard boundary, not a configuration detail: Chrome DevTools MCP is not built to see a WebKit rendering difference. The page-view column is a softer boundary. Snapshot-driven driving is dependable when controls carry labels and accessible names, and awkward when they don't.

Playwright also ships a CLI and a test runner, which suit scheduled runs better than an open chat session. Our comparison of Playwright CLI versus Playwright MCP lays out where a journey should live when it stops being interactive.

Installing Both Servers in Claude Code, Cursor and Codex

Client commands change between versions, so the entries below are copied from the official setup pages.

Chrome DevTools MCP as a Claude Code plugin

  1. Add the marketplace. Run /plugin marketplace add ChromeDevTools/chrome-devtools-mcp.

  2. Install the plugin. Run /plugin install chrome-devtools-mcp@chrome-devtools-plugins.

Chrome DevTools MCP through a JSON config

  1. Add an mcpServers entry. Set command to npx and args to ["-y", "chrome-devtools-mcp@latest"]. The Chrome DevTools configuration guide shows that shape. Add --headless to the arguments when the run needs no visible window, or --channel=canary (also dev, beta, stable) to pick a Chrome channel. Flags go in the args array, not in the command string.

json
{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": ["-y", "chrome-devtools-mcp@latest"]
    }
  }
}

Playwright MCP in Claude Code

  1. Add the server in one line. Run claude mcp add playwright npx @playwright/mcp@latest. The Playwright MCP getting started guide documents this entry. By default the server launches its own browser in headed mode; with --cdp-endpoint or --extension it connects to a browser it does not own.

Codex

  1. Chrome DevTools MCP in Codex. The README gives codex plugin marketplace add ChromeDevTools/chrome-devtools-mcp, then codex plugin add chrome-devtools-mcp@chrome-devtools-plugins.

  2. Playwright MCP in Codex. Playwright's getting started guide lists Codex among the clients that take the standard config (npx @playwright/mcp@latest) and points to the client's own MCP documentation for where to place it.

Cursor

  1. Use the same command and arguments. In Cursor's MCP settings, add a server entry with npx and -y chrome-devtools-mcp@latest for Chrome DevTools MCP, or npx @playwright/mcp@latest for Playwright MCP. The Chrome DevTools README points to its client configuration guide for editor-specific steps.

Switching engines and reading options from a file

  1. Pick an engine for Playwright. --browser=firefox starts the server on Firefox. Supported values are chrome, firefox, webkit and msedge.

  2. Keep options in a config file. npx @playwright/mcp@latest --config path/to/config.json loads browser options, context options, network rules and timeouts from one file, so a team does not retype flags in every client.

Two checks after you edit

Restart the client after any configuration change, so the session reads the saved file. Then ask the agent which tools it now has for navigating, filling a form and recording a performance trace. Naming the capability gets a more useful answer than asking whether it "can use the browser".

Investigating a Slow Page with Chrome DevTools MCP

Chrome DevTools MCP is a diagnostic layer for a page in Chrome. The README lists what it is for: getting performance insights, analyzing network requests, and checking console messages with source-mapped stack traces. Google launched it as a public preview on September 23, 2025, according to the Chrome DevTools announcement.

A slow page makes the split easy to watch. The server can show where Chrome spent time, which request stalled, and which console error appeared with a path back to source. It does not prove that a user flow still works after the agent closes its session.

A developer using Chrome DevTools MCP to identify web performance bottlenecks and optimize page loading times.

What the trace gives the agent

A performance trace turns "the page feels slow" into phases with durations. Performance insights then point at the phase that dominates, so the agent has a target rather than a hunch.

Source-mapped stack traces matter just as much. A console error on a deployed build usually points into a bundled file; with source mapping, the agent can name the source line. Network request analysis supplies the third piece: which call was slow or failed.

The workflow, step by step

  1. Open the page in the Chrome session the agent controls. The trace has to be recorded against the same page and session state the user hit.

  2. Record a performance trace of the load, or of the interaction that feels slow. A trace of the whole session buries the phase that matters.

  3. Read the performance insights and note the longest phases. Naming the dominant phase stops the agent from rewriting unrelated code nearby.

  4. List slow or failed network requests with their timing. One slow request often explains the phase above it.

  5. Read the console messages and follow the source-mapped stack trace to the file.

  6. Change one thing, record the trace again, and compare the two. A single-variable change is the only way to know which fix moved the number.

The limit on this path

This path is Chrome only. A stall that appears in Firefox or WebKit falls outside the server's scope, whatever the Chrome trace says. The honest conclusion from a clean Chrome trace is that Chrome is fine, not that the app is.

Keep the pair. Store the before trace and the after trace beside the commit. A claim of a speedup then rests on two recorded traces instead of on the agent's reading of the diff.

Driving Sign-Up and Sign-In Flows with Playwright MCP

Sign-in sits in front of most other journeys, so it is a sensible first flow to automate. Playwright MCP drives it from the accessibility tree: the agent targets an email field by its label and a submit control by its accessible name, then takes a fresh snapshot to confirm the signed-in state.

A friendly robot uses Playwright MCP to automate web testing by reading accessibility snapshots and verifying forms.

Choosing the engine first

--browser=firefox starts the server on Firefox, and a config file holds the same setting for a whole team. The flag belongs to the server start, so changing engines means restarting the server, not rewriting the flow.

The flow, step by step

  1. Start the server with the engine the flow must cover. The run is only meaningful for the engine it ran on.

  2. Go to the sign-in page and take a snapshot. The snapshot gives the agent the field names it needs, without reading pixels.

  3. Fill the email and password fields by their labels. Label-based targeting survives styling changes that break coordinate clicks.

  4. Submit and wait for the signed-in state, not a fixed delay.

  5. Read a fresh snapshot to confirm the account element is present. A stale snapshot still describes the page before the submit, which is how false passes happen.

  6. Sign out, run the sign-up path, then repeat with the next browser flag.

What breaks the flow

  • An unlabelled control. A button with no accessible name gives the agent nothing stable to target. Fix the markup, not the prompt.

  • Borrowed accounts. A dedicated test account keeps a flow from inheriting state another run left behind.

  • Email verification. A sign-up step that waits on an inbox interrupts the run unless the inbox can be read programmatically.

When one journey must pass in several engines, change --browser and rerun the same steps. A second hand-written flow duplicates maintenance and buys no extra coverage.

If the flow later moves out of the chat and into a hosted runner, this roundup of browser automation tools compares cloud browser services that can host it.

Picking the Right Tool and When to Run Both

Situation
Page is slow in Chrome
Run first
Chrome DevTools MCP
Run next
Playwright MCP, only to repeat the flow that reaches the slow step
Situation
Sign-up or sign-in fails
Run first
Playwright MCP
Run next
Chrome DevTools MCP for console messages and network requests at the failing step
Situation
Bug appears only in Firefox or WebKit
Run first
Playwright MCP
Run next
None: Chrome DevTools MCP does not officially support those engines
Situation
Flow passes but a request returns an error
Run first
Playwright MCP, to reach the request
Run next
Chrome DevTools MCP for network request detail
Situation
Console error with an unclear source
Run first
Chrome DevTools MCP
Run next
Playwright MCP, to rerun the flow that triggers the error

When the engine is not Chrome, the choice is Playwright MCP. When the symptom is a failing request, the driving tool reaches the request and the DevTools server explains it.

Running both on one session

  1. Drive the flow with Playwright MCP up to the step that fails or stalls.

  2. Switch to Chrome DevTools MCP for console messages, failed requests and a performance trace at that step.

  3. Fix the cause, rerun the flow in Playwright MCP, and record the trace again. A passing flow and a new trace answer the question a code review cannot.

The cost of running both

Two servers put two sets of tool definitions into the agent's context. Keep the server the current task needs, and add the second one when the question changes rather than as a permanent default.

Limits to Check Before You Commit

An engine the release has to serve

If the app has Safari or Firefox users, Chrome DevTools MCP alone leaves that gap open; the flow has to run through Playwright MCP in WebKit or Firefox. The gap is easy to forget because Chrome is where most development happens.

Browser content the agent can read

The Chrome DevTools MCP README warns that the server "exposes content of the browser instance to the MCP clients allowing them to inspect, debug, and modify any data", and advises against sharing sensitive or personal information. Test accounts should hold nothing a team would mind an outside model reading.

Controls without labels

Snapshot-driven driving depends on names. An unlabelled icon button forces the agent to guess, and a guess that works today can fail after a refactor. The first fix is in the markup.

Evidence tied to one run

Both servers work inside the agent's own session. The evidence they produce is what that run saw, on that machine, at that moment. A green result is not a statement about the next deploy.

Your agent says “done”. We check your app.

After each deploy and every day, we walk the journeys you choose on your live app and tell your agent what passed and what failed, with screenshots.

claude mcp add --scope user --transport http checkmyapp https://checkmyapp.dev/mcp

Free account: $3 of checks, no card · Cursor, Codex and the full install guide

Confirm the Live App After Your Agent Stops

Both servers give your own agent a browser inside its session. Neither checks the deployed app after that session ends, and the agent that wrote the change is also the one saying it works.

That second opinion is what CheckMyApp is for: your agent says "done"; CheckMyApp uses your live app as a real user and tells your agent what broke. It connects to Claude Code, Cursor and Codex through MCP. If Chrome DevTools MCP and Playwright MCP are your agent's workbench, CheckMyApp is the separate check of what your users actually get. For choosing which flows should keep working after each deploy, see software deployment testing.

This article was prepared with the help of AI. Found a mistake? Tell us.

More articles