Blog
Chrome DevTools MCP setup: the one-line install for Claude Code, Codex, Gemini CLI and VS Code, plus the four flags I set before letting an agent drive my browser
Chrome DevTools MCP lets a coding agent open Chrome, click through your app, read the console and record a performance trace. Setup is one line. The part the quickstart skips is what it sends by default and how to keep it away from your real browser profile. Here's both.
To set up Chrome DevTools MCP, add one line to your agent: in Claude Code it's claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest, and the server launches Chrome the first time a tool needs it. That's the whole install. The part worth five more minutes is what the server does by default, because it hands your agent a real browser.
I put this off for a while. Letting an agent click around Chrome felt like handing someone my laptop while I made coffee. What changed my mind was a layout bug my agent kept "fixing" blind, edit after edit, because it couldn't see the page. With DevTools attached, it opened the page, read the console error, and fixed the actual problem in one pass. That's the pitch: the agent stops guessing.
It's not a niche tool anymore. ChromeDevTools/chrome-devtools-mcp had 59,985 GitHub stars on December 1, 2026, and the npm package was downloaded 9,602,431 times from November 1 to 29, per npm's API, up from 9,444,208 in all of October.
Before you start
- Node.js LTS. Version 1.14.0's
package.jsondeclares^20.19.0 || ^22.12.0 || >=23. - Chrome, current stable or newer. The README says it officially supports Google Chrome and Chrome for Testing only. Other Chromium browsers "may work."
Install: one line per client
From the project's client configuration guide:
| Client | Command |
|---|---|
| Claude Code | claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest |
| Codex | codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest |
| Gemini CLI | gemini mcp add chrome-devtools npx chrome-devtools-mcp@latest |
| VS Code (Copilot) | code --add-mcp '{"name":"io.github.ChromeDevTools/chrome-devtools-mcp","command":"npx","args":["-y","chrome-devtools-mcp"],"env":{}}' |
| Any MCP client (JSON) | "chrome-devtools": {"command": "npx", "args": ["-y", "chrome-devtools-mcp@latest"]} under mcpServers |
If your agent supports plugins, install the plugin instead and you also get the project's skills: guides for accessibility debugging, cookies and auth, LCP optimization and memory leaks. In Claude Code that's /plugin marketplace add ChromeDevTools/chrome-devtools-mcp, then /plugin install chrome-devtools-mcp@chrome-devtools-plugins. In Gemini CLI, gemini extensions install --auto-update https://github.com/ChromeDevTools/chrome-devtools-mcp.
Test it with the README's first prompt: "Check the performance of https://developers.chrome.com". Chrome should open and record a trace. If nothing opens, that's expected until a tool actually needs the browser. Connecting to the server alone doesn't start Chrome.
The four flags I set before real work
The defaults are tuned for getting started, not for a browser that's also where you're signed in to things. Add these to the args array:
1. --no-usage-statistics. The README says Google collects usage statistics ("tool invocation success rates, latency, and environment information") and that collection "is enabled by default." Opting out of Chrome's own metrics doesn't opt you out of this. It's also off automatically when the CI variable is set.
2. --no-performance-crux. Performance tools "may send trace URLs to the Google CrUX API" to fetch real-user data. If you trace internal or staging URLs, you may not want those URLs leaving your machine.
3. --isolated. This creates a temporary user-data directory that's deleted when the browser closes. Without it, the server uses a persistent profile under $HOME/.cache/chrome-devtools-mcp/. Isolated means every session starts logged out of everything, which is exactly what you want when an agent is clicking.
4. --javascriptEvaluation=false if the agent only needs to look, not script. It disables evaluate_script, set_logpoints and the initScript parameter. The docs are clear this "is not a JavaScript sandbox." Page scripts still run, and clicks still trigger them. It does remove the most direct way for a confused agent to run arbitrary code in your page.
A hardened config looks like this:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest", "--isolated", "--no-usage-statistics", "--no-performance-crux"]
}
}
}
Two more worth knowing: --headless for CI, and --slim, which exposes just 3 tools (navigate, run a script, screenshot) when the full set is more than your agent needs.
What the agent gets: 63 tools
The tool reference for 1.14.0 lists 63 tools. The groups that earn their keep:
- Input and navigation:
click,fill,fill_form,type_text,navigate_page,new_page,wait_for. - Debugging:
list_console_messages,take_snapshot,take_screenshot,evaluate_script,lighthouse_audit. - Network:
list_network_requests,get_network_request, plusmock_networkto fake responses. - Performance:
performance_start_trace,performance_stop_trace,performance_analyze_insight. - Memory:
take_heapsnapshot,compare_heapsnapshots,get_heapsnapshot_retaining_pathsand more, the newest and most specialized group.
Using your real Chrome (carefully)
Sometimes you need the agent in your signed-in session, for example to reproduce a bug behind a login. With Chrome 144 or newer, open chrome://inspect/#remote-debugging, allow connections, and start the server with --autoConnect. Chrome asks for permission, and per the docs the server then "has access to all open windows for the selected profile." All of them. Close the tabs you don't want an agent reading first. I keep a separate Chrome profile just for this.
What's new in 1.14.0 (November 24, 2026)
From the changelog: --backgroundNewPages keeps tabs the agent opens from stealing focus, network mocks can now abort requests or allow an origin, service worker requests and console messages are visible, get_css_styles includes computed styles and resolves CSS variables inline, and screenshots can be transparent. 1.13.0 shipped on November 11.
Where it fits
Chrome DevTools MCP is a debugging tool first. For an agent that browses the web to complete tasks, compare Vercel's agent-browser and the computer-use agents roundup. For other app-specific servers, from Blender and KiCad to Jira and Playwright, see our MCP servers list. Claude Code can now load skills straight from MCP servers as of 2.1.332, which we covered in Skills over MCP.
FAQ
How do I install Chrome DevTools MCP in Claude Code?
Run: claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest. That registers the server for your user. You need a current Node.js LTS (the package declares ^20.19.0, ^22.12.0 or >=23) and current stable Chrome. Then ask Claude to 'Check the performance of https://developers.chrome.com' to test it.
How do I add Chrome DevTools MCP to Codex or Gemini CLI?
Codex: codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest. Gemini CLI: gemini mcp add chrome-devtools npx chrome-devtools-mcp@latest, or gemini extensions install --auto-update https://github.com/ChromeDevTools/chrome-devtools-mcp to get the MCP server plus its skills.
What can Chrome DevTools MCP do?
Version 1.14.0's tool reference lists 63 tools in groups: input automation (click, fill, type), navigation, emulation, performance traces and Lighthouse audits, network requests and mocks, console and debugging, screenshots, heap snapshots for memory leaks, and installing extensions. The --slim flag cuts this to 3 tools for basic navigation, scripts and screenshots.
Does Chrome DevTools MCP send data to Google?
By default, yes, in two ways per its README. Google collects usage statistics such as tool success rates, latency and environment information; opt out with --no-usage-statistics or the CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS environment variable. Performance tools may send trace URLs to the CrUX API for field data; disable with --no-performance-crux.
Can Chrome DevTools MCP use my existing Chrome session?
Yes. With Chrome 144 or newer, enable remote debugging at chrome://inspect/#remote-debugging and start the server with --autoConnect. It connects to the default profile and can see all open windows in it, and Chrome asks for permission. Alternatively use --browserUrl to connect to a Chrome started with a debugging port.
What is the latest version of chrome-devtools-mcp?
1.14.0, released November 24, 2026. It added --backgroundNewPages, abort and allow-origin network mocks, service worker network requests and console messages, computed styles in get_css_styles, and transparent screenshots. The previous release, 1.13.0, shipped November 11.