← 返回 Skills 市场
andeymei

Chrome DevTools MCP Manager

作者 andeymei · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
179
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install chrome-devtools-mcp-manager
功能描述
Manage chrome-devtools-mcp service and OpenClaw's built-in Chrome browser for MCP-based browser automation. Use when user needs to use chrome-devtools-mcp fu...
使用说明 (SKILL.md)

Chrome DevTools MCP Manager

Manage OpenClaw's built-in Chrome browser and chrome-devtools-mcp integration for browser automation via MCP protocol.

Overview

This skill manages two components:

  1. OpenClaw's Built-in Chrome (openclaw profile) - The browser instance
  2. chrome-devtools-mcp - The MCP server that exposes browser control tools

Architecture

┌─────────────────┐     ┌─────────────────────┐     ┌─────────────────┐
│   OpenClaw      │────▶│  Built-in Chrome    │◀────│  chrome-devtools│
│   (browser tool)│     │  (CDP Port 18800)   │     │  -mcp (MCP srv) │
└─────────────────┘     └─────────────────────┘     └─────────────────┘
                                                        │
                                                        ▼
                                                ┌─────────────────┐
                                                │  MCP Client     │
                                                │  (mcporter etc) │
                                                └─────────────────┘

Built-in Chrome (openclaw profile)

  • CDP Port: 18800
  • Managed by: OpenClaw's browser tool
  • Auto-start: Yes, via browser(action: "open")
  • Profile isolation: Separate user data directory

chrome-devtools-mcp

  • Type: MCP (Model Context Protocol) server
  • Transport: stdio (not HTTP)
  • Lifecycle: Runs per MCP client session
  • Connection: Connects to Chrome via CDP on port 18800

Component Status Check

1. Check Built-in Chrome Status

browser({
  action: "status",
  profile: "openclaw"
})

Expected running state:

{
  "enabled": true,
  "profile": "openclaw",
  "running": true,
  "cdpReady": true,
  "cdpPort": 18800,
  "cdpUrl": "http://127.0.0.1:18800"
}

2. Verify CDP Endpoint

Invoke-WebRequest -Uri "http://localhost:18800/json/version" -Method GET

Expected response:

{
  "Browser": "Chrome/134.0.0.0",
  "Protocol-Version": "1.3",
  "User-Agent": "Mozilla/5.0...",
  "V8-Version": "...",
  "WebKit-Version": "...",
  "webSocketDebuggerUrl": "ws://localhost:18800/devtools/browser/..."
}

3. Check MCP Server Status

Since chrome-devtools-mcp runs as a stdio service per MCP client session, there's no persistent process to check. Instead, verify the MCP configuration is correct.

Managing Built-in Chrome

Start Built-in Chrome

// Open a blank page to start Chrome
browser({
  action: "open",
  profile: "openclaw",
  url: "about:blank"
})

// Or navigate to a specific URL
browser({
  action: "open",
  profile: "openclaw",
  url: "https://chat.deepseek.com/"
})

Stop Built-in Chrome

browser({
  action: "stop",
  profile: "openclaw"
})

Restart Built-in Chrome

// Stop first
browser({ action: "stop", profile: "openclaw" })

// Then start
browser({ action: "open", profile: "openclaw", url: "about:blank" })

MCP Server Configuration

For mcporter CLI

Configure mcporter to use chrome-devtools-mcp:

# Add MCP server to mcporter
mcporter server add chrome-devtools \
  --command "npx" \
  --args "chrome-devtools-mcp@latest,--browserUrl,http://127.0.0.1:18800,--no-usage-statistics"

# Or with auto-connect (Chrome will be started if not running)
mcporter server add chrome-devtools \
  --command "npx" \
  --args "chrome-devtools-mcp@latest,--autoConnect,--no-usage-statistics"

For Claude Desktop / Other MCP Clients

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": [
        "chrome-devtools-mcp@latest",
        "--browserUrl", "http://127.0.0.1:18800",
        "--no-usage-statistics"
      ]
    }
  }
}

Environment Variables

# Disable usage statistics
$env:CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS = "1"

# Enable debug logging
$env:DEBUG = "*"

Complete Setup Workflow

First-Time Setup

  1. Verify built-in Chrome is ready:

    const status = await browser({ action: "status", profile: "openclaw" })
    if (!status.cdpReady) {
      await browser({ action: "open", profile: "openclaw", url: "about:blank" })
    }
    
  2. Test CDP connection:

    Invoke-WebRequest -Uri "http://localhost:18800/json/version"
    
  3. Configure MCP client (mcporter, Claude Desktop, etc.)

  4. Test MCP connection:

    mcporter call chrome-devtools.list_pages
    

Daily Usage Pattern

  1. Ensure Chrome is running (before MCP operations):

    const status = await browser({ action: "status", profile: "openclaw" })
    if (!status.cdpReady) {
      await browser({ action: "open", profile: "openclaw", url: "about:blank" })
      await new Promise(r => setTimeout(r, 2000))  // Wait for startup
    }
    
  2. Use MCP tools via mcporter or other MCP client

  3. Keep Chrome running for subsequent operations

Available MCP Tools

Once connected via chrome-devtools-mcp, these tools are available:

Page Management

  • list_pages - List all open tabs/pages
  • new_page - Create new tab
  • select_page - Switch to specific tab
  • close_page - Close a tab
  • navigate_page - Navigate to URL / back / forward / refresh

Interaction

  • click - Click element by uid
  • fill - Fill input field
  • type_text - Type text
  • press_key - Press keyboard key
  • select_option - Select dropdown option

Inspection

  • take_snapshot - Get accessibility tree snapshot
  • take_screenshot - Capture screenshot
  • evaluate_script - Execute JavaScript
  • wait_for - Wait for text/element

Browser State

  • get_browser_state - Get cookies, localStorage, etc.
  • set_browser_state - Set cookies, localStorage, etc.

Integration with Other Skills

Example: deepseek-web-query

This skill uses chrome-devtools-mcp via mcporter:

# 1. Ensure Chrome is running (via browser tool)
# 2. Use mcporter to call MCP tools
mcporter call chrome-devtools.navigate_page type: "url" url: "https://chat.deepseek.com/"
mcporter call chrome-devtools.take_snapshot
mcporter call chrome-devtools.type_text text: "查询内容"
mcporter call chrome-devtools.press_key key: "Enter"
mcporter call chrome-devtools.evaluate_script function: '() => document.body.innerText'

Troubleshooting

"CDP not ready"

Symptoms: browser({ action: "status" }) shows cdpReady: false

Solutions:

  1. Restart Chrome:
    browser({ action: "stop", profile: "openclaw" })
    browser({ action: "open", profile: "openclaw", url: "about:blank" })
    
  2. Check for port conflicts:
    Get-NetTCPConnection -LocalPort 18800
    

"Cannot connect to Chrome" from MCP

Symptoms: MCP server fails to connect

Solutions:

  1. Verify CDP endpoint is accessible:
    curl http://localhost:18800/json/version
    
  2. Check Windows Firewall isn't blocking localhost
  3. Ensure Chrome was started with remote debugging enabled (built-in profile does this automatically)

MCP server exits immediately

This is normal behavior! The MCP server:

  • Waits for JSON-RPC messages on stdin
  • Exits when stdin closes (client disconnects)
  • Is designed to be launched per-session by MCP clients

Port 18800 conflicts

Check what's using the port:

Get-NetTCPConnection -LocalPort 18800 | 
  Select-Object LocalPort, State, OwningProcess, @{Name="ProcessName";Expression={(Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue).Name}}

Kill conflicting process:

Get-Process -Id (Get-NetTCPConnection -LocalPort 18800).OwningProcess | Stop-Process -Force

Best Practices

  1. Always check Chrome status first before MCP operations
  2. Reuse browser sessions - Don't close Chrome between operations
  3. Use about:blank for quick startup when you don't need a specific page
  4. Configure MCP client once - The config persists across sessions
  5. Handle login states in your automation logic (e.g., deepseek-web-query handles DeepSeek login)

Quick Reference

Task Command
Check Chrome status browser({ action: "status", profile: "openclaw" })
Start Chrome browser({ action: "open", profile: "openclaw", url: "about:blank" })
Stop Chrome browser({ action: "stop", profile: "openclaw" })
Test CDP Invoke-WebRequest http://localhost:18800/json/version
Add MCP to mcporter mcporter server add chrome-devtools --command "npx" --args "..."
List MCP pages mcporter call chrome-devtools.list_pages

References

安全使用建议
This skill looks like a reasonable set of instructions for managing OpenClaw's built-in Chrome and connecting an MCP client, but note three things before proceeding: 1) The documentation assumes runtime use of npx and mcporter but the skill metadata does not declare those binaries; ensure npx and mcporter exist on your system before relying on these steps. 2) The mcporter examples use `npx chrome-devtools-mcp@latest` (unpinned). That causes a network fetch and execution of code from the npm registry at runtime — consider pinning to a specific, audited version (for example use `[email protected]`) or installing the package from a trusted release to avoid supply-chain risk. 3) Browser automation inherently allows executing arbitrary JS in page contexts (evaluate_script). Treat pages that contain sensitive data carefully; don't allow untrusted code or third parties to reuse this capability without review. If you want to reduce risk: require/pin a specific npm package version in the documentation, explicitly list required binaries (npx, mcporter) in the skill metadata, and verify the chrome-devtools-mcp package origin and checksum before use.
功能分析
Type: OpenClaw Skill Name: chrome-devtools-mcp-manager Version: 1.0.0 The skill is a legitimate utility designed to manage a Chrome browser instance and the 'chrome-devtools-mcp' server for browser automation. It provides standard instructions for the OpenClaw agent to start/stop the browser, verify CDP endpoints, and configure MCP clients using tools like 'npx' and 'mcporter'. No evidence of data exfiltration, malicious execution, or prompt injection was found in SKILL.md or _meta.json.
能力评估
Purpose & Capability
The SKILL.md describes managing OpenClaw's built-in Chrome and a chrome-devtools-mcp MCP server — that matches the name/description. However the instructions assume the presence of tools (npx, mcporter) without listing them in the declared requirements; that mismatch is sloppy and worth flagging because the skill implicitly depends on those tools being available.
Instruction Scope
Instructions stay within browser/MCP management (status/open/stop, check local CDP endpoint, configure mcporter). They also recommend using evaluate_script (execute JavaScript) which is normal for automation but can access page local data — this is expected for a browser automation tool but is a sensitive capability. The SKILL.md does not instruct reading unrelated system files or secrets.
Install Mechanism
No formal install spec is provided, but the docs instruct using `npx chrome-devtools-mcp@latest` in mcporter/clients. That means runtime code is fetched from the npm registry (latest tag) when mcporter runs. Fetching unpinned packages at runtime can introduce supply-chain risk; the skill does not declare or pin a specific package/version and does not declare npx as a required binary.
Credentials
The skill does not request credentials or config paths. It suggests setting non-sensitive environment flags (CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS, DEBUG) which are proportional to the task. No secret-env variables are requested.
Persistence & Privilege
always is false and the skill is instruction-only; it does not request persistent or elevated platform privileges and does not modify other skills' configs. Autonomous invocation is allowed by default but not combined with other high-risk factors.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install chrome-devtools-mcp-manager
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /chrome-devtools-mcp-manager 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Manage chrome-devtools-mcp service and OpenClaw's built-in Chrome browser for MCP-based browser automation
元数据
Slug chrome-devtools-mcp-manager
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Chrome DevTools MCP Manager 是什么?

Manage chrome-devtools-mcp service and OpenClaw's built-in Chrome browser for MCP-based browser automation. Use when user needs to use chrome-devtools-mcp fu... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 179 次。

如何安装 Chrome DevTools MCP Manager?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install chrome-devtools-mcp-manager」即可一键安装,无需额外配置。

Chrome DevTools MCP Manager 是免费的吗?

是的,Chrome DevTools MCP Manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Chrome DevTools MCP Manager 支持哪些平台?

Chrome DevTools MCP Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Chrome DevTools MCP Manager?

由 andeymei(@andeymei)开发并维护,当前版本 v1.0.0。

💬 留言讨论