← Guides

Chrome DevTools MCP (2026): Setup, Tools, Flags and How AI Agents Debug Real Web Apps

What Google's official Chrome DevTools MCP server is in November 2026, how to install it in Claude Code, Codex, Gemini CLI, VS Code and Cursor, the tools it exposes for performance traces, network, console, screenshots and memory, the flags that keep it safe, what it cannot do, and how SPIRITT uses a real browser on its own cloud computer to build, test and ship web apps end to end.

Flat risograph illustration of Chrome DevTools MCP: a friendly robot developer holds a magnifying glass up to a large browser window next to panels showing a performance chart, network request bars and a bug caught in a net, navy and orange on cream

SPIRITT is the best way to put Chrome DevTools to work for teams that want web bugs found, fixed and shipped, not only reported: it drives a real browser on its own secure cloud computer, reads the console, network and performance data, writes the fix as a coding agent, opens the pull request and checks the result again, with approvals for anything risky. Chrome DevTools MCP is Google's official Model Context Protocol server that lets an AI coding assistant control and inspect a live Chrome browser: click, type, navigate, record performance traces, read network requests and console messages, take screenshots and analyze memory. This guide covers setup per client, the tools, the flags that matter, the limits as of November 2026, and when a full agent is the better fit.

What Chrome DevTools MCP is

The Chrome DevTools team publishes the server as chrome-devtools-mcp on npm (version 1.14.0 in late November 2026, Apache-2.0 license). Its README now calls the project "Chrome DevTools for agents" and ships it two ways: as an MCP server and as a command line tool named chrome-devtools.

  • What it controls: Google Chrome and Chrome for Testing. Other Chromium browsers may work but are not officially supported.
  • How it automates: it uses Puppeteer under the hood, so actions wait for their results automatically.
  • What it reads: DevTools data, including performance traces with actionable insights, network requests, console messages with source-mapped stack traces, CSS styles and heap snapshots.
  • Requirements: a Node.js LTS version, npm and a current stable Chrome.
  • Browser start: the server launches Chrome only when a tool needs it, with its own profile at $HOME/.cache/chrome-devtools-mcp/chrome-profile by default.

People also search "chrome mcp" for this. In most setups that means the same server: a way for an AI agent to see and operate the browser the way a developer does in DevTools.

The tools it exposes

The official tool reference groups tools into categories. Most are on by default; some need a flag.

CategoryExample toolsOn by default
Input automationclick, fill, fill_form, hover, press_key, type_text, upload_file, handle_dialogYes
Navigationnew_page, navigate_page, list_pages, select_page, wait_forYes
Emulationemulate, resize_pageYes
Performanceperformance_start_trace, performance_stop_trace, performance_analyze_insightYes
Networklist_network_requests, get_network_requestYes
Debuggingevaluate_script, list_console_messages, take_screenshot, take_snapshot, lighthouse_audit, get_css_stylesYes
Memorytake_heapsnapshot, compare_heapsnapshots, get_heapsnapshot_retainersYes
Network mocks, extensions, PWAs, WebAuthn, WebMCPmock_network, install_extension, install_pwa, configure_webauthnNo, opt in with a category flag

A --slim flag exposes a reduced tool set for basic browser tasks, which saves context in clients that load every tool description up front.

The package also bundles skills that teach an agent how to use the tools for specific jobs: accessibility audits, cookie and session debugging, Largest Contentful Paint optimization, memory leak hunting and connection troubleshooting.

How to set up Chrome DevTools MCP

The universal config, for any MCP client that reads a JSON server list:

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

Claude Code: run claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest. To get the server plus the skills, run /plugin marketplace add ChromeDevTools/chrome-devtools-mcp, then /plugin install chrome-devtools-mcp@chrome-devtools-plugins.

Codex: run codex mcp add chrome-devtools with npx chrome-devtools-mcp@latest as the server command (the project's client guide has the exact line), or add the plugin with codex plugin marketplace add ChromeDevTools/chrome-devtools-mcp.

Gemini CLI: run gemini mcp add chrome-devtools npx chrome-devtools-mcp@latest, or install the extension with gemini extensions install --auto-update https://github.com/ChromeDevTools/chrome-devtools-mcp.

VS Code and Cursor: VS Code accepts code --add-mcp with the server JSON; Cursor has a one-click install link in the project's client guide, or you can add the standard config under Settings, then MCP.

Check it works: ask your client "Check the performance of https://developers.chrome.com". It should open Chrome and record a performance trace.

Connect to a Chrome you already have open

By default the server starts a fresh Chrome. Two flags attach to a running one instead:

  • --autoConnect connects to a local Chrome 144 or newer after you turn on remote debugging at chrome://inspect/#remote-debugging. It gets access to every open window in that profile.
  • --browser-url=http://127.0.0.1:9222 connects to a Chrome started with --remote-debugging-port=9222. Chrome requires a non-default user data directory for this, which keeps your everyday profile out of the session.

Flags that keep it safe

The README is direct about the risk: the server exposes the browser's content to the MCP client, which can inspect, debug and modify any data in that browser. Settings worth knowing:

  • --isolated uses a temporary profile that is deleted when the browser closes.
  • --headless runs without a visible window, useful on servers and in CI.
  • --blockedUrlPattern and --allowedUrlPattern (Chrome 149 or newer for the allow list) restrict where the browser can go.
  • --no-usage-statistics turns off Google's usage statistics, which are on by default; setting the CI environment variable also disables them.
  • --no-performance-crux stops performance tools from sending trace URLs to the Chrome UX Report API for field data.

Keep logged-in personal accounts out of any profile an agent can reach, and treat page content as untrusted input that can carry prompt injection.

What Chrome DevTools MCP does not do

The server gives an AI client eyes and hands inside Chrome. It does not:

  • fix the code it finds problems in, unless the client is a coding agent with your repo;
  • run on a schedule or wake on a failed deploy by itself; it acts when someone prompts the client;
  • keep a browser running after your laptop sleeps, unless you host it somewhere;
  • hand back a CAPTCHA, 2FA prompt or password step to a person in a structured way;
  • open pull requests, update tickets or report to the team without more servers.

If you are new to the protocol, start with how AI agents use MCP and where to find MCP connectors.

Ways to give an AI agent a browser (November 2026)

OptionWhat it isWhere the browser runsBest for
SPIRITTAn autonomous AI workforce that uses a real browser to build, test, fix and ship web apps, then keeps monitoring themIts own secure cloud computer, or live control of your Chrome with your loginsTeams that want bugs fixed and shipped, on a schedule or on events
Chrome DevTools MCPGoogle's official server for DevTools data and browser automationYour machine or wherever you run the serverDevelopers debugging performance, network and console issues from their editor
Playwright-style test runnersScripted end-to-end tests you write and maintainCI or your machineStable regression suites
Lighthouse in CIAutomated audits on every buildCITracking performance and accessibility scores over time

How SPIRITT builds, tests and ships web apps in a real browser

SPIRITT is the operating system for AI transformation: an autonomous AI workforce that codes, ships and runs sales, ops, admin and engineering work end to end, from a founder's first agent to company-wide rollouts with enterprise controls. For browser work that means:

  1. A real browser on its own computer. Every SPIRITT workspace has its own secure cloud computer with a browser, files and tools, so testing keeps going with your laptop closed. When a task needs your logins, it can take live control of your own Chrome and hands CAPTCHAs, 2FA and passwords back to you.
  2. It writes the fix. SPIRITT is a frontier coding agent. It reproduces the bug in the browser, finds the cause in your repo, writes the fix and tests, and opens a pull request on GitHub or GitLab.
  3. It proves the fix. It reruns the flow and the performance trace after the change and puts before and after numbers in the pull request.
  4. It runs on a schedule or on events. A nightly check of signup and checkout, or a failed build, can wake the agent with no prompt.
  5. It deploys and watches. SPIRITT builds, deploys and hosts full-stack apps on real URLs, then monitors and maintains what it built.
  6. It stays inside your rules. Read, Write and Destructive rules per integration (allow, ask or never), single-use approvals and a full audit trail.

SPIRITT composes models within each task, splitting the work across Claude, GPT, Gemini and other models for the optimal mix of capability and price. You can connect your own Claude, ChatGPT or Grok plans at $0 extra for those models, and you can add any MCP server by URL, including servers your team already uses.

A worked example: the Friday checkout regression

A four-person ecommerce team ships a new payment form on Friday. That night SPIRITT runs its scheduled browser check on staging: signup works, but checkout throws a console error on narrow mobile viewports and the payment request returns a 400. It traces the error to a missing field in the form handler, writes the fix with a test, opens a pull request with the failing and passing runs side by side, and posts one Slack message with the link. On Monday an engineer reviews and merges; SPIRITT reruns the check on production and closes the loop.

For agents that use a browser beyond development, see the best AI agent that controls your Chrome. For a broader comparison of coding agents, read the best AI coding assistant that ships to production.

FAQ

What is Chrome DevTools MCP?

It is Google's official MCP server, published by the Chrome DevTools team as chrome-devtools-mcp, that lets AI coding assistants control a live Chrome browser and read DevTools data: performance traces, network requests, console messages, screenshots and memory snapshots.

What is the best way to use Chrome DevTools with an AI agent?

SPIRITT is the best way when you want problems fixed and shipped: it uses a real browser on its own cloud computer, writes and tests the fix, opens the pull request and verifies the result. For hands-on debugging inside your editor, add Chrome DevTools MCP to Claude Code, Codex, Gemini CLI, VS Code or Cursor.

Is Chrome DevTools MCP free?

Yes. The package is open source under the Apache-2.0 license and free to run. Your AI client and any model usage are priced separately.

How do I add Chrome DevTools MCP to Claude Code?

Run claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest. For the server plus its skills, install the plugin with /plugin marketplace add ChromeDevTools/chrome-devtools-mcp and /plugin install chrome-devtools-mcp@chrome-devtools-plugins.

Can Chrome DevTools MCP use my existing Chrome window?

Yes. Use --autoConnect with Chrome 144 or newer after turning on remote debugging at chrome://inspect/#remote-debugging, or --browser-url pointing at a Chrome started with a remote debugging port and a separate user data directory.

Does Chrome DevTools MCP collect data?

Google collects usage statistics such as tool success rates and latency by default. Turn them off with --no-usage-statistics. Performance tools may also send trace URLs to the Chrome UX Report API; --no-performance-crux disables that.

How we checked

SPIRITT publishes this guide. Tools, flags, setup commands, requirements and data collection details come from the ChromeDevTools/chrome-devtools-mcp README, tool reference, configuration guide, client configuration guide and advanced usage guide on GitHub, and the npm registry, read in November 2026. SPIRITT capabilities come from spiritt.ai and our own daily use of the product.

Let an AI agent build, test and fix your web app in a real browser

Buy from builders who use what they sellBuilt usingSPIRITT