chrome-dev-mcp is an MCP (Model Context Protocol) server for Chrome runtime debugging, primarily aimed at web front-end development scenarios. Its core idea is to connect to Chrome tabs the user already has open for real runtime debugging, rather than launching an isolated browser instance.
Purpose and Positioning The project uses the Chrome DevTools Protocol (CDP) directly through chrome-remote-interface, without depending on the DevTools SDK and without bundling a browser. The author states that the existing chrome-devtools-mcp focuses more on browser automation and inspection, whereas this project, as a lighter and standalone implementation, focuses on enabling AI agents to use Chrome runtime debugging capabilities.
Main Capabilities There are 25 tools in total, divided into seven groups (six domains plus one cross-domain tool), covering:
- Runtime debugging: setting breakpoints, single-stepping, and viewing the call stack and scope variables when paused;
- Page inspection: reading DOM elements and their computed CSS;
- Console log reading;
- Network request capture and response body reading;
- Tab management: listing tabs, switching tabs, navigating, reloading;
- Executing expressions within the scope of a paused frame (evaluate_at_frame) and executing JS in the global scope (evaluate_js).
Usage Chrome needs to be launched with remote debugging enabled, and by visiting http://localhost:9222/json Verify that remote debugging is enabled, then open the page you want to debug. The server connects to the current active tab when it starts; to switch tabs, explicitly switch via list_tabs and switch_tab. Configuration in Claude Code: install the npm package globally, then add the server to Claude Code's MCP configuration (~/.claude.json); run claude mcp list to see the connection status. For local development, clone the project and run pnpm install.
Typical workflow First manually bring Chrome to the target state (navigate to a specific route, trigger a flow, or pause at a breakpoint), then let the AI investigate the issue; the AI will call tools such as get_debugger_state and get_scope_variables as needed. After fixing, you can use reload_tab to reload and read again to verify. If you want to share a DOM element with the AI while debugging, select that element in the Elements panel, then run the corresponding code in the DevTools console; afterward the AI can call get_inspected_element to read its tag, attributes, and HTML.
Limitations
- It does not automatically track Chrome's active tab; switching tabs does not change the MCP connection, so you must use switch_tab to explicitly reconnect;
- iframes, workers, and service workers are currently not supported;
- WebSocket frames are not captured;
- It is not suitable for running simultaneously with chrome-devtools-mcp, as the two have overlapping tool names and each maintains its own independent debugger state, which may cause confusion and state conflicts;
- Breakpoints are not shared with DevTools: breakpoints set via set_breakpoint will not appear in DevTools' Breakpoints panel, and breakpoints set in DevTools will not appear in list_breakpoints; however, the paused state is shared;
- While this server is debugging a tab, DevTools' "Deactivate breakpoints" (Ctrl+F8) does not take effect;
- Network capture is not retrospective; capture begins only when the server connects to the tab; requests from the previous page are cleared on navigation;
- Clearing the capture buffer affects only this server and cannot be undone;
- The stepping tools are available only when paused, and they step by statement rather than by line; if not paused within 5 seconds, possible reasons are returned;
- Navigation failures are reported as errors; if the page load event does not fire within 30 seconds, the still-loading state is returned.