Skip to content
Chrome DevTools MCP tutorial: one terminal command shows why a checkout failed while the page hides the reason

Insight // How to

Chrome DevTools MCP Tutorial: Setup, the CLI, and a Measured Comparison with Playwright MCP

Nov 24, 2026 27 min read

Chrome DevTools MCP is an open-source MCP server and command-line tool from the Chrome DevTools team that lets a coding agent control and inspect a live Chrome browser. The agent can click through a page, read the console and the network, record a performance trace, and run a Lighthouse audit, and it gets short text answers back.

Most guides show it inside an agent, so you watch a model use the tools and take the result on trust. This Chrome DevTools MCP tutorial does it by hand. We drive the same tools from the terminal with the CLI that ships in the package, then talk to the MCP server with a small client of our own, with no agent and no model. Every step ran on 23 November 2026 against version 1.13.0, and we read the repo at commit e4669b3.

We also ran the same debugging job through Playwright MCP and counted what each server costs a model to read. The numbers are further down, and they do not match what the comparisons we found say.

Key points

  • Chrome DevTools MCP 1.13.0 is one npm package with two programs: an MCP server for agents and a CLI called chrome-devtools that you can use with no agent at all.
  • The install took 1.2 seconds in our test and added one package. It uses the Chrome you already have.
  • On a demo store with planted faults, single commands found a script error with its file and line and the hidden reason behind a failed checkout. They also found a 1.6-second image that set the LCP, and the CSS rule that lost.
  • The default MCP server puts 33 tools in front of a model, about 6,721 tokens of definitions. Playwright MCP 0.0.86 has 25 tools in about 3,923.
  • For the same job, its answers were smaller than Playwright MCP’s: 963 tokens in 7 calls against 1,349 in 8.
  • We hit six snags. A four-line config file fixes three of them, including usage statistics, which are on by default.

What is Chrome DevTools MCP?

Chrome DevTools MCP lives at ChromeDevTools/chrome-devtools-mcp on GitHub, and its documentation is on Chrome for Developers. The README calls it “Chrome DevTools for agents” and says it “lets your coding agent (such as Antigravity, Claude, Cursor, or Copilot) control and inspect a live Chrome browser”. It is developed by the Chrome DevTools team at Google under the Apache-2.0 license.

MCP, the Model Context Protocol, is the standard way to give an agent tools. A server lists its tools with a name, a description, and an input schema, and the agent calls them. This server’s tools are the DevTools panels you already know, turned into calls: the Elements tree, the Console, the Network panel, the Performance panel, and Lighthouse.

Some facts, as of 23 November 2026:

  • Stars: 58,975, with 4,922 forks. It was sixth on GitHub Trending for the week, with 2,268 new stars.
  • Age: the repo was created on 11 September 2025.
  • Version: 1.13.0, released on 11 November 2026. This release added logpoints and network mocks, and we use both below.
  • What is in the package: the MCP server (chrome-devtools-mcp), the CLI (chrome-devtools), and seven skills that teach an agent how to use them.
  • Browsers: the README says it “officially supports Google Chrome and Chrome for Testing only”.

My guess at why it is trending: more teams let an agent write frontend code, and an agent that cannot see the page it just changed is guessing.

Why it matters for teams that ship web apps with coding agents

An agent reads your source files well. It does not see the red line in the console, the request that came back with a 500, or the hero image that took two seconds. A person opens DevTools for that. This project gives the agent the same panels.

The second reason is cost. A model pays for every word a tool sends back, and browser output can be huge. The project’s design principles say it directly: “Return semantic summaries. ‘LCP was 3.2s’ is better than 50k lines of JSON. “We measured whether the answers are in fact small, and they are.

What I like most is the CLI. It turns the same tools into something a person can run, read, and put in a script, so you can check what the agent would see before you trust it. We looked at a different way to give an agent a browser in our agent-browser guide, and at reviewing an agent’s plan before it runs in our Plannotator guide. This tool belongs next to both: it is how the agent, or you, checks the result.

How Chrome DevTools MCP works: an agent or the CLI calls a tool, the server drives Chrome, and a short text answer comes back
Two ways in, one server, one browser: the agent and the terminal use the same tools

How Chrome DevTools MCP works

There are four moving parts.

  • The client. A coding agent that speaks MCP, or the chrome-devtools CLI in your terminal.
  • The server, a Node.js process. An agent starts it and talks to it over standard input and output. The CLI starts it as a background daemon and talks to it over a Unix socket.
  • Chrome. The server launches Chrome on your machine and drives it with Puppeteer and the Chrome DevTools Protocol. It only starts the browser when a tool needs one.
  • The answer. Plain text, written for a model and readable by a person. Heavy things, such as screenshots, traces, and reports, go to files, and the answer carries the path.

The tools are grouped into categories that you can switch on and off with flags. Input, navigation, emulation, performance, network, debugging, and memory are on by default. Network mocks, extensions, WebAuthn, and a few experimental groups are off. In our test, the default server listed 33 tools. The CLI help listed 64 commands, because it also offers the groups that are off by default.

One idea is worth knowing before you start. The server does not point at things with CSS selectors. It gives every element on the page a short ID, a UID, in a text snapshot, and every click or fill names a UID.

How to install Chrome DevTools MCP and run it step by step

This is the path with no agent. You need a terminal and Chrome.

1. Check the prerequisites

The README asks for a Node.js LTS version, npm, and the current stable Chrome. We used Node.js 22.23.5 and Google Chrome 158 on Ubuntu 24.04. You do not need an account, an API key, or an agent.

2. Install the package

The README installs the package globally. We installed it into a project folder and ran it with npx, which keeps it out of the global path.

mkdir proj && cd proj echo '{"name":"cdm-test","private":true,"type":"module"}' > package.json npm install chrome-devtools-mcp@1.13.0 npx chrome-devtools --version

In our run, npm added one package in 1.2 seconds, 18 MB on disk, and the last command printed 1.13.0. Nothing downloads a browser. The package has no dependencies to pull in, which is why the install is that quick.

3. Start the daemon, with two flags

The CLI is a client of a background process. You can let the first command start it, but start it yourself the first time, because two defaults send data to Google: usage statistics and a lookup of traced URLs for field data. Both have a flag.

npx chrome-devtools start --no-usage-statistics --no-performance-crux npx chrome-devtools status chrome-devtools-mcp daemon is running. pid=744630 socket=/run/user/1004/chrome-devtools-mcp/server.sock start-date=2026-11-23T14:41:29.387Z version=1.13.0 args=["--viaCli","--no-performance-crux","--no-usage-statistics"]

start came back in 0.6 seconds and did not hold the terminal. The args line is the one to read: it shows the flags the daemon is really running with. In the CLI, the browser is headless and uses a temporary profile by default.

4. Open a page

npx chrome-devtools new_page http://localhost:8150/ ## Pages 1: about:blank 2: Tidewater Tea: demo store (http://localhost:8150/) [selected]

The page is ours: a one-page tea shop we wrote for this test, served on port 8150, with faults planted on purpose. The number in front of each line is the page ID, and almost every command takes it as its first argument. The first command after a start took 2.3 seconds, because Chrome starts then. Later commands took 0.3 to 0.5 seconds.

5. Read the page as a snapshot

npx chrome-devtools take_snapshot 2 ## Latest page snapshot uid=1_0 RootWebArea "Tidewater Tea: demo store" url="http://localhost:8150/" ... uid=1_11 main ... uid=1_13 heading "Loose leaf tea, picked this season" level="1" ... uid=1_17 heading "Harbour Oolong" level="2" uid=1_18 "Roasted, stone fruit, long finish" uid=1_19 "$14.00" uid=1_20 button "Add to cart" ... uid=1_29 heading "Your cart" level="2" uid=1_30 "Nothing here yet." uid=1_31 textbox "Coupon code" uid=1_32 button "Apply" uid=1_33 "Total" uid=1_34 "$0.00" uid=1_35 button "Place order" ...

That is a trimmed copy, with the dropped lines marked; the full snapshot listed 34 elements. It is the page’s accessibility tree, and this is what an agent reads when it “looks” at a page. No pixels are involved.

6. Click and type by uid

Uids start with the number of the snapshot they came from. After we reloaded the page, the first “Add to cart” button was no longer 1_20. It was 9_19. So take a fresh snapshot after a navigation.

npx chrome-devtools click 2 9_19 npx chrome-devtools click 2 9_23 --includeSnapshot

The first command printed “Successfully clicked on the element” and nothing else. The second added the new tree to the same answer, and the cart in it now listed Harbour Oolong at $14.00, First Flush Sencha at $18.00, and a total of $32.00. That small design choice comes back in the comparison: an action does not send the page back unless you ask.

How to use Chrome DevTools MCP to debug a page: a worked example

The demo store has five planted faults. We used the tools to find each one, the way an agent would be asked to.

A script error, with its file and line

The store has a coupon field. We filled it in, pressed Apply, and asked the console what happened.

npx chrome-devtools fill 2 9_30 TIDE10 npx chrome-devtools click 2 9_31 npx chrome-devtools list_console_messages 2 npx chrome-devtools get_console_message 2 2 msgid=2 [error] Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'percent') (0 args) ID: 2 Message: error> Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'percent') ### Stack trace at applyCoupon (app.js:52:28) Note: line and column numbers use 1-based indexing

The list gives each message an ID, and the second command expands one. We now know the function, the file, the line, and the column.

The value itself, with a logpoint

Knowing the line is half the answer. The other half is what the API sent. Version 1.13.0 added logpoints, which print a value when a line runs, with no change to the code. The stack trace gave us the line, 52.

npx chrome-devtools set_logpoints 2 "app.js:52 'coupon answer', JSON.stringify(data)"

We pressed Apply again and listed the console. The last two lines were:

msgid=13 [log] coupon answer {"code":"TIDE10","percent":10} (2 args) msgid=14 [error] Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'percent') (0 args)

The API puts percent at the top level. The code reads data.discount.percent. That is the whole bug, found from the terminal without opening the file.

A failed request, and the reason the page hides

We pressed “Place order”. The snapshot’s status line read “Something went wrong. Please try again.” That message helps nobody, so we asked the network.

npx chrome-devtools list_network_requests 2 --resourceTypes fetch xhr reqid=17 GET http://localhost:8150/api/coupon?code=TIDE10 [200] reqid=18 POST http://localhost:8150/api/checkout [500]

get_network_request 2 --reqid 18 printed the request headers, the request body, and the response headers. Then it waited five seconds and printed this in place of the response body:

<Response body not available: the response did not finish loading within 5000 ms>

The cause was our page. It checked the status and never read the body, and the response was marked no-store. We changed one line so that the store reads the body before it shows its message, as most real apps do, placed a new order, and asked again:

### Request Body {"items":["oolong"],"total":14} ### Response Body {"error": "inventory service timed out", "code": "INV_TIMEOUT", "retryable": true}

There is the reason: an inventory service timed out, the error is retryable, and the user was told none of it. One command, and the answer was about 320 tokens.

The CSS rule that lost

The sale price on the first tea should be red. It is pale grey.

npx chrome-devtools get_css_styles 2 9_18 .card .price (style.css:26) { color: #b9bfbc; } .price.sale (style.css:25) { [overloaded] color: var(--sale); }

Rules come in cascade order, the winner first, and a losing declaration is tagged [overloaded], with the file and line of both. Playwright MCP’s default set has nothing like it.

A performance trace that finds a planted delay

npx chrome-devtools resize_page 2 1280 800 npx chrome-devtools performance_start_trace 2

The trace reloads the page, records, stops by itself, and answers with a summary. The first one we ran took 7.2 seconds. At 1280 by 800, the summary said LCP 1,611 ms and CLS 0.04. It split the LCP into four parts: time to first byte 1 ms, load delay 2 ms, load duration 1,601 ms, and render delay 7 ms. It then listed six insights we could ask about. We asked for the first.

npx chrome-devtools performance_analyze_insight 2 NAVIGATION_0 LCPBreakdown

The answer named the element, IMG class='hero-img', its request, hero.svg, and said the resource load duration was 1,601 ms, or 99.4% of the LCP time. Our server delays that image by 1.6 seconds on purpose. The RenderBlocking insight named style.css at 492 ms, and we had planted a delay of 0.45 seconds there. Both were found exactly. LCPDiscovery added one check that failed: fetchpriority=high was not set on the image.

The field data line read “n/a”. We had switched the CrUX lookup off, and a page on localhost has no field data in any case.

One insight was wrong, and it taught us something. CLSCulprits reported a layout shift at 2,018 ms and named, as a potential root cause, “An unsized image (IMG class=’hero-img’)”. Our image has width and height attributes. The shift comes from a promo banner that our script inserts late. We checked it three ways. With the banner on, CLS was 0.04 and the image was named. With the banner off, CLS was 0.00 and the tool said “No layout shifts were found”. With the banner on and the image fast, CLS was 0.04 and the image was named again. Read “potential” as a hint to test, and test it.

A phone, dark mode, and a slow network

npx chrome-devtools emulate 2 --colorScheme dark --viewport "390x844x3,mobile,touch" npx chrome-devtools take_screenshot 2 --filePath "$PWD/shots/mobile-dark.png" npx chrome-devtools emulate 2 --networkConditions "Slow 4G" --cpuThrottlingRate 4

We gave every file argument as an absolute path here. In a later run from a single folder, plain relative names such as ok.json worked as well. One thing to know before you rely on that: the daemon resolves a relative path against the folder it was started in, not the folder you run the command from. We started it in one folder and asked for rel-shot.png from another, and the file landed in the first. An open pull request, #3570, changes this.

The first command took 1.9 seconds, and the store switched to its dark, single-column layout. The screenshot came out at 1170 by 2532 pixels, which is 390 by 844 at three times the density. With Slow 4G and a CPU four times slower, a new trace gave an LCP of 2,209 ms, with 563 ms of that before the first byte. Each emulate call replaces all the settings, so emulate 2 with no options clears them.

A Lighthouse audit

npx chrome-devtools lighthouse_audit 2 --mode navigation --device desktop --outputDirPath "$PWD/lh" ### Category scores - Accessibility: 87 (accessibility) - Best Practices: 100 (best-practices) - SEO: 82 (seo) - Agentic Browsing: 100 (agentic-browsing) ### Audit summary Passed: 42 Failed: 3

It took 5.9 seconds. The three failures were all planted: prices with a contrast ratio of 1.86 where 3:1 is expected, four images with no alt attribute, and no meta description. Each failure names the elements with a selector, so an agent can go straight to the fix. The full report went to report.json and report.html in that folder.

Two notes. There is no Performance category here; the trace tools do that job. And --mode snapshot is quicker, 1.5 seconds, but runs fewer audits: it passed 23 against 42, and the SEO score read 60 against 82 for the same page.

A mocked API, to test the happy path

The checkout API is broken. Can we still see what the page does when an order goes through? Network mocks, also new in 1.13.0, answer a request from a local file. The first try failed:

Tool mock_network is in category Network mocks which is currently disabled. Enable it by running chrome-devtools start --categoryNetworkMocks=true. For more information check the README.

So we stopped the daemon, started it again with that flag, opened the store again, and set the mock.

npx chrome-devtools stop npx chrome-devtools start --no-usage-statistics --no-performance-crux --categoryNetworkMocks=true npx chrome-devtools navigate_page 1 --url http://localhost:8150/ npx chrome-devtools mock_network 1 --route "http://localhost:8150/api/checkout" --resourceType fetch --body "$PWD/mocks/checkout.json"

The file holds {"order": "A-1042", "status": "placed"}. The tool answered “Network mock configured. Reload or navigate the page to apply it.” In our run, it applied to the next request with no reload. We added a tea and pressed “Place order”. The status line read “Order placed: A-1042”, and the request list showed the same POST with a 200. remove_network_mock 1 took the mock away, and the next order failed again. The frontend’s success path works; the fault is on the server.

The demo store in our test with a mocked checkout showing an order placed, and what six commands found on the page
Real screen from our test, with the checkout API mocked, next to what six commands found; every fault on the page was planted by us

Chrome DevTools MCP setup for Claude Code, Cursor, Codex, and VS Code

We did not run this part. Our test machine has no coding agent on it, so the commands in this section come from the project’s client configuration guide, which covers 27 clients, and not from our test.

The standard config is the same for most clients:

{ "mcpServers": { "chrome-devtools": { "command": "npx", "args": ["-y", "chrome-devtools-mcp@latest"] } } }
  • Claude Code: claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest adds the server only. To get the skills too, the docs install it as a plugin: /plugin marketplace add ChromeDevTools/chrome-devtools-mcp, then /plugin install chrome-devtools-mcp@chrome-devtools-plugins, then a restart.
  • Codex: codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest.
  • Cursor: in Cursor Settings, open MCP, choose New MCP Server, and paste the standard config.
  • VS Code with Copilot: run “Chat: Install Plugin From Source” from the Command Palette and enter ChromeDevTools/chrome-devtools-mcp.

The README’s first prompt, to check that it works, is “Check the performance of https://developers.chrome.com”.

Two things from our test apply here. Add --no-usage-statistics to the args if you do not want to send statistics; we explain what they hold in the next section. And know that the server’s defaults differ from the CLI’s. The configuration guide lists --headless and --isolated as off by default for the server. So an agent gets a visible Chrome window, and a profile that is kept between runs under ~/.cache/chrome-devtools-mcp/.

Usage statistics and privacy: what leaves your machine

The README is open about it: “Data collection is enabled by default.” We read the code at commit e4669b3 to see what that data is.

  • Where it goes. A separate watchdog process posts events to play.googleapis.com/log, Google’s logging endpoint.
  • What an event holds. The operating system type, the MCP client, the package version, and a session id. Each event also carries one record: the flags the server started with, a tool call, a daily activity marker, a shutdown, or an error.
  • What a tool call record holds. The tool name, whether it succeeded, the time it took in buckets, and its parameters in reduced form. A string is logged as its length in buckets, an array as its count, and the uid, reqid, and msgid parameters are never logged.

So, by our reading of that code, the URL you open, the page text, and the script you evaluate are not in the events. The names of the tools you use and how long they take are.

There are three ways to turn it off, and we saw each one work: the --no-usage-statistics flag, the CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS variable, and the config file below. The README says a CI variable does the same; we did not try that one. With the variable set, the daemon printed “turning off usage statistics” and no watchdog process started.

Two more things reach the network. The performance tools may send the URL you trace to Google’s CrUX API to fetch real-user data, unless you pass --no-performance-crux. The server also checks npm for a newer version, unless CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS is set.

The README’s own warning matters more than all of that: the server “exposes content of the browser instance to the MCP clients”. Whatever the browser can see, the agent can read. Keep it away from a profile where you are signed in to things that matter.

Chrome DevTools MCP vs Playwright MCP: what we measured

Playwright MCP is the other browser server most teams consider. The comparisons we found online disagree on which one costs fewer tokens, and the ones we read do not show how they counted. So we measured both, at chrome-devtools-mcp 1.13.0 and @playwright/mcp 0.0.86, on the same machine. Below, “Chrome” is short for Chrome DevTools MCP, and “Playwright” for Playwright MCP.

The method: two short Node.js scripts, about 100 lines together and built on the official MCP SDK, start each server, ask for its tool list, and call tools by hand. No model is involved. We count the JSON a client hands to a model, which is the name, description, and input schema of every tool, and then the text of every answer. Tokens are counted with the o200k_base tokenizer as an approximation. Another model’s own count will differ; the ratio between the two servers should differ much less.

Tool definitions

Server and flagsToolsBytesTokens
Chrome DevTools MCP 1.13.0, default3330,3186,721
Chrome DevTools MCP with --slim3934210
Playwright MCP 0.0.86, default2518,5293,923
Playwright MCP with --caps vision,pdf,devtools4528,1396,021

A model reads the definitions once per session, before it does anything. Chrome’s default set is 71% larger than Playwright’s. The biggest single definitions were emulate at 576 tokens, set_logpoints at 448, and evaluate_script at 430.

The same job on both

The job is the checkout bug from above. Open the store, read the page, add a tea, and place the order. Then read the console errors, list the fetch requests, and read the failing request until INV_TIMEOUT is on screen. We ran it five times on each server, and the sizes were identical in every run.

StepChrome DevTools MCPTokensPlaywright MCPTokens
Open the storenew_page28browser_navigate78
Read the pagetake_snapshot500browser_snapshot625
Add a teaclick5browser_click99
Place the orderclick5browser_click133
Console errorslist_console_messages67browser_console_messages75
Fetch requestslist_network_requests37browser_network_requests44
The failing requestget_network_request321browser_network_request270
Its response bodyin the same answera second call25
Total7 calls, 2,891 bytes9638 calls, 4,344 bytes1,349

Chrome’s answers were 29% smaller, and the calls were faster: a median of 2.46 seconds for the whole job against 3.38. The difference is mostly in the clicks. Chrome answers a click with five tokens. Playwright answers with the Playwright code it ran, the page title and URL, and a link to a snapshot file.

Chrome DevTools MCP vs Playwright MCP: 6,721 vs 3,923 tokens of tool definitions, and 963 vs 1,349 tokens for the same job
Measured on one machine with a hand-written client: heavier definitions, lighter answers

What the numbers mean

Add the two parts and Playwright MCP wins a short session: 5,272 tokens against 7,684. Chrome’s definitions are 2,798 tokens heavier, and its answers saved 386 tokens on this job, so it takes about seven jobs like this in one session before the totals cross.

That is not the headline we kept finding, which is that the official Chrome server beats Playwright with more tools and fewer tokens. It has more tools. On answers, it uses fewer tokens. In total, for a short task, it used more.

Three more things we saw:

  • Files. Playwright MCP wrote four files into the working folder on every run: three page snapshots and a console log, under .playwright-mcp/. After five runs, there were 20 files there. Chrome DevTools MCP wrote nothing to the folder.
  • Console detail. Playwright’s console answer carried the file and line of each message. Chrome’s list needs includeStackTraces, or a second call, for that.
  • Reach. Only Chrome DevTools MCP has performance traces with insights, Lighthouse, CSS rule inspection, logpoints, and network and CPU emulation in its default set. Only Playwright MCP drives Firefox and WebKit, returns the Playwright code it ran for each action, and can search a snapshot.

My read: these are two different jobs. Playwright MCP is for driving a browser through a flow, on any engine. Chrome DevTools MCP is for finding out why a page is slow or broken in Chrome. If the question starts with “why”, I would reach for the Chrome one.

How to make the tool definitions smaller

If the default set is too heavy for your context, switch off what you do not use. We measured each option.

FlagsToolsTokens
Default336,721
--no-category-memory326,604
--no-category-performance306,155
--no-category-emulation316,014
Those three together275,331
--no-page-id-routing336,116
--category-network-mocks357,452
--slim3210

--slim keeps three tools: navigate, evaluate a script, and take a screenshot. Turning off page id routing saves 605 tokens, at the price of working on the selected page only.

Chrome DevTools CLI vs MCP: which one to use

Both are in the same package, and they run the same tools. The difference is who is calling.

Use the CLI when a person or a script is in charge: a quick check from the terminal, a shell script in CI, or an agent that already has a shell. According to the README, the package ships a chrome-devtools-cli skill that teaches an agent the commands, so the agent can use the CLI with no MCP server registered at all. Use the MCP server when your agent has no shell, or when you want the tools to appear as typed tools in the client.

A few differences are easy to miss:

  • The CLI is headless and uses a temporary profile by default. The server, by its documented defaults, shows a window and keeps its profile.
  • The CLI keeps one daemon alive between commands, so pages, cookies, and state survive from one command to the next. stop ends it.
  • The docs say two tools, wait_for and fill_form, are left out of the CLI.
  • --output-format=json gives one line of JSON for a script to parse. We used it on list_pages.

Limits and gotchas

Six things surprised us on 1.13.0. Each one has a way around it.

  1. An unread error body is not shown. When the page never reads a response body and the response is no-store, get_network_request waits five seconds and says the body is not available. The same request without no-store showed its body in 0.3 seconds. The headers and the status are still there. We did not try it, but repeating the request with evaluate_script and returning the text should get you the body.
  2. start --viewport fails in the CLI. The server accepts --viewport; the CLI’s start answers “Unknown argument: viewport”. The default headless window is 1905 by 2053 pixels, so screenshots are very tall and layout shift reads low: 0.01 against 0.04 at 1280 by 800. Use resize_page, or the config file.
  3. A failed start falls back to defaults, quietly. After that failed start, our next command started the daemon by itself, with default flags. That meant usage statistics on and CrUX lookups on, and we saw the two notices and a watchdog process. Check status after every start: args=["--viaCli"] alone means defaults.
  4. Network mocks need a restart flag. The CLI guide says the CLI supports every tool “even if they require a flag to activate in the MCP server”. For the mock tools in 1.13.0, that was not so. The restart also loses your pages, because the profile is temporary.
  5. Logpoints cannot be removed from the CLI. The help says to pass an empty array. set_logpoints 2, set_logpoints 2 "", and set_logpoints 2 [] all failed. A reload clears them.
  6. A potential root cause can be the wrong one. The layout shift on our page was blamed on an image that has its size set. See the trace section above.

The config file that fixes three of them

Options can live in a file, ~/.config/cd4a/config.json, with the option names in camelCase. Flags on the command line still win.

{ "usageStatistics": false, "performanceCrux": false, "viewport": "1280x800", "categoryNetworkMocks": true }

With this file in place, a plain npx chrome-devtools start showed no statistics notice and started no watchdog, the page was 1280 by 800 inside, and mock_network worked. We ran it once more with exactly these four keys, no flags, and no opt-out in the environment, and got the same result. It also covers the case where a command starts the daemon for you. status still prints args=["--viaCli"], because the options come from the file and not from flags. One caution from the docs: keep this file and its folder where an agent cannot write, because it can also set the browser’s path and its arguments.

What we did not test

We did not test any coding agent or model with it, so we cannot say how well a model chooses among 33 tools. We also left out the plugin and the skills, connecting to a Chrome that is already running and signed in, Android debugging, extensions, heap snapshots, screencasts, and Windows and macOS. We used it for one evening, on one machine, against a local demo page, and not in production.

Frequently asked questions

What is Chrome DevTools MCP?

Chrome DevTools MCP is an open-source MCP server and CLI from the Chrome DevTools team that lets a coding agent control and inspect a live Chrome browser. It offers DevTools features as tools: page snapshots, clicks, console messages, network requests, performance traces, Lighthouse audits, and CSS inspection. It is Apache-2.0 licensed, and the npm package is chrome-devtools-mcp.

How do I install Chrome DevTools MCP?

Run npm install chrome-devtools-mcp, or add it to your agent with the standard config, which runs npx -y chrome-devtools-mcp@latest. You need a Node.js LTS version, npm, and the current stable Chrome. In our test on 23 November 2026, version 1.13.0 installed in 1.2 seconds as a single package, with no browser download.

How do I add Chrome DevTools MCP to Claude Code?

According to the project’s docs, one command adds the MCP server to Claude Code: claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest. To get the bundled skills as well, add the plugin marketplace with /plugin marketplace add ChromeDevTools/chrome-devtools-mcp, install chrome-devtools-mcp@chrome-devtools-plugins, and restart Claude Code. We did not run this ourselves, because our test machine has no agent.

Can I use Chrome DevTools MCP without an AI agent?

Yes. The package includes a CLI named chrome-devtools that runs the same tools from a terminal, with no agent and no MCP client. Every result in this guide came from that CLI or from a small MCP client we wrote. It is a quick way to see what an agent would see before you connect one.

What is the difference between Chrome DevTools MCP and Playwright MCP?

Chrome DevTools MCP is built for debugging and performance work in Chrome: traces with insights, Lighthouse, CSS inspection, and logpoints. Playwright MCP is built for driving a browser through a flow, and it also supports Firefox and WebKit and returns Playwright test code. Both can click, type, and read the console and network.

Does Chrome DevTools MCP use fewer tokens than Playwright MCP?

For answers, yes; in total for a short task, no. In our test, Chrome DevTools MCP 1.13.0 used 963 tokens of answers for one debugging job against 1,349 for Playwright MCP 0.0.86. Its tool definitions were larger, 6,721 tokens against 3,923, so the totals only cross after about seven such jobs in one session.

Does Chrome DevTools MCP collect data?

Yes, by default. Google collects usage statistics such as tool names, success, and latency, and the README says collection is on unless you opt out. We read the code: strings are logged as lengths, not as text. Turn it off with --no-usage-statistics, the CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS variable, or the config file.

Does Chrome DevTools MCP work with Cursor, Codex, and VS Code?

Yes, according to the project’s client configuration guide, which covers 27 clients. Cursor takes the standard config under Settings, MCP. Codex uses codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest. VS Code with Copilot installs it as a plugin from the Command Palette. We tested the CLI and the raw server, not these clients.

Does Chrome DevTools MCP run headless?

It depends on how you start it. The CLI runs Chrome headless with a temporary profile by default. The MCP server, by its documented defaults, opens a visible window and keeps a profile between runs; pass --headless and --isolated to change that. All of our tests ran headless on a Linux server with no display.

Which browsers does Chrome DevTools MCP support?

The README says it “officially supports Google Chrome and Chrome for Testing only” and that other Chromium-based browsers may work without a guarantee. The team commits to supporting the latest Extended Stable Chrome. We tested with Google Chrome 158 on Ubuntu 24.04. For Firefox or WebKit, Playwright MCP is the tool to look at.

Watch the setup video

The video is recorded on a real terminal next to the tool’s own Chrome window. It opens with one command that shows why the checkout failed, INV_TIMEOUT, while the page only says “Something went wrong”. Then it installs the package and starts the daemon, reads the page as a snapshot, and clicks through the cart until the coupon error appears with its file and line. A logpoint shows the API’s real answer, and the failing request gives up its body.

Next comes the mocked checkout that shows “Order placed”, the performance trace with the 1.6 second hero image, the store switching to dark mode live, and the Lighthouse scores. It ends with two of the snags and the numbers against Playwright MCP.

Watch it on YouTube: Chrome DevTools MCP Tutorial: Setup, Debugging, vs Playwright MCP.

Try it

The code is at github.com/ChromeDevTools/chrome-devtools-mcp. Install it, write the four-line config file first, and point it at a page of your own that you know has a problem. Ask for the console, then the network, then a trace. Ten minutes at the terminal will tell you what an agent can find on your site and what it cannot. If your team is putting coding agents to work on a real product and wants a second pair of eyes on the setup, HyScaler builds AI-powered web and mobile products.

References