cdp-extended-mcp
MCP server exposing 5 Chrome DevTools Protocol domains (Fetch, Emulation, Accessibility, Performance, CSS) with 38 tools for advanced browser automation and debugging.
README
cdp-extended-mcp
An MCP (Model Context Protocol) server that exposes 5 powerful Chrome DevTools Protocol domains that are missing from existing tools:
- Fetch — Intercept & modify HTTP requests mid-flight (mock APIs, block tracking, inject headers)
- Emulation — Device simulation (iPhone/Pixel/iPad presets, geolocation, timezone, dark mode, vision deficiencies)
- Accessibility — A11y tree inspection & automated auditing (missing labels, alt text, ARIA compliance)
- Performance — Runtime metrics, CPU profiling, heap snapshots, Core Web Vitals
- 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 |
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
-
Launch Chrome with debugging enabled:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 -
Use
discover_targetsto find available pages -
Use
connect_cdpwith the WebSocket URL -
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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。