# Chrome DevTools MCP

> An MCP server that gives a coding agent the full power of Chrome DevTools against a live browser

- Category: Agents & Automation / Computer & Browser Use
- Language: TypeScript
- Licence: Apache-2.0
- Repository: https://github.com/ChromeDevTools/chrome-devtools-mcp
- Website: https://developer.chrome.com/docs/devtools/agents
- Canonical page: https://ai-tldr.dev/tools/chrome-devtools-mcp/
- Updated: 2026-11-11

## In short

Chrome DevTools MCP is the Chrome team's official Model Context Protocol server for coding agents. It sits in the Computer & Browser Use category of the Agents & Automation tools and is open-source, written in TypeScript and licensed Apache-2.0. To get started: add it to your MCP client.

## Overview

Chrome DevTools MCP is the Chrome team's official Model Context Protocol server for coding agents. It lets an agent such as Claude, Cursor, Copilot or Antigravity control and inspect a live Chrome browser, exposing the capabilities developers normally reach for in DevTools: recording performance traces, analysing network requests, taking screenshots, and reading console messages with source-mapped stack traces. A CLI is also provided for use without MCP.

Automation runs through Puppeteer, so actions wait for their results rather than racing the page — the practical difference between an agent that reliably clicks a button and one that clicks before the page settles. Performance work goes further than screenshots: the server records real DevTools traces and extracts actionable insights, and can optionally fetch field data from the Chrome User Experience Report to sit alongside the lab measurements (disabled with `--no-performance-crux`).

The project is explicit about its boundaries. It exposes the browser's contents to the MCP client, which can inspect, debug and modify anything in the browser or DevTools, so it warns against pointing it at sessions holding data you would not share. It officially supports Google Chrome and Chrome for Testing only. Usage statistics are collected by default and opt out with `--no-usage-statistics` or the CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS environment variable.

## What it does

- Records Chrome DevTools performance traces and extracts actionable insights, optionally alongside CrUX field data
- Network request analysis, screenshots, and console messages with source-mapped stack traces
- Puppeteer-backed automation that waits for action results, making agent-driven browser steps reliable
- A `--slim` mode that exposes a reduced tool set for basic browser tasks, and `--headless` for CI-style runs
- Logpoints that print an expression at a source location without pausing the page, and opt-in network mocks (`--categoryNetworkMocks`) that abort, replace or re-route a page's requests
- A standalone CLI for using the same capabilities without an MCP client
- Opt-out switches for usage statistics, CrUX lookups and npm update checks

## Getting started

You need a current Node.js LTS, npm, and a current stable (or newer) Chrome. There is nothing to install ahead of time — the MCP client runs the server through npx.

1. Add it to your MCP client

   Drop this into your client's MCP server config. Pinning to @latest keeps the client on the newest published server.

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

2. Or run it slim and headless

   If you only need basic browser tasks, --slim exposes a reduced tool set; --headless runs Chrome without a visible window.

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

3. Check it works

   Enter this prompt in your MCP client — the agent should launch Chrome, record a trace and report performance insights.

```text
Check the performance of https://developers.chrome.com
```

4. Turn off usage statistics

   Data collection is enabled by default. Pass the flag, or set the environment variable; collection is also disabled automatically when CI is set.

```json
"args": ["-y", "chrome-devtools-mcp@latest", "--no-usage-statistics"]
```

## When to use it

- Ask a coding agent to profile a slow page and hand back DevTools-grade performance insights instead of guesses
- Let an agent reproduce a bug in a live browser and read the console error with a source-mapped stack trace
- Debug failing network calls by having the agent inspect the real requests a page makes
- Give an agent reliable browser automation for end-to-end checks, with Puppeteer waiting on each action

## Version history

- 2026-11-11 v1.13.0: Adds logpoints, built on the DevTools BreakpointManager, that log an expression at a source location and survive reloads. Also adds page-scoped network mocks that can abort requests, serve a local file or fetch from an upstream URL; they are off unless --categoryNetworkMocks is set.
- 2026-07-03 v1.5.0: Adds two memory-analysis tools for AI agents — get_heapsnapshot_duplicate_strings for spotting string-interning leaks, and heap-snapshot comparison for diffing memory between runs. Directory permissions were hardened to 0o700.
