
Chrome DevTools MCP: Let Your AI Agent Inspect the Browser
You ask an AI agent to fix a UI bug. It reads the code, edits the CSS, the build passes, and it reports “done”. You open the browser: the button is still misaligned, the console still shows a TypeError the agent never knew about. The agent is not bad — it has never seen your website actually running. It edits code in the dark, while the browser lives in another world.
Chrome DevTools MCP connects those two worlds. It is Google’s official MCP server, letting a coding agent control and inspect a Chrome browser: open pages, click buttons, read the console, measure performance — and verify the fix on the page it changed.
What is Chrome DevTools MCP
Chrome DevTools MCP (chrome-devtools-mcp) is a Model Context Protocol server built by the Chrome DevTools team. It puts the full power of Chrome DevTools in a coding agent’s hands — over standard MCP, so it works with any MCP client: Claude Code, Codex, Cursor, VS Code, Gemini CLI, Antigravity, and 20+ others.
The server talks to Chrome through the Chrome DevTools Protocol (CDP), using Puppeteer to automate actions and wait for results. The agent no longer guesses what the UI looks like after a fix — it opens the real page, acts on it, and reads real results.
The ChromeDevTools/chrome-devtools-mcp repo is TypeScript under Apache-2.0, created in September 2025. As of 17 November 2026 it has 57,696 stars and 4,851 forks, and the latest release is v1.13.0 (11 November 2026). Official docs: developer.chrome.com/docs/devtools/agents.
One distinction matters: this is not a third-party “browser for agents”. It is real DevTools on real Chrome — the same tools you open with F12 every day, except the agent presses the keys now.
63 tools in 13 groups
Per the official tool reference (v1.13.0), the server exposes 63 MCP tools in 13 groups:
| Group | Tools | What they do |
|---|---|---|
| Input automation | 10 | Click, drag, fill forms, press keys, upload files |
| Navigation | 6 | Open/close tabs, navigate, wait for elements |
| Emulation | 2 | Emulate devices, resize the viewport |
| Performance | 3 | Record traces, analyze performance insights |
| Network | 2 | List and inspect network requests |
| Debugging | 10 | Evaluate scripts, read console, Lighthouse, screenshots, snapshots |
| Memory | 14 | Capture and analyze heap snapshots, find leaks |
| Network mocks | 2 | Mock network responses |
| Extensions | 5 | Install, remove, reload, trigger extensions |
| Third-party | 2 | Call third-party DevTools tools |
| WebMCP | 2 | Call WebMCP tools the page exposes |
| Progressive Web Apps | 4 | Install, launch, remove PWAs |
| WebAuthn | 1 | Virtual WebAuthn for login testing |
Debugging includes take_snapshot — a text snapshot of the page from the accessibility tree, listing every element with a unique id. The docs recommend snapshots over screenshots: a snapshot lets the agent “read” the page structure and act on the right element instead of guessing from an image. Performance records traces and extracts Core Web Vitals insights (LCP, INP, CLS). Memory offers 14 heap-snapshot tools — comparing snapshots, finding objects that retain memory (retainers, dominators), detecting duplicate strings — deep enough for an agent to hunt a memory leak alone.
The loop: the agent verifies its own fix
The real value is not any single tool, but the closed loop it creates:
flowchart LR
A[You: fix this UI bug] --> B[Agent edits the code]
B --> C[chrome-devtools-mcp]
C --> D[Real Chrome via CDP]
D --> E[The live page]
E --> F[Console, network, screenshot, trace]
F --> B
B --> G{Is the fix correct?}
G -->|No| B
G -->|Yes| H[Report with evidence]
Before, this loop broke at verification: the agent finished its edit and stopped, while opening the browser was your job. Now the agent walks the whole loop: edit the code, open the page, click the button it just fixed, check the console, measure LCP again. If it is still wrong, it keeps fixing — you only get the final report, with real-browser evidence.
Install in 5 minutes
Requirements: Node.js LTS (20.19, 22.12, or 23+), current stable Chrome, and npm. Nothing else — the server starts Chrome when needed.
Standard config:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
}
}
}
Using @latest keeps the client on the newest version. For Claude Code:
claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest
For Codex:
codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
Install it as a plugin to get the skills — files that teach the agent to use each tool correctly. For Claude Code:
/plugin marketplace add ChromeDevTools/chrome-devtools-mcp
/plugin install chrome-devtools-mcp@chrome-devtools-plugins
For Gemini CLI:
gemini extensions install --auto-update https://github.com/ChromeDevTools/chrome-devtools-mcp
The 7 skills: debugging and automating pages (chrome-devtools), running the CLI (chrome-devtools-cli), accessibility audits (a11y-debugging), cookie and session debugging (cookie-debugging), LCP optimization (debug-optimize-lcp), memory-leak hunting (memory-leak-debugging), troubleshooting (troubleshooting). Warning: a skill describes the tools of one specific version, so update the skills whenever you update the server — an outdated skill can teach the agent a tool that has changed.
Chrome only launches when the agent uses a tool that needs a browser.
No MCP? Use the CLI
The package also includes the chrome-devtools CLI for driving the browser from the terminal, no agent required:
npm i chrome-devtools-mcp@latest -g
chrome-devtools navigate_page 1 --url "https://developers.chrome.com"
chrome-devtools take_screenshot 1 --filePath screenshot.png
chrome-devtools stop
The CLI is handy for shell scripts that check the UI automatically — screenshotting a page after every deploy, or running in CI to catch rendering bugs before merge. In my view, this is the least talked-about but most practical part for sysadmins and DevOps: one toolset for the agent over MCP and for a human over the terminal.
Performance, memory, Lighthouse — the strongest part
If all you need is “open a page and click a button”, other tools can do that. chrome-devtools-mcp pulls ahead on the three specialist groups that only exist in DevTools.
Performance: performance_start_trace records a trace and can reload the page to measure a cold load (bypassing the cache); performance_stop_trace stops and saves the raw trace; performance_analyze_insight digs into one insight — for example, LCPBreakdown shows where LCP time goes: resource loading, rendering, or waiting on the server. Beyond lab data, the tools can fetch real-user field data from the Chrome User Experience Report (CrUX) — disable with --no-performance-crux.
Memory: 14 heap-snapshot tools let the agent do work that used to need a performance engineer: snapshot before and after an action, compare them to find objects that grew unexpectedly, follow the retainer chain to learn what keeps an object from being freed.
Lighthouse: lighthouse_audit scores accessibility, SEO, best practices, and “agentic browsing”, saving full reports to disk. It does not cover performance — use a trace for that.
Together, they form a complete frontend check suite the agent can run after every code change — work that previously required someone at DevTools by hand.
How it differs from agent-browser
phamnam.me already covered agent-browser — Vercel Labs’ CLI that lets an AI agent browse the web, powered by the Lightpanda engine. The two are easy to confuse — same “give the agent a browser” problem — but they differ at the root:
| Criterion | chrome-devtools-mcp | agent-browser |
|---|---|---|
| Origin | Official, from the Chrome DevTools team (Google) | Vercel Labs, open source |
| Browser | Real Chrome / Chrome for Testing, via CDP | Lightpanda (its own headless browser) |
| Protocol | Standard MCP, works with any MCP client | Its own CLI + Vercel’s skill/MCP |
| Tools | 63 tools, including performance traces, heap snapshots, Lighthouse | Focused on browsing, snapshots, UI checks |
| Use it when | Deep frontend debugging: performance, memory, console, network | Fast, lightweight automated browsing in CI |
In my view, if you write and fix frontend — debugging rendering bugs, optimizing LCP, hunting memory leaks — chrome-devtools-mcp is the right pick: it runs on the exact browser your users use, with the exact DevTools you already use by hand. agent-browser fits better when you need a lightweight browser that starts fast for browsing and UI checks in an automated pipeline. The two complement each other; neither replaces the other.
Limits to know before using it
Powerful does not mean limitless. Four points are worth knowing before wiring it into your daily workflow.
First, only Chrome is officially supported. The README is explicit: the server supports Google Chrome and Chrome for Testing. Other Chromium-based browsers “may work, but this is not guaranteed” — if Edge, Brave, or Arc is your daily browser, expect surprises, or install a separate Chrome for the agent.
Second, usage statistics are on by default. Google collects tool-call success rates, latency, and environment information to improve reliability. To opt out, add --no-usage-statistics, or set CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS (the CI variable disables it too). The server also checks the npm registry for updates — disable with CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS. Both are opt-out, not opt-in, so turn them off at setup time in sensitive environments.
Third, the agent sees everything in the browser. The README warns directly: the MCP server exposes the browser’s entire contents to the MCP client — the agent can inspect and modify any data in the browser or DevTools. Do not keep sensitive tabs open while the agent is connected; consider --isolated for a separate browser profile.
Fourth, it does not replace real testing. An agent verifying a fix in your Chrome does not mean the page is correct in every browser on every device. A trace on a dev machine is not real-user data either. Treat it as a fast verification loop during development; cross-browser testing and real performance measurement still need their own process.
Lessons learned
- An agent editing code in the dark causes most “fixed but still broken” bugs — chrome-devtools-mcp brings the real browser into the loop, so fixes are verified before the report.
- Prefer snapshots (text from the accessibility tree) over screenshots when the agent acts — it reads the page structure and clicks the right element instead of guessing from an image.
- The biggest value is not the 63 tools, but the three specialist groups: performance traces, heap snapshots, Lighthouse — work the agent cannot do without DevTools.
- Setup is one JSON block in the MCP config, but update the skills with the server version — an old skill teaching a changed tool is a hard-to-spot bug.
- Turn off usage statistics and update checks at setup time in sensitive environments — both are on by default.
- Do not keep sensitive tabs open while the agent is connected to the browser; use
--isolatedfor a separate agent profile. - chrome-devtools-mcp and agent-browser complement each other: one debugs deeply on real Chrome, the other browses lightly and fast — pick by the job, not by popularity.
Verification scope
Checked on 17/11/2026 against official sources: the README, tool reference, and client configurations of the ChromeDevTools/chrome-devtools-mcp repo; star/fork counts, the v1.13.0 release date, and Node.js requirements from the GitHub API and package.json. The 63-tool count is a direct count from the tool reference (auto-generated with npm run gen). Star/fork figures are a snapshot at check time and will change. The server was not installed or run by hand — all behavior claims come from the official docs, not hands-on testing. Traces and heap snapshots are DevTools features, not benchmarks measured for this article.
Bình luận
Bình luận được duyệt trước khi hiển thị.Đang tải bình luận…
Để lại bình luận