---
title: "Chrome DevTools MCP explained: what it does, its tools, and a safe setup for agents"
description: "Chrome DevTools MCP (chrome-devtools-mcp) is an open-source MCP server that lets an AI agent control and inspect a live Chrome browser, with DevTools features such as performance traces and network and console inspection. It sends usage statistics by default; turn that off for agents."
url: "https://www.aiagentsandbox.io/what-is-chrome-devtools-mcp/"
site: "AIAgentSandbox.io"
author: "AIAgentSandbox editors"
published: "2026-11-26"
updated: "2026-11-26"
---

# Chrome DevTools MCP explained: what it does, its tools, and a safe setup for agents

AIAgentSandbox editors. Published 2026-11-26, updated 2026-11-26.

Chrome DevTools MCP (chrome-devtools-mcp) is an open-source MCP server that lets an AI agent control and inspect a live Chrome browser, with DevTools features such as performance traces and network and console inspection. It sends usage statistics by default; turn that off for agents.

Chrome DevTools MCP is an open-source Model Context Protocol server, published as the npm package `chrome-devtools-mcp`, that gives an AI agent a Chrome browser to control and inspect. Its README calls it "Chrome DevTools for agents" and says it gives an assistant "access to the full power of Chrome DevTools for reliable automation, in-depth debugging, and performance analysis" ([Chrome DevTools MCP README](https://github.com/ChromeDevTools/chrome-devtools-mcp), read 2026-11-26).

## What can Chrome DevTools MCP do?

Chrome DevTools MCP can automate a page and also inspect it the way a developer does in DevTools. The README lists three main features:

- **Performance insights.** It "Uses Chrome DevTools to record traces and extract actionable performance insights".
- **Debugging.** It can "Analyze network requests, take screenshots and check browser console messages (with source-mapped stack traces)".
- **Automation.** It "Uses puppeteer to automate actions in Chrome and automatically wait for action results".

It is available as an MCP server and as a command-line tool, `chrome-devtools`, from the same package.

## Which tools does Chrome DevTools MCP provide?

Chrome DevTools MCP provides tools in categories, and most categories can be turned off with a flag. The counts below come from its tool reference.

Table: Chrome DevTools MCP tool categories, from its tool reference

| Category | Tools | Examples | Default |
|---|---|---|---|
| Input automation | 10 | click, fill, fill_form, press_key, upload_file | On |
| Navigation automation | 6 | navigate_page, new_page, list_pages, wait_for | On |
| Emulation | 2 | emulate, resize_page | On |
| Performance | 3 | performance_start_trace, performance_analyze_insight | On |
| Network | 2 | list_network_requests, get_network_request | On |
| Debugging | 10 | take_snapshot, take_screenshot, evaluate_script, lighthouse_audit | On |
| Memory | 14 | take_heapsnapshot, compare_heapsnapshots | Off, `--memoryDebugging` |
| Network mocks | 2 | mock_network, remove_network_mock | Off |
| Extensions | 5 | install_extension, list_extensions | Off |
| WebAuthn | 1 | configure_webauthn | Off |

Sources: [tool reference](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/tool-reference.md) and [configuration guide](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/configuration.md), read 2026-11-26. A `--slim` flag "Exposes a 'slim' set of 3 tools covering navigation, script execution and screenshots only".

## How does an agent use Chrome DevTools MCP?

An agent uses Chrome DevTools MCP by taking a text snapshot of the page and acting on elements by their identifier.

1. `navigate_page` or `new_page` opens a URL.
2. `take_snapshot` returns "a text snapshot of the target page based on the a11y tree", which "lists page elements along with a unique identifier (uid)". The tool's description adds "Always use the latest snapshot" and "Prefer taking a snapshot over taking a screenshot".
3. `click`, `fill` or another input tool acts on an element, given "The uid of an element on the page from the page content snapshot".
4. Page-scoped tools take a `pageId`, because page ID routing is on by default, "useful for concurrent agent sessions".

Clicking by screen position is off by default. `click_at` "requires flag: --experimentalVision=true", which "Usually requires a computer-use model able to produce accurate coordinates by looking at screenshots" (configuration guide, read 2026-11-26).

## How do I install Chrome DevTools MCP?

Install Chrome DevTools MCP by adding it to your MCP client's configuration. The README's minimal configuration:

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

It needs a Node.js LTS release and "Chrome current stable version or newer" (README). The package's own engine field asks for Node `^20.19.0 || ^22.12.0 || >=23`, and the latest version on npm was 1.14.0 when we checked ([npm registry entry](https://registry.npmjs.org/chrome-devtools-mcp/latest), read 2026-11-26). Pin that version for automated runs.

The server starts the browser only when a tool needs one: "Connecting to the Chrome DevTools MCP server on its own will not automatically start the browser" (README).

## What does Chrome DevTools MCP send by default, and how do I turn it off?

Chrome DevTools MCP sends usage statistics by default, and some performance tools send page URLs to an outside API. Both can be switched off.

- **Usage statistics.** The README says the maintainers collect "usage statistics (such as tool invocation success rates, latency, and environment information)" and that "Data collection is **enabled by default**". Opt out with `--no-usage-statistics`. Collection is also disabled if the `CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS` or `CI` environment variable is set.
- **Field data lookups.** The README says performance tools may send trace URLs to the Chrome User Experience Report (CrUX) API, to show field data beside lab data. Turn this off with `--no-performance-crux`.
- **Update checks.** The server "periodically checks the npm registry for updates"; set `CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS` to stop it.

For an agent that browses customer or internal pages, turn all three off.

## How does Chrome DevTools MCP handle the browser profile?

Chrome DevTools MCP reuses one persistent profile by default. Its advanced usage guide says the default user data directory is `$HOME/.cache/chrome-devtools-mcp/chrome-profile` on Linux and macOS, that it "is not cleared between runs", and that "Only one browser can use it at a time" ([advanced usage guide](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/advanced-usage.md), read 2026-11-26).

`--isolated` "creates a temporary user-data-dir that is automatically cleaned up after the browser is closed". Use it for agents, and use `--userDataDir` only when a task needs a long-lived login; see [a persistent profile for a browser agent](https://www.aiagentsandbox.io/persistent-browser-profile-for-ai-agents/).

## Should an agent connect to an already running Chrome?

An agent should connect to an already running Chrome only if that browser was started for the agent, with its own profile. There are two ways, and both have warnings in the guide:

1. **`--browserUrl`** connects to a Chrome started with `--remote-debugging-port`. The guide warns: "Any application on your machine can connect to this port and control the browser." Chrome also requires a non-default `--user-data-dir` with that switch; Chrome's team explained the change by noting "an increase in attackers using Chrome Remote Debugging to extract cookies" ([Chrome remote debugging changes](https://developer.chrome.com/blog/remote-debugging-port), read 2026-11-26).
2. **`--autoConnect`** connects to a Chrome the user is already running (Chrome 144 or later), after a permission dialog. The guide says it connects to "the default profile" and "has access to all open windows for the selected profile". That is a person's real browser; do not use it for unattended agents.

## How do I lock Chrome DevTools MCP down for an agent?

Lock Chrome DevTools MCP down by starting it isolated, limiting where the browser may go, and turning off tools the agent does not need. This example uses only options from the configuration guide; the URL pattern is a placeholder for your own site:

```json
{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": [
        "-y",
        "chrome-devtools-mcp@1.14.0",
        "--headless",
        "--isolated",
        "--no-usage-statistics",
        "--no-performance-crux",
        "--allowedUrlPattern=https://app.example.com/*",
        "--javascriptEvaluation=false",
        "--fileNavigations=false",
        "--redactNetworkHeaders=true",
        "--proxyServer=http://egress-proxy:3128",
        "--viewport=1280x720"
      ]
    }
  }
}
```

Read the guide's own limits before relying on any of these:

- `--allowedUrlPattern` "Requires Chrome 149+". `--blockedUrlPattern` works on earlier versions. Both reject patterns that would not be enforced on redirects or subresources.
- `--javascriptEvaluation=false` disables the evaluation tools, but "This is not a JavaScript sandbox: page scripts and JavaScript triggered through other permitted browser interactions (e.g. clicks or typing) still run".
- `--fileNavigations=false` "is not a filesystem sandbox"; the guide says "Use OS sandboxing for full filesystem confinement".
- File tools are limited to the OS temp directory when the client does not negotiate roots, unless `--allowUnrestrictedPaths` is set. Leave it unset.
- The configuration file can change all of the above, so "Ensure that the configuration file and its parent directory are not writable by the agent."

The README's own disclaimer is the summary: the server "exposes content of the browser instance to the MCP clients allowing them to inspect, debug, and modify any data in the browser or DevTools". Run it in a disposable environment and enforce network rules outside the browser, as in [restricting a browser agent's network access](https://www.aiagentsandbox.io/restrict-browser-agent-network-access/).

## When should I pick Chrome DevTools MCP over Playwright MCP?

Pick Chrome DevTools MCP when the agent's job is to debug or measure a page in Chrome: performance traces, Lighthouse audits, memory snapshots or console errors with source maps. Pick [Playwright MCP](https://www.aiagentsandbox.io/what-is-playwright-mcp/) when the job is plain task automation, needs Firefox or WebKit, or needs a saved login loaded into an isolated session. Our [side-by-side comparison](https://www.aiagentsandbox.io/playwright-mcp-vs-chrome-devtools-mcp/) has the details.

## What we read for this article

- [Chrome DevTools MCP README](https://github.com/ChromeDevTools/chrome-devtools-mcp), read 2026-11-26
- [Chrome DevTools MCP configuration guide](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/configuration.md), read 2026-11-26
- [Chrome DevTools MCP advanced usage guide](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/advanced-usage.md), read 2026-11-26
- [Chrome DevTools MCP tool reference](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/tool-reference.md), read 2026-11-26
- [npm registry entry for chrome-devtools-mcp](https://registry.npmjs.org/chrome-devtools-mcp/latest), read 2026-11-26
- [Chrome remote debugging changes](https://developer.chrome.com/blog/remote-debugging-port), read 2026-11-26

## FAQ

### Is Chrome DevTools MCP the same as Playwright MCP?

No. Both are open-source MCP servers that give an agent a browser and an accessibility-tree snapshot. Chrome DevTools MCP is built on Puppeteer and adds DevTools features such as performance traces and memory snapshots; Playwright MCP is built on Playwright and supports more browser engines.

### Does Chrome DevTools MCP work with Chromium or other browsers?

Its README says it officially supports Chrome and Chrome for Testing only. Other Chromium-based browsers may work but are not guaranteed.

### Does Chrome DevTools MCP send data anywhere?

By default it collects usage statistics, and its performance tools may send trace URLs to the Chrome User Experience Report API. Pass --no-usage-statistics and --no-performance-crux, or set the documented environment variables, to turn both off.

### Where does Chrome DevTools MCP keep the browser profile?

In $HOME/.cache/chrome-devtools-mcp/chrome-profile on Linux and macOS, reused between runs and not cleared. Pass --isolated for a temporary profile that is deleted when the browser closes.
