Chrome DevTools MCP is Google's official server that gives an AI coding agent a real Chrome browser to drive, so it can inspect the live DOM, read console errors, trace network requests, and measure performance instead of guessing from your description. At more than 46,000 stars it is one of the most popular MCP servers going, and setup is a single config block in your agent's MCP settings. This tutorial connects it to Claude Code, Codex, or any MCP client.
- It hands an agent a real Chrome via the DevTools Protocol: live DOM, console, network, performance.
- Setup is one MCP config block or a single
mcp addcommand; it runs throughnpx. - Requirements are minimal: Node.js LTS, Chrome, and npm, all of which most developers already have.
- It is official from the Chrome DevTools team, Apache-2.0; a
--slimmode trims it for basic tasks.
What is Chrome DevTools MCP and why does it matter?
MCP, the Model Context Protocol, is the standard way coding agents plug into external tools. This server exposes Chrome's own DevTools to an agent: it can open pages, click and type, read the console, capture network activity, and run performance traces, using the same protocol that powers the DevTools you open with F12. That closes a real gap. Front-end and web debugging are hard for an agent that can only read source, because the bug often lives in runtime state, a console error, a failed request, a layout that only breaks in the browser. Giving the agent eyes on the running page turns "describe your bug to me" into "let me go look." Being an official Google project, it is also a trusted reference implementation for browser automation over MCP.
RelatedStrix Setup: Run an AI Penetration Tester on Your Code
How do you connect it to your agent?
You need Node.js LTS, Chrome, and npm. The universal method is an MCP config block; the server is always pulled fresh via npx:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
}
}
}
Most clients have a one-line shortcut that writes that config for you:
# Claude Code
claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest
# Codex
codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
For lighter, headless browser tasks, run it in slim mode:
"args": ["-y", "chrome-devtools-mcp@latest", "--slim", "--headless"]
What are the gotchas?
Three. Usage statistics are on by default: the server reports tool success rates and environment info to Google, and you opt out by adding --no-usage-statistics to the args (or setting the CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS env var). Chrome must actually be installed; the server drives your local Chrome, not a bundled one. And by default it launches a fresh Chrome with a clean profile, so if the agent needs to work on a page behind a login, you start Chrome yourself with remote debugging and point the server at it with --browser-url, since some sites block sign-in on WebDriver-controlled browsers.
RelatedSet Up OpenAI Codex Inside Claude Code
What can an agent actually do with it?
Concretely, a browser turns a whole class of "I cannot help without seeing it" moments into work the agent can finish on its own. Ask it to fix a layout that breaks only in the browser, and it can open the page, read the computed styles, and confirm the fix visually instead of guessing at CSS. Report a feature that throws an error, and it can reproduce the click path, capture the console stack trace, and trace the failing network request to the exact bad response. Complain that a page feels slow, and it can run a performance trace and point at the specific long task or oversized asset. It can also drive multi-step flows, filling forms, navigating, and checking the result, which is the basis for agent-run end-to-end tests. The common thread is runtime truth: source code tells the agent what should happen, and a real browser tells it what actually happens. Closing that gap is why front-end debugging, historically an agent's weakest area, becomes tractable with this server attached.
- Agent front-end skills. Whether browser access meaningfully lifts agents' web-debugging success.
- Standardization. How much this official server shapes other browser-MCP tools.
- Auth workflows. How smooth connecting to a logged-in Chrome becomes.
Our take
This is one of the more consequential MCP servers because it fixes a specific, real weakness: agents are strong at reading and writing code and weak at anything that only reveals itself in a running browser. Handing them the actual DevTools, from the team that builds DevTools, is the right answer, and the npx-based setup means there is almost nothing to install. The one thing to do on day one is decide on telemetry: add --no-usage-statistics if you would rather not send data to Google. For anyone whose agent touches front-end work, this belongs in the MCP config.
- OfficialChromeDevTools/chrome-devtools-mcp repository and README
- ReferenceModel Context Protocol the MCP standard
- ReferenceChrome for Developers DevTools Protocol background
Original analysis by GenZTech. Tool documentation: ChromeDevTools/chrome-devtools-mcp on GitHub.
