Token导航 LogoToken导航

Agent Skill · 前端设计

cc_chrome_devtools_mcp_skill(CC chrome devtools MCP 技能)

cc_chrome_devtools_mcp_skill 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

cc_chrome_devtools_mcp_skill 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,暂无第三方扫描结果,按安装量在前端设计类的 10,216 个 Skill 里排第 4,575。

总安装 849周安装 34GitHub Stars 31下载 275核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cc_chrome_devtools_mcp_skill(CC chrome devtools MCP 技能)
来源仓库:https://github.com/justfinethanku/cc_chrome_devtools_mcp_skill
仓库路径:skills/cc_chrome_devtools_mcp_skill
安装命令:
npx skills add https://github.com/justfinethanku/cc_chrome_devtools_mcp_skill --skill cc_chrome_devtools_mcp_skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/justfinethanku/cc_chrome_devtools_mcp_skill --skill cc_chrome_devtools_mcp_skill

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

cc_chrome_devtools_mcp_skill 用于自动化 Chrome 浏览器测试和性能分析。支持网络监控、性能测量、可访问性验证和浏览器自动化等 27 项专业工具。通过 Chrome DevTools Protocol 提供 Core Web Vitals 分析和响应式设计测试能力。

安装前建议确认权限范围和维护状态,避免不必要的联网或文件读写操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/cc_chrome_devtools_mcp_skill

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/justfinethanku/cc_chrome_devtools_mcp_skill --…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

cc_chrome_devtools_mcp_skill 怎么安装?

在终端执行 npx skills add https://github.com/justfinethanku/cc_chrome_devtools_mcp_skill --skill cc_c…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

cc_chrome_devtools_mcp_skill 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

cc_chrome_devtools_mcp_skill 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

cc_chrome_devtools_mcp_skill 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

cc_chrome_devtools_mcp_skill 用的人多吗?

公开数据是累计安装 849 次,近一周安装 34 次,下载 275 次,GitHub 31 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

cc_chrome_devtools_mcp_skill 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
cc_chrome_devtools_mcp_skill

CC chrome devtools MCP 技能 · 本页

84931操作浏览器MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Chrome DevTools Testing Skill

Overview

This skill enables automated Chrome browser testing and performance analysis using the Chrome DevTools Protocol (CDP) via the chrome-devtools-mcp server. It provides access to 27 professional-grade tools for web application testing, performance measurement, accessibility validation, and browser automation.

Key capabilities:

  • Performance analysis with Core Web Vitals (INP, LCP, CLS)
  • Network monitoring and HAR export
  • Accessibility tree inspection
  • Responsive design testing
  • Browser automation (form filling, navigation, interaction)
  • Multi-tab and frame management
  • Device and network condition emulation

Browser support: Chrome/Chromium only (stable, beta, dev, canary channels)

Node.js requirement: v20.19 or newer

Quick Start

Installation

# Add to Claude Code via CLI
claude mcp add chrome-devtools npx chrome-devtools-mcp@latest

# Verify installation
claude mcp list

Basic configuration

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": [
        "chrome-devtools-mcp@latest",
        "--isolated=true",
        "--viewport=1920x1080"
      ]
    }
  }
}

Important notes

  • Browser auto-starts on first tool use (not on MCP connection)
  • Use --isolated=true for security (creates temporary user data directories that auto-cleanup)
  • Default behavior shares user data directory across sessions and does NOT clear between runs
  • All browser content is exposed to MCP clients - avoid sensitive data

Current Core Web Vitals (as of March 12, 2024)

Three official metrics measured at 75th percentile of page loads:

  1. Interaction to Next Paint (INP) - Replaced FID on March 12, 2024

- Good: ≤ 200ms - Measures: Input delay + processing time + presentation delay - Requires: Real user interactions (field data only)

  1. Largest Contentful Paint (LCP)

- Good: ≤ 2.5 seconds - Measures: Main content loading performance

  1. Cumulative Layout Shift (CLS)

- Good: ≤ 0.1 - Measures: Visual stability

Total Blocking Time (TBT) is NOT a Core Web Vital - it's a lab proxy metric for INP.

Common Use Cases

1. Performance Testing Workflow

Measure Core Web Vitals and analyze performance bottlenecks:

1. Start performance trace: performance_start_trace
2. Navigate to target URL: navigate_page
3. Wait for page load: wait_for
4. Stop trace and get metrics: performance_stop_trace
5. Analyze specific insights: performance_analyze_insight

Metrics captured:

  • INP (Interaction to Next Paint)
  • LCP (Largest Contentful Paint) with breakdown
  • CLS (Cumulative Layout Shift)
  • TBT (Total Blocking Time - lab proxy)
  • Document latency analysis

Example:

performance_start_trace with reload=true, autoStop=false
wait_for page to stabilize
performance_stop_trace
performance_analyze_insight with insightName="LCPBreakdown"

2. Network Monitoring and HAR Export

Capture all HTTP requests/responses with timing details:

1. Navigate to URL: navigate_page
2. List all network requests: list_network_requests
3. Get specific request details: get_network_request

Captured data:

  • Headers, bodies, cookies
  • Timing (DNS, connect, SSL, wait, receive)
  • Resource types (document, stylesheet, image, script, xhr, fetch)
  • Security details (protocol, cipher suite)

Export as HAR: Use list_network_requests to generate HTTP Archive v1.2 format

Filter requests:

list_network_requests with resourceTypes=["xhr", "fetch", "document"]
list_network_requests with pageSize=50, pageIdx=0

3. Accessibility Validation

Inspect accessibility tree for WCAG compliance:

1. Navigate to page: navigate_page
2. Take accessibility snapshot: take_snapshot
3. Interact with elements using UIDs

Snapshot provides:

  • Unique element identifiers (UIDs)
  • Accessibility roles, names, properties
  • ARIA attributes and computed roles
  • Screen reader compatibility analysis
  • Semantic structure validation

Example workflow:

take_snapshot verbose=false (returns text-based a11y tree)
# Identify element UIDs from snapshot
click uid="element-123"
fill uid="input-456" value="test data"

4. Responsive Design Testing

Test across devices and network conditions:

1. Resize viewport: resize_page width=375 height=667
2. Emulate network: emulate_network throttlingOption="Slow 3G"
3. Emulate CPU: emulate_cpu throttlingRate=4
4. Take screenshot: take_screenshot fullPage=true

Device emulation options:

  • Viewport dimensions and device scale factor
  • Network conditions: Offline, Slow 3G, Fast 3G, Slow 4G, Fast 4G
  • CPU throttling: 1-20x slowdown
  • Touch emulation with max touch points

Screenshot formats: PNG, JPEG, WebP (with quality settings)

5. Browser Automation

Automated form filling, navigation, and interaction:

1. Take snapshot to get element UIDs: take_snapshot
2. Fill form fields: fill_form elements=[{uid, value}, ...]
3. Click buttons: click uid="submit-button"
4. Handle dialogs: handle_dialog action="accept"
5. Wait for results: wait_for text="Success"

Interaction tools:

  • click (single/double-click)
  • fill (input fields, textareas, selects)
  • fill_form (multiple fields at once)
  • hover (mouse hover)
  • drag (drag-and-drop)
  • upload_file (file inputs)
  • handle_dialog (alerts, confirms, prompts)

Navigation tools:

  • navigate_page (URLs, reload)
  • navigate_page_history (back/forward)
  • wait_for (text appearance, conditions)

6. Multi-Tab Management

Work with multiple pages and frames:

1. List open pages: list_pages
2. Create new page: new_page url="https://example.com"
3. Switch context: select_page pageIdx=1
4. Close pages: close_page pageIdx=2

Frame handling:

  • Automatic attachment to child frames and workers
  • Frame tree structure inspection
  • Session persistence across navigation

Advanced Workflows

Performance Analysis with Device Emulation

1. resize_page width=390 height=844 (iPhone 14 Pro)
2. emulate_network throttlingOption="Fast 4G"
3. emulate_cpu throttlingRate=4
4. performance_start_trace reload=true
5. performance_stop_trace
6. performance_analyze_insight insightName="DocumentLatency"

Network Analysis with Filtering

1. navigate_page url="https://example.com"
2. list_network_requests resourceTypes=["script", "fetch", "xhr"]
3. Filter by: pageSize=100, pageIdx=0, includePreservedRequests=true
4. get_network_request reqid=123 (detailed timing/headers/body)

Accessibility Testing Pattern

1. navigate_page url="https://example.com"
2. take_snapshot verbose=true (full a11y tree with all properties)
3. Validate: roles, names, ARIA attributes, relationships
4. Test interactions: click, fill, keyboard navigation via UIDs

Cross-Browser Viewport Testing

1. Define breakpoints: [320, 768, 1024, 1920]
2. For each breakpoint:
   - resize_page width=X height=Y
   - take_screenshot format="png" quality=90
   - take_snapshot (verify accessibility)
3. Compare layouts and a11y across sizes

Complete Tool Reference

27 tools available across 6 categories:

Input automation (8): click, drag, fill, fill_form, handle_dialog, hover, press_key, upload_file

Navigation (7): close_page, list_pages, navigate_page, navigate_page_history, new_page, select_page, wait_for

Emulation (3): emulate_cpu, emulate_network, resize_page

Performance (3): performance_analyze_insight, performance_start_trace, performance_stop_trace

Network (2): get_network_request, list_network_requests

Debugging (4): evaluate_script, get_console_message, list_console_messages, take_screenshot, take_snapshot

For detailed tool parameters and examples, see TOOLS.md

For complete workflow patterns, see WORKFLOWS.md

For Core Web Vitals thresholds and measurement guide, see METRICS.md

Configuration Options

Connection flags

  • --browserUrl, -u <string> - Connect to running Chrome instance (port forwarding)
  • --wsEndpoint, -w <string> - WebSocket endpoint for Chrome connection
  • --wsHeaders <JSON> - Custom headers for authenticated WebSocket connections

Browser configuration

  • --headless <boolean> - Run in headless mode (default: false)
  • --executablePath, -e <string> - Path to custom Chrome executable
  • --channel <string> - Chrome channel: stable, canary, beta, dev (default: stable)
  • --viewport <string> - Initial viewport size (format: WIDTHxHEIGHT, e.g., 1280x720)

Security and isolation

  • --isolated <boolean> - RECOMMENDED: Creates temporary user-data-dir, auto-cleanup (default: false)
  • --user-data-dir <string> - Custom user data directory
  • --acceptInsecureCerts <boolean> - Ignore certificate errors (SECURITY RISK - dev/test only)

Network

  • --proxyServer <string> - Proxy server configuration

Debugging

  • --logFile <string> - Path for debug logs (set DEBUG=* env var for verbose logs)

Additional

  • --chromeArg <string> - Additional Chrome arguments (repeatable)

View all options: npx chrome-devtools-mcp@latest --help

Production Configuration Examples

Secure isolated testing

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": [
        "chrome-devtools-mcp@latest",
        "--isolated=true",
        "--headless=true",
        "--viewport=1920x1080",
        "--channel=stable"
      ]
    }
  }
}

Connect to external Chrome instance

# Launch Chrome with remote debugging
google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile

# Get WebSocket endpoint
curl http://127.0.0.1:9222/json/version | jq -r '.webSocketDebuggerUrl'
{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": [
        "chrome-devtools-mcp@latest",
        "--wsEndpoint=ws://127.0.0.1:9222/devtools/browser/<id>"
      ]
    }
  }
}

Production with logging

{
  "mcpServers": {
    "chrome-devtools-prod": {
      "command": "npx",
      "args": [
        "chrome-devtools-mcp@latest",
        "--browserUrl=http://127.0.0.1:9222",
        "--isolated=true",
        "--logFile=/var/log/chrome-devtools-mcp.log"
      ],
      "env": {
        "DEBUG": "*"
      }
    }
  }
}

Security Considerations

Data exposure warning

Official Chrome DevTools MCP security notice:

"chrome-devtools-mcp exposes content of the browser instance to the MCP clients allowing them to inspect, debug, and modify any data in the browser or DevTools. Avoid sharing sensitive or personal information that you don't want to share with MCP clients."

Best practices

  1. Use isolated mode for sensitive workflows

- --isolated=true creates temporary user data directories - Automatically cleaned after browser closes - Prevents data persistence between sessions

  1. Certificate handling caution

- --acceptInsecureCerts is a security risk - Only use in development/testing environments - Never use with sensitive data

  1. User data directory management

- Default directory shared across all instances - Not cleared between runs - Contains cookies, cache, browsing history - Use --isolated or custom --user-data-dir for control

  1. WebSocket authentication

- Use --wsHeaders for authenticated connections - Example: --wsHeaders='{"Authorization":"Bearer token"}' - Only works with --wsEndpoint

Technical Constraints

Verified limitations

  1. Browser support: Chrome/Chromium only (no Firefox, Safari, Edge legacy)
  2. Node.js requirement: v20.19 or newer (latest maintenance LTS)
  3. Browser lifecycle: Browser auto-starts on first tool use, NOT on MCP server connection
  4. Default persistence: User data directory persists between runs unless --isolated=true is used
  5. Permission requirements:

- macOS Full Disk Access may be required for some MCP clients - Chrome needs permission to create its own sandboxes - May need to disable MCP client sandboxing or use external Chrome instance

  1. Screenshot formats: Specified format (JPEG/PNG) for initial capture, final output uses WebP with PNG fallback
  2. Tool availability: All 27 tools available immediately after connection; no progressive unlocking

Resources and Documentation

Official sources

Core Web Vitals

Tools

Related Skill Files

  • WORKFLOWS.md - Detailed workflow patterns and multi-step processes
  • METRICS.md - Complete Core Web Vitals thresholds and measurement guide
  • TOOLS.md - Comprehensive tool parameter reference and examples

Version Information

  • MCP Server Version: v0.5.1 (October 17, 2025)
  • Tool Count: 27 tools
  • Core Web Vitals Update: INP replaced FID on March 12, 2024
  • Current Metrics: INP, LCP, CLS (TBT is lab proxy, not Core Web Vital)

平台分布

Claude Code

26.73%
按下载量换算74

OpenCode

26.27%
按下载量换算72

Antigravity

20.16%
按下载量换算55

windsurf

14.18%
按下载量换算39

Cursor

8.26%
按下载量换算23

Gemini CLI

3.29%
按下载量换算9

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills