chrome-dev-mcp
This server enables AI agents to inspect, debug, and interact with a live Chrome browser session via the Chrome DevTools Protocol (CDP).
Page Inspection
Get the current page title, URL, and full HTML
Execute arbitrary JavaScript in the global page scope
Get computed CSS styles for a given selector
Find the topmost DOM element at a specific position
Capture a PNG screenshot of the current viewport
Retrieve details of the element currently inspected in DevTools (
$0)
Console
Retrieve browser console messages and uncaught exceptions (including pre-connection output)
Filter by log level (
log,info,debug,warning,error,exception), limit results, and optionally clear the buffer
Debugger Control
Check debugger state: paused status, pause reason, hit breakpoints, and full call stack with source-mapped info
Inspect variable values in a specific call frame scope (local, closure, block, global, etc.) while paused
Evaluate JS expressions in a paused call frame's scope (with access to local variables, closures, and
this)Set breakpoints by URL (exact or regex) and line number, with optional conditions
Remove breakpoints by ID and list all active breakpoints
Control execution flow: pause, resume, step over, step into, and step out
Connects to a running Chrome tab via the Chrome DevTools Protocol (CDP) to provide debugging capabilities such as page inspection, console log retrieval, breakpoint management, and step-through execution.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@chrome-dev-mcpGet the current page URL"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
chrome-dev-mcp
●An MCP server for Web Frontend development in Chrome.
●This project focuses on Chrome runtime debugging.
Why This Exists
●Currently, chrome-devtools-mcp is still focused more on browser automation and inspection than full runtime debugging, though it is clearly moving toward exposing more DevTools capabilities, as described in this Let your Coding Agent debug your browser session with Chrome DevTools MCP.
●Meanwhile, the underlying debugging capabilities are already available through tools such as chrome-remote-interface and @jridgewell/trace-mapping.
●This project exists as a faster, independent implementation focused specifically on making Chrome runtime debugging usable for AI agents before similar functionality is officially available in chrome-devtools-mcp.
Architectural difference from chrome-devtools-mcp
●chrome-devtools-mcp runs DevTools SDK models (TargetManager, DebuggerModel, NetworkManager, etc.) directly in Node.js via chrome-devtools-frontend's /mcp/mcp.js entrypoint, backed by a Puppeteer CDP connection — capabilities that go beyond what the raw Chrome DevTools Protocol exposes directly.
●That approach comes with trade-offs: chrome-devtools-frontend is a very large package (it mirrors the entire Chrome DevTools frontend codebase), and the approach relies on the internal structure of the DevTools page remaining stable across Chrome versions.
●This project takes the opposite approach: plain CDP via chrome-remote-interface, no DevTools SDK, minimal dependencies. The result is a lightweight server that is easy to install, audit, and extend.
Related MCP server: @nimbus21.ai/chrome-devtools-mcp
Limitations
■ Connects to the currently active Chrome tab (the visible page target in the Chrome window). If multiple Chrome windows are open, the first visible tab found is used. Iframes, workers, and service workers are not supported at present.
■ Not designed to run alongside chrome-devtools-mcp. Both register overlapping tool names and maintain independent debugger state against the same Chrome target, which causes confusion for the AI and potential state conflicts.
Prerequisites
Node.js 22+
Google Chrome
Usage
Chrome
▲Launch Chrome with remote debugging enabled.
chrome.exe --remote-debugging-port=9222 --user-data-dir=C:\chrome-debug-profile
# --user-data-dir can be any empty directory; it keeps the debug session isolated from your normal Chrome profile.▲Verify remote debugging is active by opening http://localhost:9222/json in a browser — it should return a JSON list of debuggable targets.
▲Open the page you want to debug.
▲This MCP server will connect to the currently active tab in the Chrome window.
Claude Code configuration
Through npm package
With a fixed version
▲Install npm package globally.
npm install -g chrome-dev-mcp▲Add the server to Claude Code's MCP.
claude mcp add --transport stdio chrome-dev -- chrome-dev-mcp▲Claude Code's config(~/.claude.json) will look like this:
"mcpServers": {
"chrome-dev": {
"type": "stdio",
"command": "chrome-dev-mcp",
"args": [],
"env": {}
}
},Always use the latest version
▲Add the server to Claude Code's MCP.
claude mcp add --transport stdio chrome-dev -- npx -y chrome-dev-mcp@latest
# '-y' is not supportted at 20260522. We may change the config below directory.▲Claude Code's config(~/.claude.json) will look like this:
"mcpServers": {
"chrome-dev": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"chrome-dev-mcp@latest"
],
"env": {}
}
},Through local project
▲Clone this project to local.
▲Add the server to Claude Code's MCP.
claude mcp add --transport stdio chrome-dev -- node "path/to/chrome-dev-mcp/dist/index.js"▲Claude Code's config(~/.claude.json) will look like this:
"mcpServers": {
"chrome-dev": {
"type": "stdio",
"command": "node",
"args": ["path/to/chrome-dev-mcp/dist/index.js"],
"env": {}
}
}Validation
●run claude mcp list, and it will print chrome-dev: xxxxx - ✓ Connected.
MCP Tools
Page inspection
Tool | Description |
| Current page title |
| Current page URL |
| Full page HTML (capped at 20,000 chars) |
| Run arbitrary JavaScript and return the result |
| Computed CSS properties for a CSS selector |
| Topmost element at a selector's bounding-box position |
| PNG screenshot of the current viewport |
| Tag, id, classes, attributes, and outerHTML of the element marked via |
Console
Tool | Description |
| All messages visible in the DevTools Console — including output that existed before this server connected. Exceptions are reported with their full stack trace (source-mapped when available). Supports filtering by level ( |
Debugger
Tool | Description |
| Paused status, pause reason, hit breakpoints, and full call stack with file + line (map to source code if possible) |
| Variable values inside a call frame scope ( |
| Evaluate a JS expression in a paused call frame's scope — has access to local variables, closures, and |
| Set a breakpoint by URL + line number; supports conditions and URL regex |
| Remove a breakpoint by its ID |
| All breakpoints active in this session |
| Pause JS execution immediately |
| Resume after a pause or breakpoint |
| Execute current line, pause at next (skips into calls); returns updated call stack |
| Step into the function call on the current line; returns updated call stack |
| Step out of the current function back to the caller; returns updated call stack |
Typical debugging workflow
◆Bring Chrome to the desired state manually — navigate to a specific route, trigger a flow, or pause at a breakpoint.
◆Ask the AI what you want to investigate, and it will call get_debugger_state, get_scope_variables, etc. automatically when needed.
◆To share a specific DOM element with the AI during debugging, select it in the Elements panel, then run this in the DevTools console:
window.$0 = $0;The AI can then call get_inspected_element to read its tag, attributes, and HTML.
# Example sequence Claude might use
get_debugger_state → { paused: true, callStack: [{ functionName: "handleClick", url: "...", lineNumber: 42 }] }
get_scope_variables → [{ name: "event", type: "object", value: "MouseEvent" }, ...]
evaluate_at_frame → expression: "dropTargets.map(t => t.id)" → ["list-1", "list-2"]
evaluate_at_frameruns in the paused frame's scope and can read local variables, whereasevaluate_jsruns in the global scope and cannot.
Development
●Install dependencies by pnpm install, and then:
pnpm dev # development (tsx watch)
pnpm build # tsc type-check + compile to dist/
pnpm start # run compiled build
pnpm test # run vitestMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceA Chrome DevTools Protocol-based MCP server that enables AI coding assistants to control browsers for JavaScript debugging, reverse engineering, web scraping, and API debugging.Last updated1,0461Apache 2.0
- Alicense-qualityBmaintenanceLets AI coding agents control and inspect a live Chrome browser via MCP, providing Chrome DevTools capabilities for automation, debugging, and performance analysis.Last updated95Apache 2.0
- -license-quality-maintenanceMCP server that connects AI agents to a real Chrome browser via a WebSocket extension bridge, enabling over 40 browser control tools without debug mode or profile isolation.Last updated
- Flicense-qualityDmaintenanceA lightweight MCP server that enables AI assistants to control Chrome DevTools via CDP for debugging tasks like navigation, screenshots, and JavaScript execution.Last updated
Related MCP Connectors
Live browser debugging for AI assistants — DOM, console, network via MCP.
A paid remote MCP for AI agent browser DevTools MCP, built to return verdicts, receipts, usage logs,
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/congzhou09/chrome-dev-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server