
chrome-devtools-mcp
Chrome DevTools as an MCP server for AI coding agents
Replaces Browserbase

Who it's for
Agents can navigate to a rendered component, take a screenshot, check the console for errors, and run a Lighthouse accessibility audit in the same session that generated the code fix. The feedback loop that normally requires manual browser checks becomes part of the agent's own task completion.
If your codebase is purely server-side or CLI-based and produces no browser output, this tool adds no value. Browser-facing verification only matters when there is a browser interface to check.
Chrome DevTools for agents can emulate geolocations, responsive breakpoints, and user interactions using Puppeteer-based automation. An agent can script a multi-step user flow (navigate, click, form submit, verify result) and verify it against a live Chrome session rather than a mocked environment.
If your QA pipeline already uses dedicated browser automation tools (Playwright, Selenium grid) with an established reporting layer, adding a second MCP-based browser automation path may create overlap rather than reducing work.
Running Lighthouse audits through the MCP interface lets coding agents catch Core Web Vitals regressions before a pull request is merged. An agent can record a performance trace after applying an optimization and report findings without a developer switching to the DevTools UI manually.
If your CI pipeline already runs Lighthouse via a dedicated step (lighthouse-ci, Vercel speed insights), adding the MCP path duplicates that check without adding meaningful signal. The MCP path is most useful when the agent itself is making the optimization decisions.
The problem
AI coding agents can generate and modify code but cannot see what that code actually produces in a browser. Without browser access, an agent testing a UI fix cannot verify the layout, check accessibility compliance, or confirm that a network request is handled correctly. The gap forces developers to manually re-run every browser check that an agent should be able to handle itself. Bridging that gap with a cloud browser service introduces data privacy risks and per-session API costs that grow quickly in active development. Teams either accept the overhead of manual verification or pay for a managed browser-in-the-cloud that routes potentially sensitive application traffic through third-party infrastructure.
How it works
Connects to a live Chrome instance through Puppeteer and exposes browser actions as MCP tools. Any MCP-compatible coding agent (Claude Code, Gemini CLI, Cursor, Copilot) can navigate URLs, interact with buttons, fill forms, and read page state without leaving its tool-calling loop. Chrome starts automatically on first use.
Uses Chrome DevTools to record performance traces and extract actionable insights, including Core Web Vitals indicators. The tool can optionally pull field data from the Chrome User Experience Report (CrUX) API to show real-user metrics alongside lab measurements. Disable CrUX with the --no-performance-crux flag.
Runs Lighthouse audits directly from the MCP tool interface, returning accessibility, SEO, and performance checklists an agent can act on before code is pushed. This gives coding agents a proactive QA step: find and fix low-contrast elements, missing alt text, or slow page metrics before shipping.
Analyzes network requests, captures browser console messages, and reads stack traces with source mapping applied. Source-mapped traces translate minified output back to original file locations, so an agent debugging a production bundle can identify the exact source line that triggered an error.
Takes screenshots of the current browser state so an agent can verify that a layout renders correctly, responsive breakpoints behave as expected, or a UI change does not break adjacent elements. Useful for automated visual QA without a separate screenshot service.
Features
- Live Chrome browser control via MCP
- Performance trace recording and insights
- Lighthouse audits for A11y, SEO, and performance
- Advanced network and console debugging
- Screenshot capture for visual verification
How to install
Server setup requires Node.js LTS and a current Chrome installation; add the package to your MCP client config file to connect your coding agent to DevTools.
npm install -g chrome-devtools-mcpRecommended for this setup
Strengths
- Apache-2.0 license with no usage restrictions: The Apache-2.0 license places no restrictions on commercial use, modification, or distribution. Developers can run it on their own servers, embed it in internal tooling, and use it in production pipelines without licensing fees. Unlike proprietary browser automation services, there are no per-session fees or data-sharing agreements.
- Official Google Chrome team origin: Maintained by the ChromeDevTools organization, the same team that builds Chrome DevTools. This means the MCP server tracks Chrome's own capabilities directly, supports the latest Extended Stable Chrome version, and receives fixes from Google engineers. The project has over 50,000 GitHub stars and is the reference implementation for browser agent tooling.
- Runs locally: no cloud data routing: Chrome DevTools for agents operates against a Chrome installation on the same machine as the coding agent. No application traffic is routed through third-party cloud infrastructure. Sensitive local development data (credentials, internal APIs, staging environments) stays on the developer's own machine.
- Slim mode for lightweight browser tasks: The --slim flag loads a reduced tool set for basic browser tasks that do not need the full DevTools feature surface. Slim mode reduces startup overhead and is suitable for agents that primarily navigate and screenshot without needing performance traces or advanced debugging.
Trade-offs
- Google Chrome only: other Chromium browsers unsupported: The package officially supports Google Chrome and Chrome for Testing. Other Chromium-based browsers (Brave, Edge, Arc) may work but are not guaranteed to, and unexpected behavior can occur. Teams that standardize on a non-Chrome browser need to maintain a separate Chrome installation for the MCP server.
- Usage statistics sent to Google by default: Google collects tool invocation success rates, latency, and environment information by default to improve the service. Opting out requires passing the --no-usage-statistics flag in the MCP server args or setting the CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS environment variable. CI environments have statistics disabled automatically via the CI env variable.
- Browser content exposed to the MCP client: The MCP server gives the connected coding agent the ability to inspect, debug, and modify any data in the browser or DevTools. Avoid using it with browser sessions that hold sensitive personal information you would not want shared with the MCP client. Do not reuse authenticated sessions with confidential credentials while the MCP server is active.
Tech stack
FAQ
Yes. The project is Apache-2.0 licensed and runs against your own Chrome installation with no per-session fees. There is no managed cloud tier; the tool runs entirely on your own machine. The only cost is the compute used by your local Chrome instance.
The package officially supports Claude Code (via plugin install), Gemini CLI (as an extension), Codex (via mcp add), and any other MCP-compatible coding agent that accepts a standard MCP server config. Cursor, Copilot, and OpenCode are also mentioned in the documentation, with setup instructions in the GitHub repository.
Officially, no. The project supports Google Chrome and Chrome for Testing only. Other Chromium-based browsers may work but are unsupported, and unexpected behavior is documented as possible. Maintain a dedicated Chrome installation alongside your primary browser if needed.
Browserbase is a paid cloud service that provides managed browser sessions for AI agents, billed per session with no self-hosting option. Chrome DevTools for agents provides equivalent browser access locally, using your own Chrome installation with no cloud billing. The tradeoff is that Browserbase handles scalability and session management across distributed agents; Chrome DevTools for agents runs on a single machine.
Pass --no-usage-statistics in the MCP server args, or set the CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS environment variable to any value. Statistics are also automatically disabled in CI environments when the CI environment variable is set.