Chrome DevTools MCP server: give your coding agent a debuggable Chrome
On this page
Chrome DevTools MCP (chrome-devtools-mcp) is the Chrome DevTools team’s MCP server that lets a coding agent control and inspect a live Chrome browser. Beyond clicking and typing, it records performance traces and reads their insights, lists network requests with headers, reads console messages with source-mapped stack traces, emulates devices and slow networks, and takes screenshots. It runs on your machine with npx chrome-devtools-mcp@latest, launches its own Chrome by default, and can attach to a Chrome you already have open.
Checked as of November 2026 against the chrome-devtools-mcp README, its configuration and tool reference docs at release v1.12.0, and the Chrome for Developers blog.
What Chrome DevTools MCP does
Google announced the server as a public preview in September 2025, and the Chrome 149 DevTools release notes in June 2026 declared the MCP server and its CLI stable. The project now calls itself Chrome DevTools for agents. It uses Puppeteer for automation and the DevTools frontend for analysis.
It officially supports Google Chrome and Chrome for Testing. Other Chromium browsers may work, without guarantees. Requirements are a current Node.js LTS, npm and a stable Chrome or newer.
Two defaults to know before installing, both from the README:
- Usage statistics are on. Google collects tool success rates, latency and environment information. Pass
--no-usage-statistics, or setCHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICSorCI, to turn it off. - Performance tools may send trace URLs to the CrUX API to fetch real-user field data alongside your lab trace.
--no-performance-cruxstops that, which you want when tracing internal or unreleased URLs.
Install Chrome DevTools MCP in Claude Code, Codex, Cursor and VS Code
The standard config, used by 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
--scope user makes it available in every project; the Claude Code client guide covers the other scopes. The project also ships a Claude Code plugin that installs the server together with its skills (performance, accessibility, memory leaks and others): run /plugin marketplace add ChromeDevTools/chrome-devtools-mcp, then /plugin install chrome-devtools-mcp@chrome-devtools-plugins. Remove a manually added server first so you don’t run two.
Codex
codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
That writes a [mcp_servers.chrome-devtools] table to ~/.codex/config.toml, shared by the Codex CLI, IDE extension and app.
Cursor
Use the install button in the project’s client configuration guide, or go to Cursor Settings, then MCP, then New MCP Server, and paste the standard config. A project-level .cursor/mcp.json works too.
VS Code
code --add-mcp '{"name":"io.github.ChromeDevTools/chrome-devtools-mcp","command":"npx","args":["-y","chrome-devtools-mcp"],"env":{}}'
VS Code can also install it as an agent plugin with skills: run Chat: Install Plugin From Source and enter ChromeDevTools/chrome-devtools-mcp.
Connecting the server doesn’t start Chrome. The browser launches the first time a tool needs it. A good first prompt from the README: “Check the performance of https://developers.chrome.com”.
Chrome DevTools MCP tools
The tool reference groups the tools into categories. Most are on by default:
| Category | Tools |
|---|---|
| Input | click, fill, fill_form, type_text, press_key, hover, drag, handle_dialog, upload_file |
| Navigation | new_page, navigate_page, list_pages, select_page, close_page, wait_for |
| Emulation | emulate (color scheme, CPU throttling, network conditions, geolocation, user agent, viewport), resize_page |
| Performance | performance_start_trace, performance_stop_trace, performance_analyze_insight |
| Network | list_network_requests, get_network_request |
| Debugging | take_snapshot, take_screenshot, list_console_messages, get_console_message, evaluate_script, get_css_styles, lighthouse_audit, screencast_start, screencast_stop |
Like Playwright MCP, interaction works from a text snapshot of the accessibility tree: take_snapshot returns elements with a uid, and click or fill take that uid. Screenshots are for looking, not targeting, unless you enable coordinate tools (below).
The performance tools are the reason most people install it. performance_start_trace records a trace while the page loads or while the agent interacts, and returns DevTools’ insights for Core Web Vitals (LCP, INP, CLS). performance_analyze_insight then drills into one insight, such as what blocked LCP. lighthouse_audit covers accessibility, SEO and best practices but deliberately excludes performance, which goes through traces instead.
get_network_request returns request and response headers, including Cookie and Set-Cookie. Useful for debugging auth, and also a reason to be careful about what the browser is signed into.
Opt-in groups add more: --memoryDebugging adds heap snapshot tools for leak hunting, --categoryExtensions adds tools to install and reload Chrome extensions, and --experimentalVision adds coordinate clicks (click_at) for models that work from screenshots.
Chrome DevTools MCP flags
Flags go in args. They also work as camelCase keys in a JSON file passed with --config. npx chrome-devtools-mcp@latest --help prints the full list.
| Flag | Effect |
|---|---|
--headless | No browser window. Default is headed |
--isolated | Temporary profile, deleted when the browser closes |
--userDataDir | Profile directory. Default is ~/.cache/chrome-devtools-mcp/chrome-profile |
--channel | stable, beta, dev or canary |
--viewport | Initial size, for example 1280x720 |
--slim | Exposes only 3 tools (navigate, evaluate, screenshot) to save context |
--categoryPerformance=false and similar | Drops a whole category of tools |
--allowedUrlPattern, --blockedUrlPattern | Restricts which URLs the browser can load, using URL patterns. The allowlist needs Chrome 149+ |
--no-javascript-evaluation | Disables evaluate_script and other caller-supplied JavaScript entry points |
--redactNetworkHeaders | Redacts some sensitive headers in network results |
--acceptInsecureCerts | Ignores self-signed and expired certificate errors |
--screenshotMaxWidth, --screenshotFormat | Smaller screenshots, fewer image tokens |
A setup I’d use for checking a local dev server without touching my real profile:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"-y", "chrome-devtools-mcp@latest",
"--isolated",
"--no-usage-statistics",
"--no-performance-crux",
"--allowedUrlPattern=http://localhost:*/*"
]
}
}
}
The default profile persists between runs and only one browser can use it at a time, so parallel agent sessions should each pass --isolated. The docs also warn that a config file can set sensitive options such as executablePath and chromeArg; keep it somewhere the agent can’t write.
Connect to a running Chrome
By default the server starts a fresh Chrome with its own profile. Two options attach to one you started yourself.
--autoConnect (Chrome 144 and later). Open chrome://inspect/#remote-debugging in Chrome and enable remote debugging, then start the server with --autoConnect. When the agent first connects, Chrome shows a dialog asking you to allow it. The server then has access to every open window in that profile. This suits switching between manual testing and agent-driven debugging on the same state, as the Chrome blog post on debugging your browser session describes.
--browserUrl. Start Chrome with a debugging port and a separate profile, then point the server at it:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stable
"args": ["chrome-devtools-mcp@latest", "--browserUrl=http://127.0.0.1:9222"]
This is the route for an agent running in a sandbox or VM that can’t launch Chrome itself. The docs warn that any application on your machine can connect to an open debugging port and control the browser, so don’t browse sensitive sites in that window. Chrome requires a non-default --user-data-dir for the debugging port, which keeps your everyday profile out of it.
Attaching to a signed-in browser hands the agent those sessions, and page content can carry prompt injection. MCP security risks covers that threat, and the Claude Code permissions guide shows how to put mcp__chrome-devtools__evaluate_script behind a prompt.
Chrome DevTools MCP vs Playwright MCP
Both read the page through an accessibility snapshot, both run locally, and both can drive a flow end to end. The difference is what else you get.
Pick Chrome DevTools MCP when the task is diagnosis: why LCP is slow, which request returned the 500, which CSS rule wins, where memory leaks. It has the DevTools trace engine, Lighthouse and source-mapped console stacks, and it can attach to the Chrome you’re already debugging in.
Pick Playwright MCP when the task is interaction across browsers or producing tests. It drives Chromium, Firefox and WebKit, generates Playwright code for what it did, and has assertion tools for test writing.
Plenty of people install both and let the task decide.
A local server, outside remote gateways
Chrome DevTools MCP is a stdio server that controls a browser on the same machine, so a remote MCP gateway can’t proxy it. Toolstile’s hosted service, for example, connects only to public HTTPS MCP servers (what an MCP gateway is explains the model). Govern this server with your client’s own permission rules and the server’s flags, such as --no-javascript-evaluation and URL patterns.