Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

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

start_chrome

Launch Chrome with debugging enabled

stop_chrome

Stop the Chrome process started with start_chrome

connect

Connect to an existing Chrome instance

disconnect

Disconnect from Chrome without stopping the browser

get_version

Get Chrome version and protocol version

Target Domain

Manage browser targets (pages/tabs).

Tool

Description

list_targets

List all targets (pages, workers, etc.)

create_target

Create a new target (page/tab)

switch_target

Switch to a different target (page/tab)

activate_target

Activate a tab and bring its window to the front (current target by default)

close_target

Close a target (page/tab)

Page Domain

Tool

Description

navigate

Navigate the current page to a URL

reload

Reload the current page

capture_screenshot

Capture a screenshot (png/jpeg/webp), optionally clipped to a region

capture_snapshot

Capture full page as MHTML (includes HTML, CSS, images)

get_frame_tree

Get the frame hierarchy including all iframes

create_isolated_world

Create an isolated JS execution context in a frame

add_script_on_new_document

Add a script to run on every new document

remove_script_on_new_document

Remove a script added with add_script_on_new_document

handle_dialog

Handle JavaScript dialogs (alert, confirm, prompt)

delete_cookie

Delete a browser cookie by name

Debugger Domain

Control JavaScript debugging with breakpoints and stepping.

Tool

Description

debugger_enable

Enable the debugger (required before setting breakpoints)

debugger_disable

Disable the debugger and remove all breakpoints

set_breakpoint

Set a breakpoint by URL pattern and line number

set_breakpoint_by_id

Set a breakpoint at a specific location in a loaded script

remove_breakpoint

Remove a breakpoint by its ID

list_breakpoints

List all active breakpoints

pause

Pause JavaScript execution

resume

Resume JavaScript execution

step_over

Step to the next line, stepping over function calls

step_into

Step into a function call

step_out

Step out of the current function

get_call_frames

Get the current call stack when paused

get_scope_variables

Get variables in a scope of a call frame

evaluate_on_frame

Evaluate an expression in the context of a call frame

set_pause_on_exceptions

Configure when to pause on exceptions (none/uncaught/all)

set_async_stack_depth

Set maximum depth of async call stacks

list_scripts

List all parsed scripts

get_script_source

Get the source code of a script

get_pause_state

Get current pause state of the debugger

Runtime Domain

Evaluate JavaScript and inspect objects.

Tool

Description

evaluate

Evaluate JavaScript expression in the page context

get_properties

Get properties of an object by its objectId

release_object

Release an object reference to free memory

get_console_messages

Get collected console messages (console.log, console.error, etc.)

get_exceptions

Get collected runtime exceptions

clear_console

Clear collected console messages and exceptions

Network Domain

Monitor network requests and responses.

Tool

Description

network_enable

Enable network request collection

network_disable

Disable network request collection

list_requests

List collected network requests

get_request_details

Get detailed information about a network request

get_response_body

Get the response body of a completed request

clear_requests

Clear collected network requests

get_network_summary

Get summary of collected network requests

Fetch Domain

Intercept and modify network requests.

Tool

Description

fetch_enable

Enable request interception

fetch_disable

Disable request interception

add_intercept_rule

Add a rule for handling intercepted requests

remove_intercept_rule

Remove an intercept rule

list_intercept_rules

List all intercept rules

list_paused_requests

List requests paused waiting for a decision

continue_request

Continue a paused request, optionally modifying it

fulfill_request

Respond to a paused request with a mock response

fulfill_request_with_file

Respond to a paused request with file contents

fail_request

Fail a paused request with an error

DOM Domain

Inspect and query the DOM tree.

Tool

Description

dom_enable

Enable DOM domain for DOM tree access

dom_disable

Disable DOM domain

get_document

Get the root DOM node

query_selector

Find an element by CSS selector

query_selector_all

Find all elements matching a CSS selector

get_outer_html

Get the outer HTML of an element

get_attributes

Get attributes of an element

get_box_model

Get the box model (dimensions and position) of an element

resolve_node

Get a JavaScript object reference for a DOM node

DOMDebugger Domain

Set breakpoints on DOM mutations and events.

Tool

Description

set_dom_breakpoint

Set a breakpoint on DOM mutations (subtree/attribute/removal)

remove_dom_breakpoint

Remove a DOM breakpoint

set_event_breakpoint

Break when a specific event is fired (click, submit, etc.)

remove_event_breakpoint

Remove an event breakpoint

set_xhr_breakpoint

Break when an XHR/fetch request matches a URL pattern

remove_xhr_breakpoint

Remove an XHR breakpoint

get_event_listeners

Get all event listeners attached to an element

Input Domain

Simulate user input (mouse, keyboard).

Tool

Description

click

Click at coordinates

click_element

Click on an element by node ID (clicks at center)

type_text

Type text into the focused element

press_key

Press a key or key combination

scroll

Scroll the page or an element

move_mouse

Move the mouse to a position

Log Domain

Collect browser-level logs.

Tool

Description

log_enable

Enable browser log collection

log_disable

Disable browser log collection

get_log_entries

Get collected browser log entries

clear_log

Clear collected log entries

ServiceWorker Domain

Manage service workers.

Tool

Description

service_worker_enable

Enable ServiceWorker domain to track service workers

service_worker_disable

Disable ServiceWorker tracking

list_service_workers

List all registered service workers

start_worker

Start a service worker

stop_worker

Stop a running service worker

update_registration

Force update a service worker registration

skip_waiting

Skip waiting state for a service worker

License

MIT

Available Tools

97 tools
activate_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.

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

    C2.7/5.0

    Scored across 97 tools

    Disambiguation2/5

    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.

    Naming Consistency4/5

    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.

    Tool Count1/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers