TL;DR
- Chrome's own MCP server. Chrome DevTools MCP is the Chrome DevTools team's official Model Context Protocol (MCP) server, and it gives your coding agent a live Chrome browser for debugging and performance work.
- Pick by the job. Reach for Chrome DevTools MCP to profile a slow page or chase a memory leak in Chrome, and for Playwright MCP when you need Firefox and WebKit coverage or generated test code.
- Local by default. Both servers launch a browser on your machine unless you hand them a WebSocket endpoint, which is how you point the same config at a remote browser once one local Chrome stops being enough.
Introduction
Chrome DevTools MCP exists because coding agents can write front-end code all day but can't see what that code does in a browser. So your agent edits a component, tells you the bug is gone, and you open the page to find the same error still sitting in the console.
The Chrome DevTools team built it so your agent can test in a real Chrome browser and confirm a fix before reporting back. You'll set it up, use it to debug console errors and profile a slow page, compare it with Playwright MCP, and run it on Browserless when one local Chrome isn't enough.
What is Chrome DevTools MCP?
Chrome DevTools MCP is the Chrome DevTools team's server for the Model Context Protocol, the open standard for connecting large language models to external tools. You install it from npm as chrome-devtools-mcp, and that one package gives you both the MCP server and a chrome-devtools CLI. You'll also see it called Chrome DevTools for agents, the README's current name for it.
Chrome's launch post says AI coding assistants without it are "effectively programming with a blindfold on." Under the hood, Puppeteer talks to Chrome over the Chrome DevTools Protocol, the protocol behind the DevTools panel itself.
The project groups its key features into three jobs, each backed by its own set of tools.
- Debugging. The debugging capabilities let your agent analyze network requests, take screenshots, and read console logs with source-mapped stack traces.
- Performance. Your agent records a real Chrome trace, and the server uses DevTools to extract actionable performance insights from it, so you're told what slowed the page down, not handed a trace file.
- Automation. Puppeteer reproduces user behavior like clicking, typing, and moving between pages, and it waits for each action to finish before the next one starts. That automatic waiting is why the README calls it reliable automation.

Before you install it, know that Chrome DevTools MCP gives the connected MCP client full access to the browser, so it can read and change anything in it. Keep personal or sensitive data out of any session you hand to an AI agent.
Chrome DevTools MCP server: requirements and installation
To run the Chrome DevTools MCP server, you need a current Node.js LTS release, the current stable version of Chrome, and npm. Google Chrome and Chrome for Testing are the only officially supported browsers. Other Chromium-based browsers may work, but support isn't guaranteed and you may encounter unexpected behavior.
Your MCP client or AI tool keeps its servers in a JSON configuration file, and Chrome DevTools MCP needs one entry in it that starts the server with npx.
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
}
}
}
With @latest, your client picks up each new release, not just the version you installed first. Adding the server doesn't start Chrome either. The browser only opens when your agent calls a tool that needs a running browser instance.
Adding the server in Claude Code, Claude Desktop, and other MCP clients
In Claude Desktop, open Settings > Developer > Edit Config and paste the entry into claude_desktop_config.json, and in Cursor, add it under Settings > MCP. Claude Code lets you skip the file and register the server from your terminal with claude mcp add, where --scope user makes it available in every project.
claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest
That registers the same npx command for you, and claude mcp list should show chrome-devtools once it's registered. Gemini CLI works the same way with gemini mcp add -s user chrome-devtools npx chrome-devtools-mcp@latest, and in VS Code you can add it with code --add-mcp.
Using the CLI instead of MCP
If your agent is better at terminal commands than MCP tool calls, the same npm package also installs a chrome-devtools CLI. Install it globally, then call each tool by name with a page ID and its arguments.
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
That opens developers.chrome.com in the first tab, saves a screenshot to screenshot.png, and shuts the browser down. The 1 is the page ID. The commands share their names with the MCP tools, so anything your agent does over MCP you can also put in a shell script.
How to check the setup and add Skills to your coding agent
Once the server's in your MCP client, check the setup with the following prompt from the README.
Check the performance of https://developers.chrome.com
Recording a trace needs a running browser, so this one prompt tests the whole chain. If everything's wired up, Chrome opens and your agent reports back on the trace.
The package also ships Skills, which teach your agent how to handle specific jobs. There are skills for debugging and automation, the CLI, accessibility, cookies and sessions, Largest Contentful Paint, memory leaks, and connection troubleshooting.
In Claude Code, add the ChromeDevTools/chrome-devtools-mcp plugin marketplace and run /plugin install chrome-devtools-mcp@chrome-devtools-plugins to get the server and every skill at once.
The plugin brings its own copy of the server, so remove the one you added with claude mcp add first. Update the skills whenever you update the server. Each skill describes one version's tools, and an outdated one can point your agent at changed parameters.
Setting up Chrome DevTools MCP for testing and CI
A test suite needs different settings from poking at a page by hand, and three flags handle the difference. --headless runs Chrome in headless mode with no window, which is what you want in CI, and --isolated gives each run a fresh temporary profile that's deleted when the browser closes.
--slim cuts the automation surface down to three tools, for navigation, JavaScript execution, and screenshots. If a test only needs basic browser actions, that keeps the tool schemas in your agent's context small.
Google collects usage statistics, such as tool success rates and latency, by default. Collection turns itself off when a CI environment variable is set, as it is on GitHub Actions, and anywhere else you can pass --no-usage-statistics to opt out.
How to debug console errors with Chrome DevTools MCP
In a typical loop with the debugging tools, your agent takes a text snapshot of the page, reads the console errors, and runs evaluate_script to execute JavaScript that reads the DOM state or tests its theory. Then it takes another snapshot to check the page changed the way it expected, which means it can verify code it just wrote before telling you it's fixed.
Console errors come with source-mapped stack traces, so they point at the line in your source file, not somewhere in a minified bundle.
For fixing issues that depend on values you can only see at runtime, use logpoints. Your agent sets one to log an expression every time a line runs, without pausing the page or touching the file, so there are no stray console.log calls to clean up.
Debug live styling and accessibility
For layout bugs, get_css_styles gives your agent the matched CSS rules, inline styles, and inherited styles for DOM elements on the live page, and a screenshot shows what a user actually sees. With both, it can debug live styling against what's rendered, not just what the stylesheet says.
lighthouse_audit runs a Lighthouse audit for accessibility, SEO, best practices, and agentic browsing, and lists the DOM nodes behind each failing check. Performance audits are left out, and the tool docs send you to the trace tools instead.
How to inspect network requests with Chrome DevTools MCP
For network inspection, list_network_requests shows the requests the page made since the last navigation, and get_network_request gives you the headers and bodies for any one of them.
Say your agent fills in a form with fill_form, clicks submit, and nothing happens. The request list tells you whether the POST fired at all, the request detail shows its status code and response body, and the console shows any client-side error around it.
Those three usually turn "the form failed" into one thrown error or one of the page's failed network requests. To test how the page copes with a broken API, the opt-in --categoryNetworkMocks flag adds tools that replace or abort matching requests.
What is the easiest method to profile a page with Chrome DevTools MCP?
The easiest method is to let your agent record a trace and then ask it about one insight. performance_start_trace records the trace and can reload the page and stop by itself, performance_stop_trace ends a manual recording, and performance_analyze_insight digs into a single insight.
For performance analysis, a raw Chrome trace is a dense timeline that takes practice to read, but asking about one insight, such as the LCP breakdown or what's blocking render, turns all that performance data into a straight answer. The trace summary also gives you the performance metrics themselves, including Largest Contentful Paint and Cumulative Layout Shift.
Before it records, your agent can use the emulation tools to set a mobile viewport, turn on CPU throttling, or slow the network to a 3G or 4G profile, so the trace reflects the conditions where a page starts loading slowly.
The performance tools can also send the trace URL to the Chrome User Experience Report (CrUX) API and show you real-user field data next to your lab run. If you'd rather trace URLs didn't leave your machine, pass --no-performance-crux.
Memory and heap analysis
take_heapsnapshot is in the default tool set and saves the page's memory state to a file. Start the server with --memoryDebugging and you get 13 more tools that compare two snapshots, show what changed between them, and trace retaining paths back to whatever's holding the memory.
Chasing memory leaks by hand is slow work, and the symptom, a tab that slows down the longer you use it, rarely points at the cause. The memory-leak-debugging skill gives your agent a method for tracking one down with these tools.
Chrome DevTools MCP vs. Playwright MCP
Both servers give your agent browser automation over MCP, and either one can click, type, move between pages, run JavaScript, read console output, and list network requests. Both also describe the page to the model as a text snapshot built from the accessibility tree, so the differences are in everything around that core. Playwright MCP's README argues that accessibility snapshots are more deterministic than screenshots. AI models read structured text about the page instead of interpreting an image.
| Chrome DevTools MCP | Playwright MCP | |
|---|---|---|
| Built by | Chrome DevTools team | Microsoft |
| Browser support | Chrome and Chrome for Testing | Chromium, Chrome, Edge, Firefox, and WebKit |
| Strongest at | Performance traces with insights, heap snapshots, Lighthouse audits | Cross-browser tests and generated test code |
| Opt-in extras | Network mocks, Chrome extensions, web app installs, WebAuthn | Cookie and storage control, test assertions, request routing, PDF output, coordinate-based clicks |
| Code generation | No | Yes, in TypeScript, Python, Java, or C# |
| CLI alternative | Yes, the chrome-devtools CLI | Yes, Playwright CLI with skills |
Reach for Chrome DevTools MCP when you're chasing a slow page, a memory leak, or a performance budget in Chrome, and for Playwright MCP when you need cross-browser coverage, end-to-end flows with assertions, or generated Playwright scripts.
Running Chrome DevTools MCP on Browserless for more than one AI agent
Out of the box, both servers launch a local browser, which gets awkward once several agents run at the same time. Chrome DevTools MCP's default profile can only serve one browser at a time, so parallel sessions need --isolated, and every extra Chrome fights your editor and build for CPU and memory.
Neither server actually needs a browser on your machine. Chrome DevTools MCP's --wsEndpoint flag connects it to any Chrome that exposes the Chrome DevTools Protocol over WebSocket, and --browserUrl does the same for a Chrome started with a remote debugging port. Point --wsEndpoint at a Browserless connection URL, and your agent keeps making the same tool calls while the browser runs on Browserless.
Add the endpoint and your token to the args of the JSON entry you already have, and use the /chrome route, which gives you Google Chrome, the browser the server officially supports.
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"-y",
"chrome-devtools-mcp@latest",
"--wsEndpoint=wss://production-sfo.browserless.io/chrome",
"--wsHeaders={\"Authorization\":\"Bearer YOUR_API_TOKEN\"}"
]
}
}
}
Swap in your Browserless API token for YOUR_API_TOKEN. The header keeps it out of the endpoint URL and any logs that print it. If your client trips over the escaped quotes, drop --wsHeaders and add ?token=YOUR_API_TOKEN to the endpoint, and keep the config out of version control either way.
Send the same first-check prompt to test it. The trace now records in the remote Chrome, and the summary comes back in the same format as a local run, trimmed here.
URL: https://developer.chrome.com/
CPU throttling: 1x
Network throttling: none
Metrics (lab / observed):
- LCP: 636 ms
- CLS: 0.00
Available insights:
- insight name: RenderBlocking
RenderBlocking is an insight name your agent can pass to performance_analyze_insight to see which requests block rendering. A Browserless.heartbeat protocol error in the logs is harmless, and every tool call keeps working.
Each Browserless connection gets its own isolated browser process, so five agents get five browsers that share nothing and none run on your laptop. That makes scaling browser sessions Browserless's job instead of yours, and each open connection counts toward your plan's concurrency.
Browserless closes a session at its timeout, which disconnects the MCP server. For long traces or debugging runs, add ?timeout=300000 (in milliseconds) to the endpoint, or &timeout=300000 if it already carries ?token=, up to your plan's maximum session time.

Playwright MCP connects the same way through --cdp-endpoint, and the Browserless docs walk through that setup for Claude Code with Playwright MCP. Browserless also hosts its own MCP server for browser automation that your AI assistant can connect to directly. It's the better fit for scraping and multi-step agent flows, with stealth, proxies, CAPTCHA solving, and retries built in, and both servers can share one client and API token.
Conclusion
Set up the basic config, run the README's test prompt, and add flags only when you need them, like --headless in CI or --memoryDebugging to chase a leak. Reach for Chrome DevTools MCP when you want to know why a page is slow or broken in Chrome, and Playwright MCP when you need other browsers or test code you can commit.
Local Chrome is fine for one agent, but a few running at once will fight your machine for memory. Browserless takes that load off your laptop by giving each connection its own isolated Chrome, and switching over means adding --wsEndpoint to your existing config. When you're ready to give every agent its own browser, sign up for Browserless.
Chrome DevTools MCP FAQs
Does Google Chrome have an MCP server?
Yes, Chrome DevTools MCP is built and maintained by the Chrome DevTools team and ships as an official npm package, chrome-devtools-mcp.
Is Chrome Dev Tools MCP free?
Yes, Chrome DevTools MCP is free and open source under the Apache-2.0 license. It installs from npm, and running it locally needs no account or API key.
Does Chrome DevTools MCP work with a remote browser?
Yes, it can attach to a Chrome it didn't launch. --wsEndpoint takes a WebSocket URL from a local or hosted Chrome, --browserUrl takes a remote debugging port, and on Chrome 144 and later --autoConnect attaches to the Chrome you already have open once you enable remote debugging at chrome://inspect/#remote-debugging and approve the connection.
Can Chrome DevTools MCP take screenshots?
Yes, the take_screenshot tool captures the viewport, the full page, or a single element as a PNG, JPEG, or WebP file. That lets your agent grab a few images of a page before and after a fix.