Skip to main content
Glama
cdp-extended-mcp

cdp-extended-mcp

by MahyarNemati

cdp-extended-mcp

An MCP (Model Context Protocol) server that exposes 5 powerful Chrome DevTools Protocol domains that are missing from existing tools:

  1. Fetch — Intercept & modify HTTP requests mid-flight (mock APIs, block tracking, inject headers)

  2. Emulation — Device simulation (iPhone/Pixel/iPad presets, geolocation, timezone, dark mode, vision deficiencies)

  3. Accessibility — A11y tree inspection & automated auditing (missing labels, alt text, ARIA compliance)

  4. Performance — Runtime metrics, CPU profiling, heap snapshots, Core Web Vitals

  5. CSS — Computed styles, matched rules, font inspection, coverage tracking, live modification

38 Tools Available

Connection

Tool

Description

connect_cdp

Connect to Chrome via WebSocket URL

discover_targets

List available Chrome debugging targets

disconnect_cdp

Disconnect from Chrome

Fetch (Request Interception)

Tool

Description

fetch_enable

Enable request interception with URL patterns

fetch_disable

Disable interception

fetch_continue

Continue paused request with optional modifications

fetch_fulfill

Respond with custom/mock response

fetch_fail

Fail a request with an error

fetch_get_body

Get response body of intercepted request

fetch_list_paused

List all paused requests

Emulation (Device Simulation)

Tool

Description

emulate_device

Emulate iPhone, Pixel, iPad, Galaxy, Desktop

emulate_custom_device

Custom viewport, DPR, mobile mode

emulate_geolocation

Fake geolocation to any coordinates

emulate_timezone

Override timezone

emulate_locale

Override locale for i18n testing

emulate_user_agent

Override user agent string

emulate_dark_mode

Toggle dark mode

emulate_reduced_motion

Toggle reduced motion

emulate_vision_deficiency

Simulate color blindness, blurred vision

emulate_cpu_throttle

Throttle CPU for low-end device simulation

emulate_touch

Toggle touch emulation

emulate_clear_all

Reset all emulation overrides

emulate_list_devices

List available device presets

Accessibility

Tool

Description

a11y_audit

Automated a11y audit (missing labels, alt text, etc.)

a11y_tree

Get full accessibility tree

a11y_query

Search a11y tree by role/name

Performance

Tool

Description

perf_metrics

Runtime performance metrics

perf_web_vitals

Core Web Vitals with ratings

perf_cpu_profile_start

Start CPU profiling

perf_cpu_profile_stop

Stop profiling, get hotspot analysis

perf_heap_snapshot

Take heap memory snapshot

CSS

Tool

Description

css_computed_style

Get computed styles (optionally filtered)

css_matched_rules

Get all matching CSS rules

css_background_colors

Background colors + font info

css_force_pseudo

Force :hover, :focus, :active states

css_fonts

Get actual rendered fonts

css_media_queries

List all media queries

css_coverage_start

Start CSS coverage tracking

css_coverage_stop

Get used vs unused CSS report

css_set_property

Live-modify CSS properties

Related MCP server: Puppeteer Debugger MCP Server

Quick Start

Install

npm install -g cdp-extended-mcp

Configure with Claude Code

Add to your Claude Code settings (~/.claude/settings.json):

{
  "mcpServers": {
    "cdp-extended": {
      "command": "cdp-extended-mcp"
    }
  }
}

Configure with Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "cdp-extended": {
      "command": "npx",
      "args": ["cdp-extended-mcp"]
    }
  }
}

Usage

  1. Launch Chrome with debugging enabled:

    /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
  2. Use discover_targets to find available pages

  3. Use connect_cdp with the WebSocket URL

  4. Use any of the 38 tools!

Works great alongside cdp-tools

This server is designed to complement the existing cdp-tools MCP server. Use cdp-tools for navigation, clicking, screenshots, and breakpoints. Use cdp-extended for the 5 domains cdp-tools doesn't cover.

Use Cases

  • API Mocking: Intercept fetch requests and return mock data — no backend needed

  • Mobile Testing: Emulate any device with one command

  • A11y Auditing: Find missing labels, alt text, and ARIA issues automatically

  • Performance Profiling: Get Core Web Vitals, CPU hotspots, and memory leaks

  • CSS Debugging: See exactly which rules apply, find unused CSS, check font rendering

  • i18n Testing: Switch timezone, locale, and language without system changes

  • Vision Accessibility: Test how your site looks with color blindness

License

MIT

Available Tools

40 tools
a11y_auditA

Run an accessibility audit on the current page. Checks for missing alt text, unlabeled buttons/links, form inputs without labels, empty headings, and clickable elements without roles.

Inputs: no named parameters.

a11y_queryA

Search the accessibility tree by role and/or accessible name

Inputs: name, role.

a11y_treeA

Get the accessibility tree for the current page (what screen readers see)

Inputs: depth, maxDisplay.

connect_cdpA

Connect to a Chrome instance via WebSocket URL. Get the URL from http://localhost:PORT/json/version or from an existing cdp-tools connection.

Inputs: wsUrl (required).

css_background_colorsA

Get background colors and font info for an element (useful for contrast checking)

Inputs: selector (required).

css_computed_styleA

Get computed CSS styles for an element. Optionally filter to specific properties.

Inputs: selector (required), properties.

css_coverage_startA

Start tracking CSS rule usage. Browse around, then call css_coverage_stop to see which rules are unused.

Inputs: no named parameters.

css_coverage_stopA

Stop CSS coverage tracking and get the report showing used vs unused rules

Inputs: no named parameters.

css_fontsA

Get the actual fonts used to render an element (not just font-family, the actual loaded fonts)

Inputs: selector (required).

css_force_pseudoA

Force pseudo-states on an element (e.g. :hover, :focus, :active) for testing

Inputs: selector (required), pseudoClasses (required).

css_matched_rulesA

Get all CSS rules matching an element (inline, matched, inherited, pseudo-elements)

Inputs: selector (required).

css_media_queriesA

List all media queries used across all stylesheets

Inputs: no named parameters.

css_set_propertyA

Set a CSS property value on an element (live modification)

Inputs: value (required), property (required), selector (required).

disconnect_cdpB

Disconnect from Chrome

Inputs: no named parameters.

discover_targetsA

List available Chrome debugging targets. Use this to find the WebSocket URL to connect to.

Inputs: host, port.

emulate_clear_allA

Clear all emulation overrides and reset to defaults

Inputs: no named parameters.

emulate_cpu_throttleB

Throttle CPU to simulate slower devices

Inputs: rate (required).

emulate_custom_deviceA

Set custom device metrics (viewport size, scale, mobile mode)

Inputs: width (required), height (required), mobile, deviceScaleFactor.

emulate_dark_modeA

Toggle dark mode (prefers-color-scheme)

Inputs: enabled (required).

emulate_deviceA

Emulate a specific device (iPhone, Pixel, iPad, etc.) with correct viewport, DPR, user agent, and touch

Inputs: device (required).

emulate_geolocationB

Fake the browser's geolocation to any coordinates

Inputs: latitude (required), longitude (required), accuracy.

emulate_list_devicesA

List all available device presets for emulation

Inputs: no named parameters.

emulate_localeA

Override the browser's locale for i18n testing

Inputs: locale (required).

emulate_reduced_motionB

Toggle reduced motion preference

Inputs: enabled (required).

emulate_timezoneC

Override the browser's timezone

Inputs: timezoneId (required).

emulate_touchB

Toggle touch emulation

Inputs: enabled (required), maxTouchPoints.

emulate_user_agentB

Override the browser's user agent string

Inputs: userAgent (required), platform, acceptLanguage.

emulate_vision_deficiencyA

Simulate vision deficiencies (color blindness, blurred vision)

Inputs: type (required).

fetch_continueA

Continue a paused request, optionally modifying URL, method, headers, or body

Inputs: requestId (required), url, method, headers, +1 more.

fetch_disableA

Disable request interception

Inputs: no named parameters.

fetch_enableB

Enable request interception. Optionally specify URL patterns to intercept.

Inputs: patterns.

fetch_failA

Fail a paused request with an error

Inputs: requestId (required), errorReason (required).

fetch_fulfillA

Respond to a paused request with a custom/mock response

Inputs: body (required), requestId (required), responseCode (required), headers.

fetch_get_bodyA

Get the response body of a paused request (at Response stage)

Inputs: requestId (required).

fetch_list_pausedA

List all currently paused/intercepted requests

Inputs: no named parameters.

perf_cpu_profile_startA

Start CPU profiling. Perform the actions you want to profile, then call perf_cpu_profile_stop.

Inputs: no named parameters.

perf_cpu_profile_stopA

Stop CPU profiling and get the results with top functions by CPU time

Inputs: no named parameters.

perf_heap_snapshotA

Take a heap memory snapshot to find memory leaks

Inputs: no named parameters.

perf_metricsA

Get current runtime performance metrics (DOM nodes, event listeners, layout counts, JS heap, etc.)

Inputs: no named parameters.

perf_web_vitalsA

Get Core Web Vitals (LCP, CLS, FCP, TTFB) with GOOD/NEEDS IMPROVEMENT/POOR ratings

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 40 tools

    Disambiguation5/5

    Every tool targets a distinct feature or action within its category. The fetch_* set covers interception stages clearly, and emulation tools each address a separate emulation dimension. Even overlapping-looking tools like css_background_colors and css_computed_style are clearly differentiated by their specific purpose.

    Naming Consistency5/5

    All tool names use lowercase snake_case and follow a predictable pattern: either verb_noun (e.g., connect_cdp, discover_targets) or a category prefix followed by a descriptive noun or verb (e.g., emulate_device, css_coverage_stop). The naming is highly consistent across the entire set of 40 tools.

    Tool Count2/5

    40 tools is well above the typical well-scoped range of 3-15. While the broad CDP domain might justify a larger surface, this many tools can overwhelm agents and increase selection difficulty. The count feels excessive even for an 'extended' server.

    Completeness3/5

    The tool surface covers several important domains (interception, emulation, CSS, accessibility, performance) but lacks core page control operations like navigation, JavaScript evaluation, or element interaction. This leaves noticeable gaps for common testing workflows, though it can still handle scenarios where a page is already loaded.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      An MCP server that provides tools for interacting with Chrome through its DevTools Protocol, enabling remote control of Chrome tabs to execute JavaScript, capture screenshots, monitor network traffic, and more.
      69 npm
      52
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server based on Puppeteer and Chrome DevTools Protocol for advanced browser debugging, performance analysis, and memory detection. It enables users to inspect DOM elements, monitor console errors, capture screenshots, and perform heap snapshot analysis through persistent browser connections.
      10
      28 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server that connects to your browser to capture screenshots, inspect console logs, network requests, and more via Chrome DevTools Protocol.
      2
      -