Chrome DevTools Debug MCP Server
Click on "Deploy 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 DevTools Debug MCP Server Launch Chrome, navigate to example.com, and screenshot the page"
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 DevTools Debug MCP Server
An MCP server for Chrome DevTools Protocol debugging capabilities. Provides full access to browser debugging features including breakpoints, network interception, DOM inspection, and more.
Installation
Add to your MCP client configuration:
{
"mcpServers": {
"chrome-devtools-debug": {
"command": "npx",
"args": ["chrome-devtools-debug-mcp@latest"]
}
}
}Related MCP server: Browser CDP MCP Server
Tools Reference
Browser / Connection
Tool | Description |
| Launch Chrome with debugging enabled |
| Stop the Chrome process started with |
| Connect to an existing Chrome instance |
| Disconnect from Chrome without stopping the browser |
| Get Chrome version and protocol version |
Target Domain
Manage browser targets (pages/tabs).
Tool | Description |
| List all targets (pages, workers, etc.) |
| Create a new target (page/tab) |
| Switch to a different target (page/tab) |
| Activate a tab and bring its window to the front (current target by default) |
| Close a target (page/tab) |
Page Domain
Tool | Description |
| Navigate the current page to a URL |
| Reload the current page |
| Capture a screenshot (png/jpeg/webp), optionally clipped to a region |
| Capture full page as MHTML (includes HTML, CSS, images) |
| Get the frame hierarchy including all iframes |
| Create an isolated JS execution context in a frame |
| Add a script to run on every new document |
| Remove a script added with add_script_on_new_document |
| Handle JavaScript dialogs (alert, confirm, prompt) |
| Delete a browser cookie by name |
Debugger Domain
Control JavaScript debugging with breakpoints and stepping.
Tool | Description |
| Enable the debugger (required before setting breakpoints) |
| Disable the debugger and remove all breakpoints |
| Set a breakpoint by URL pattern and line number |
| Set a breakpoint at a specific location in a loaded script |
| Remove a breakpoint by its ID |
| List all active breakpoints |
| Pause JavaScript execution |
| Resume JavaScript execution |
| Step to the next line, stepping over function calls |
| Step into a function call |
| Step out of the current function |
| Get the current call stack when paused |
| Get variables in a scope of a call frame |
| Evaluate an expression in the context of a call frame |
| Configure when to pause on exceptions (none/uncaught/all) |
| Set maximum depth of async call stacks |
| List all parsed scripts |
| Get the source code of a script |
| Get current pause state of the debugger |
Runtime Domain
Evaluate JavaScript and inspect objects.
Tool | Description |
| Evaluate JavaScript expression in the page context |
| Get properties of an object by its objectId |
| Release an object reference to free memory |
| Get collected console messages (console.log, console.error, etc.) |
| Get collected runtime exceptions |
| Clear collected console messages and exceptions |
Network Domain
Monitor network requests and responses.
Tool | Description |
| Enable network request collection |
| Disable network request collection |
| List collected network requests |
| Get detailed information about a network request |
| Get the response body of a completed request |
| Clear collected network requests |
| Get summary of collected network requests |
Fetch Domain
Intercept and modify network requests.
Tool | Description |
| Enable request interception |
| Disable request interception |
| Add a rule for handling intercepted requests |
| Remove an intercept rule |
| List all intercept rules |
| List requests paused waiting for a decision |
| Continue a paused request, optionally modifying it |
| Respond to a paused request with a mock response |
| Respond to a paused request with file contents |
| Fail a paused request with an error |
DOM Domain
Inspect and query the DOM tree.
Tool | Description |
| Enable DOM domain for DOM tree access |
| Disable DOM domain |
| Get the root DOM node |
| Find an element by CSS selector |
| Find all elements matching a CSS selector |
| Get the outer HTML of an element |
| Get attributes of an element |
| Get the box model (dimensions and position) of an element |
| Get a JavaScript object reference for a DOM node |
DOMDebugger Domain
Set breakpoints on DOM mutations and events.
Tool | Description |
| Set a breakpoint on DOM mutations (subtree/attribute/removal) |
| Remove a DOM breakpoint |
| Break when a specific event is fired (click, submit, etc.) |
| Remove an event breakpoint |
| Break when an XHR/fetch request matches a URL pattern |
| Remove an XHR breakpoint |
| Get all event listeners attached to an element |
Input Domain
Simulate user input (mouse, keyboard).
Tool | Description |
| Click at coordinates |
| Click on an element by node ID (clicks at center) |
| Type text into the focused element |
| Press a key or key combination |
| Scroll the page or an element |
| Move the mouse to a position |
Log Domain
Collect browser-level logs.
Tool | Description |
| Enable browser log collection |
| Disable browser log collection |
| Get collected browser log entries |
| Clear collected log entries |
ServiceWorker Domain
Manage service workers.
Tool | Description |
| Enable ServiceWorker domain to track service workers |
| Disable ServiceWorker tracking |
| List all registered service workers |
| Start a service worker |
| Stop a running service worker |
| Force update a service worker registration |
| Skip waiting state for a service worker |
License
MIT
Available Tools
97 toolsactivate_targetA
Make a tab the active tab and bring its Chrome window to the front (CDP Target.activateTarget). Defaults to the currently attached target. Whether the window actually comes to the front depends on the window manager.
Inputs: targetId.
add_intercept_ruleC
Add a rule for how to handle intercepted requests.
Inputs: action (required), pattern (required), mockBody, modifyUrl, +5 more.
add_script_on_new_documentA
Add a script to be evaluated on every new document before any other scripts. Useful for injecting polyfills or hooks.
Inputs: source (required), worldName, runImmediately, includeCommandLineAPI.
capture_screenshotA
Capture a screenshot of the page. Large screenshots (>=1MB) are automatically saved to a temp file to avoid token limits.
Inputs: clip, format, quality, filePath, +2 more.
capture_snapshotA
Capture a full page snapshot as MHTML (includes HTML, CSS, images). Useful for archiving pages. Large snapshots (>=1MB) are automatically saved to a temp file.
Inputs: filePath.
clear_consoleB
Clear collected console messages and exceptions.
Inputs: no named parameters.
clear_logB
Clear collected log entries.
Inputs: no named parameters.
clear_requestsA
Clear collected network requests. Optional targetId scopes the clear to one session.
Inputs: targetId.
clickA
Click at coordinates. Async - use is_paused to check if breakpoint was hit.
Inputs: x (required), y (required), button, clickCount.
click_elementB
Click on an element by node ID (clicks at center). Async - use is_paused to check if breakpoint was hit.
Inputs: nodeId (required), button.
close_targetA
Close a target (page/tab) by its ID. Cannot close the currently attached target.
Inputs: targetId (required).
connectB
Connect to an existing Chrome instance running with --remote-debugging-port.
Inputs: url (required), targetId.
continue_requestB
Continue a paused request, optionally modifying it.
Inputs: requestId (required), url, method, headers, +1 more.
create_isolated_worldA
Create an isolated JavaScript execution context in a frame. Scripts in isolated worlds cannot access page JS variables and vice versa, but both can access the DOM.
Inputs: frameId (required), worldName, grantUniversalAccess.
create_targetA
Create a new target (page/tab) in the browser. Does not switch to it automatically.
Inputs: url.
debugger_disableA
Disable the debugger. Removes all breakpoints.
Inputs: no named parameters.
debugger_enableA
Enable the debugger. Must be called before setting breakpoints or stepping.
Inputs: no named parameters.
delete_cookieC
Delete a browser cookie by name. Part of Network domain but grouped here for convenience.
Inputs: name (required), url, path, domain.
disconnectA
Disconnect from Chrome without stopping the browser.
Inputs: no named parameters.
dom_disableC
Disable DOM domain.
Inputs: no named parameters.
dom_enableB
Enable DOM domain for DOM tree access.
Inputs: no named parameters.
evaluateB
Evaluate JavaScript expression in the page context. Returns breakpoint info if execution triggers a breakpoint.
Inputs: expression (required), timeout, awaitPromise, returnByValue.
evaluate_on_frameC
Evaluate an expression in the context of a call frame.
Inputs: expression (required), returnByValue, callFrameIndex.
fail_requestC
Fail a paused request with an error.
Inputs: reason (required), requestId (required).
fetch_disableB
Disable request interception.
Inputs: no named parameters.
fetch_enableB
Enable request interception. Requests matching rules will be paused.
Inputs: patterns.
fulfill_requestC
Respond to a paused request with a mock response.
Inputs: status (required), requestId (required), body, headers, +1 more.
fulfill_request_with_fileA
Respond to a paused request with file contents. Automatically detects Content-Type from file extension.
Inputs: filePath (required), requestId (required), status, headers, +2 more.
get_attributesC
Get attributes of an element.
Inputs: nodeId (required).
get_box_modelC
Get the box model (dimensions and position) of an element.
Inputs: nodeId (required).
get_call_framesA
Get the current call stack when paused.
Inputs: no named parameters.
get_console_messagesC
Get collected console messages (console.log, console.error, etc.).
Inputs: level, limit.
get_documentC
Get the root DOM node.
Inputs: depth, pierce.
get_event_listenersC
Get all event listeners attached to an element.
Inputs: nodeId (required), depth.
get_exceptionsC
Get collected runtime exceptions.
Inputs: limit.
get_frame_treeB
Get the frame tree structure of the page, including all iframes.
Inputs: no named parameters.
get_log_entriesC
Get collected browser log entries.
Inputs: level, limit, source, targetId.
get_network_summaryA
Get summary of collected network requests, broken down per target. Optional targetId for a single-session view.
Inputs: targetId.
get_outer_htmlC
Get the outer HTML of an element.
Inputs: nodeId (required).
get_pause_stateB
Get current pause state of the debugger.
Inputs: no named parameters.
get_propertiesC
Get properties of an object by its objectId.
Inputs: objectId (required), ownProperties.
get_request_detailsC
Get detailed information about a network request.
Inputs: requestId (required), targetId.
get_response_bodyA
Get the response body of a completed request. Automatically routes to the session that issued the request.
Inputs: requestId (required), targetId.
get_scope_variablesC
Get variables in a scope of a call frame.
Inputs: scopeIndex, callFrameIndex.
get_script_sourceC
Get the source code of a script.
Inputs: scriptId (required), endLine, startLine.
get_versionB
Get Chrome version and protocol version.
Inputs: url.
get_websocket_framesA
Get the frames (messages) of a WebSocket connection. The requestId comes from list_requests (entries with resourceType "WebSocket"). Returns the connection state plus sent/received frames. Requires network_enable to have been active when the connection opened. Use get_request_details on the same requestId for the handshake headers.
Inputs: requestId (required), limit, since, contains, +2 more.
handle_dialogC
Handle a JavaScript dialog (alert, confirm, prompt, beforeunload).
Inputs: accept (required), promptText.
list_attached_sessionsA
List every target this DebugSession is currently attached to (root page + auto-attached workers, service workers, iframes). Use the targetId in network tools to scope results.
Inputs: no named parameters.
list_breakpointsB
List all active breakpoints.
Inputs: no named parameters.
list_intercept_rulesC
List all intercept rules.
Inputs: no named parameters.
list_paused_requestsB
List requests that are paused waiting for a decision.
Inputs: no named parameters.
list_requestsA
List collected network requests. Includes requests from the page and from any auto-attached workers/service workers. Use targetId to scope to one session.
Inputs: limit, targetId, failedOnly, urlPattern, +1 more.
list_scriptsC
List all parsed scripts.
Inputs: urlPattern.
list_service_workersA
List all registered service workers. Includes the CDP targetId when known so it can be cross-referenced with list_attached_sessions and list_requests.
Inputs: no named parameters.
list_targetsA
List all debug targets (pages, workers, service workers, etc.). For just pages/tabs, use list_pages instead.
Inputs: url.
log_disableB
Disable browser log collection.
Inputs: no named parameters.
log_enableA
Enable browser log collection (errors, warnings from browser).
Inputs: no named parameters.
move_mouseC
Move the mouse to a position.
Inputs: x (required), y (required).
network_disableA
Disable network request collection on every attached session.
Inputs: no named parameters.
network_enableA
Enable network request collection on every attached session (page + auto-attached workers/iframes/service workers). Stays on for sessions that attach later.
Inputs: no named parameters.
pauseB
Pause JavaScript execution.
Inputs: no named parameters.
press_keyC
Press a key or key combination.
Inputs: key (required), modifiers.
query_selectorC
Find an element by CSS selector.
Inputs: selector (required), nodeId.
query_selector_allC
Find all elements matching a CSS selector.
Inputs: selector (required), nodeId.
release_objectB
Release an object reference to free memory.
Inputs: objectId (required).
reloadC
Reload the current page.
Inputs: ignoreCache.
remove_breakpointC
Remove a breakpoint by its ID.
Inputs: breakpointId (required).
remove_dom_breakpointC
Remove a DOM breakpoint.
Inputs: type (required), nodeId (required).
remove_event_breakpointC
Remove an event breakpoint.
Inputs: eventName (required), targetName.
remove_intercept_ruleC
Remove an intercept rule.
Inputs: ruleId (required).
remove_script_on_new_documentB
Remove a script previously added with add_script_on_new_document.
Inputs: identifier (required).
remove_xhr_breakpointD
Remove an XHR breakpoint.
Inputs: url (required).
resolve_nodeC
Get a JavaScript object reference for a DOM node.
Inputs: nodeId (required).
resumeB
Resume JavaScript execution.
Inputs: no named parameters.
scrollC
Scroll the page or an element.
Inputs: x (required), y (required), deltaX, deltaY.
service_worker_disableC
Disable ServiceWorker tracking.
Inputs: no named parameters.
service_worker_enableA
Enable ServiceWorker domain to track service workers.
Inputs: no named parameters.
set_async_stack_depthC
Set maximum depth of async call stacks.
Inputs: maxDepth (required).
set_breakpointB
Set a breakpoint by URL pattern and line number. Works even before script is loaded.
Inputs: lineNumber (required), url, urlRegex, condition, +1 more.
set_breakpoint_by_idC
Set a breakpoint at a specific location in a loaded script.
Inputs: scriptId (required), lineNumber (required), condition, columnNumber.
set_dom_breakpointB
Set a breakpoint on DOM mutations (subtree changes, attribute changes, or node removal).
Inputs: type (required), nodeId (required).
set_event_breakpointC
Break when a specific event is fired (e.g., click, submit, keydown).
Inputs: eventName (required), targetName.
set_pause_on_exceptionsC
Configure when to pause on exceptions.
Inputs: state (required).
set_xhr_breakpointB
Break when an XHR/fetch request is made to a URL containing the pattern.
Inputs: url (required).
skip_waitingC
Skip waiting state for a service worker.
Inputs: scopeURL (required).
start_chromeB
Launch Chrome browser with debugging enabled. Returns WebSocket endpoint URL. If already connected, returns existing connection info.
Inputs: args, port, headless, chromePath, +1 more.
start_workerC
Start a service worker.
Inputs: scopeURL (required).
step_intoC
Step into a function call.
Inputs: no named parameters.
step_outB
Step out of the current function.
Inputs: no named parameters.
step_overA
Step to the next line, stepping over function calls.
Inputs: no named parameters.
stop_chromeB
Stop the Chrome browser process that was started with start_chrome.
Inputs: no named parameters.
stop_workerB
Stop a running service worker.
Inputs: versionId (required).
switch_targetA
Switch to a different target (page/tab) by its ID. Use list_targets to see available targets.
Inputs: targetId (required).
type_textC
Type text into the focused element.
Inputs: text (required).
update_registrationC
Force update a service worker registration.
Inputs: scopeURL (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 97 tools
The set contains many clusters of near-duplicate or overlapping tools: get_log_entries vs get_console_messages vs get_exceptions, click vs click_element, list_targets vs list_attached_sessions, capture_screenshot vs capture_snapshot, and multiple breakpoint types. Descriptions help, but with 97 tools spanning heavily overlapping debugging, logging, and network surfaces, an agent can easily misselect.
Most names use consistent snake_case and follow predictable verb_noun or noun_enable/noun_disable patterns. There are minor deviations with bare verbs like navigate, reload, click, pause, resume, and mixed conventions such as click vs click_element, but overall naming is readable and largely consistent.
97 tools is far too many for a coherent MCP surface; the count alone creates selection burden and encourages fragmentation into many narrow enable/disable pairs. Even if each tool is useful individually, the set is extremely over-scoped.
Coverage is broad across targets, debugger, DOM, network, console/logs, service workers, screenshots, and request interception. Minor gaps remain, such as no cookie list/set, limited DOM mutation operations, and no CSS or performance/heap profiling tools, but core debugging workflows are covered.
Maintenance
Related MCP Connectors
Live browser debugging for AI assistants — DOM, console, network via MCP.
Run supported Playwright tools in an authorized persistent Chrome browser and watch in Live View.
remote debug iOS/Android/Unity/Godot/Flutter/RN/Web on real-device.ui-tree/screenshots/taps,tests.
Securely control computers you explicitly pair through files, terminals, processes, screenshots, desktop UI/input, clipboard, browser automation, diagnostics, and document tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to control and inspect a live Chrome browser for automation, debugging, performance analysis, network monitoring, and DOM interaction through Chrome DevTools Protocol.Apache 2.0
- FlicenseDqualityDmaintenanceProvides direct access to Chrome DevTools Protocol for browser automation, enabling navigation, screenshot capture, and execution of any CDP command for flexible browser control.42-
- AlicenseNot gradedqualityDmaintenanceEnables reading browser DevTools data (tabs, console errors, network requests, screenshots, DOM, CSS, JS execution) via Chrome DevTools Protocol.MIT
- AlicenseNot gradedqualityDmaintenanceEnables coding agents to control and inspect a live Chrome browser via MCP, providing Chrome DevTools capabilities for automation, debugging, and performance analysis.Apache 2.0