Chrome DevTools MCP Public Preview: Give AI Coding Agents Real Browser Control

What Chrome DevTools MCP Does

Google has published a public preview of Chrome DevTools MCP, a Model Context Protocol (MCP) server that lets AI coding agents control and inspect a real Chrome instance. Agents connected via MCP can record performance traces, inspect the DOM and CSS, execute JavaScript, read console output, and automate user flows in a live browser. This addresses a common limitation of code-generating agents: the inability to observe runtime behavior of the pages they create or modify.

How MCP Connects AI to DevTools

MCP is an open protocol designed to connect large language models and other agents to external tools and data sources. The DevTools MCP server exposes Chrome’s debugging surface as an MCP-compatible toolset. That enables agents to run concrete workflows such as starting a performance trace against a URL, analyzing the trace data, and suggesting targeted optimizations—examples include diagnosing a high Largest Contentful Paint or locating layout shifts.

Capabilities and Tool Surface

The official repository documents a wide range of operations. Beyond performance tracing primitives (performance_start_trace, performance_stop_trace, performance_analyze_insight), agents can:

Under the hood the server uses Puppeteer for robust automation and waiting semantics, and it communicates with Chrome via the Chrome DevTools Protocol (CDP).

Installation and Integration

Setup for MCP clients is intentionally simple: Google recommends adding a short config stanza that shells out to npx and tracks the latest server build. The repository shows this snippet:

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

The server integrates with several agent front ends, including Gemini CLI, Claude Code, Cursor, and GitHub Copilot’s MCP support. For example, VS Code/Copilot users can add the server with a one-liner, and Claude Code offers a similar claude mcp add command targeting the same npx package. The package targets Node.js ≥22 and a current Chrome install.

Example Agent Workflows

Google highlights practical prompts that demonstrate closed loops between suggestion and validation. Agents can now:

These workflows let agents validate changes with real telemetry instead of relying on heuristics.

Why This Matters

Chrome DevTools MCP’s public preview grounds AI assistants in actual browser telemetry—performance traces, DOM/CSS state, network and console data—so recommendations become measurement-driven. That should shorten diagnose-fix loops for regressions and flaky UI flows and help engineers validate performance work more tightly.

For technical details and the repository, see the Chrome DevTools blog and the project GitHub page.