New advertisers: 50% off your first month with code FIRSTMONTHSee slots
congzhou09 avatar

Chrome Dev Mcp

congzhou09/chrome-dev-mcp

Live Chrome tab debugging over CDP: breakpoints, stepping, scope variables, console, and network.

GitHub stars
1
tools
19
transport
STDIO
last updated
Nov 15, 2026
View on GitHub

What it does

  • Reads page state with get_page_info, get_html, get_computed_style, get_console_logs, and screenshot, plus evaluate_js for arbitrary expressions
  • Controls execution with set_breakpoint, pause_execution, get_debugger_state, get_scope_variables, and evaluate_at_frame, with source-map mapping where available
  • Attaches over local stdio to an already-open Chrome started with remote debugging on port 9222, with no separate browser launched
  • Designed for frontend developers who want an AI agent to debug the tab they already have open, not automated browser testing

Tools

19 tools

Public tool metadata for what this MCP can expose to an agent.

list_tabsList all open Chrome page tabs as [{ targetId, title, url, active?, connected }].

List all open Chrome page tabs as [{ targetId, title, url, active?, connected }].

No parameter schema in public metadata yet.

switch_tabConnect this server to another tab by targetId (from list_tabs), without bringing it to the front.

Connect this server to another tab by targetId (from list_tabs), without bringing it to the front.

No parameter schema in public metadata yet.

get_page_infoCurrent page URL and title as { url, title }, answering even while the page is not responding.

Current page URL and title as { url, title }, answering even while the page is not responding.

No parameter schema in public metadata yet.

get_htmlFull page HTML (capped at 20,000 chars).

Full page HTML (capped at 20,000 chars).

No parameter schema in public metadata yet.

evaluate_jsRun arbitrary JavaScript in global scope, with DevTools console semantics.

Run arbitrary JavaScript in global scope, with DevTools console semantics.

No parameter schema in public metadata yet.

get_computed_styleComputed CSS values for the given properties on the first element matching a CSS selector.

Computed CSS values for the given properties on the first element matching a CSS selector.

No parameter schema in public metadata yet.

screenshotPNG screenshot of the current viewport, or of one region of it.

PNG screenshot of the current viewport, or of one region of it.

No parameter schema in public metadata yet.

get_inspected_elementTag, id, classes, attributes, and outerHTML of the element marked via window.$0 = $0 in the DevTools console.

Tag, id, classes, attributes, and outerHTML of the element marked via window.$0 = $0 in the DevTools console.

No parameter schema in public metadata yet.

navigate_tabLoad a URL in the connected tab and wait for the new page's load event, or for execution to pause first.

Load a URL in the connected tab and wait for the new page's load event, or for execution to pause first.

No parameter schema in public metadata yet.

reload_tabReload the connected tab and wait the same way as navigate_tab. ignoreCache bypasses the HTTP cache.

Reload the connected tab and wait the same way as navigate_tab. ignoreCache bypasses the HTTP cache.

No parameter schema in public metadata yet.

get_console_logsAll messages visible in the DevTools Console, including output that predates this server's connection.

All messages visible in the DevTools Console, including output that predates this server's connection.

No parameter schema in public metadata yet.

get_debugger_statePaused status, pause reason, hit breakpoints, and full call stack with file and line, source-mapped when possible.

Paused status, pause reason, hit breakpoints, and full call stack with file and line, source-mapped when possible.

No parameter schema in public metadata yet.

get_scope_variablesVariable values inside a call frame scope (local, closure, block, global, …).

Variable values inside a call frame scope (local, closure, block, global, …).

No parameter schema in public metadata yet.

evaluate_at_frameEvaluate a JS expression in a paused call frame's scope, reading local variables, closures, and this.

Evaluate a JS expression in a paused call frame's scope, reading local variables, closures, and this.

No parameter schema in public metadata yet.

set_breakpointSet a breakpoint by source file and line (mapped through source maps), or by script URL or regex; supports conditions.

Set a breakpoint by source file and line (mapped through source maps), or by script URL or regex; supports conditions.

No parameter schema in public metadata yet.

remove_breakpointRemove a breakpoint by its ID.

Remove a breakpoint by its ID.

No parameter schema in public metadata yet.

list_breakpointsAll breakpoints active in this session.

All breakpoints active in this session.

No parameter schema in public metadata yet.

pause_executionPause JS at the next statement.

Pause JS at the next statement.

No parameter schema in public metadata yet.

clear_capturesResets the console and network buffers.

Resets the console and network buffers.

No parameter schema in public metadata yet.

Readme

chrome-dev-mcp

npm chrome-dev-mcp package chrome-dev-mcp MCP server – quality and maintenance score on Glama

●An MCP server that attaches to an already-running Chrome tab for real runtime debugging: breakpoints, stepping, and scope variables — plus JS/CSS inspection, console logs, and network capture. Built for web frontend development.

●It talks plain CDP through chrome-remote-interface — no DevTools SDK, no bundled browser — so it debugs the tab you already have open, in your own Chrome, instead of launching an isolated instance.

Demo video

Debugging js

Debugging js

Inspecting html and css


View the full README on GitHub

Details

Repository
github.com/congzhou09/chrome-dev-mcp
Categories
Developer Tools, Browser Automation & Scraping
Package
chrome-dev-mcp
Transport
STDIO
Registry
MCP registry, active

Similar to Chrome Dev Mcp

More Developer Tools