MCP Catalogs
首页

chrome-devtools-mcp

by ChromeDevTools·39,757·综合分 65

Chrome DevTools MCP 服务器让 AI 编码代理通过 MCP 协议控制和检查实时 Chrome 浏览器。

browser-automationdeveloper-toolsweb-scraping
2,527
Forks
97
活跃 Issue
本月
最近提交
2 天前
收录于

概述

Chrome DevTools for Agents 为 AI 编码助手提供对 Chrome 完整功能的访问,包括性能分析、网络调试和浏览器自动化。它使用 Puppeteer 实现可靠自动化,利用 Chrome DevTools 进行深度检查。服务器提供记录追踪、截图、分析网络请求和访问带源映射堆栈跟踪的控制台消息等功能。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI 代理自动执行网页测试和验证
:Web 应用性能分析和优化
:通过 AI 驱动的检查调试 Web 应用程序
:支持哪些浏览器?
:是否收集使用数据?

什么时候选它

当您的 AI 编码代理需要在开发和测试工作流程中完全控制和调试 Chrome 浏览器实例时。

什么时候不要选它

如果您需要为非 Chrome 浏览器进行浏览器自动化,或者您担心 Google 收集使用统计信息(尽管可以选择退出)。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • navigatenavigate(url: string)

    Navigate the browser to a specific URL

  • clickclick(selector: string)

    Click on an element matching the given selector

  • typetype(selector: string, text: string)

    Type text into an element matching the given selector

  • screenshotscreenshot()

    Take a screenshot of the current page

  • get_elementget_element(selector: string)

    Get information about an element matching the given selector

  • get_elementsget_elements(selector: string)

    Get information about all elements matching the given selector

  • get_page_titleget_page_title()

    Get the title of the current page

  • get_page_sourceget_page_source()

    Get the HTML source of the current page

  • get_console_messagesget_console_messages()

    Get console messages from the browser

  • get_network_requestsget_network_requests()

    Get network requests made by the browser

  • evaluateevaluate(script: string)

    Execute JavaScript in the current page

  • wait_for_selectorwait_for_selector(selector: string)

    Wait for an element to appear on the page

说明:Tool names and descriptions extracted from the tool reference documentation mentioned in the README.

可对比工具

playwright-mcpbrowserless-mcppuppeteer

安装

安装

将以下配置添加到您的 MCP 客户端:

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": ["-y", "chrome-devtools-mcp@latest"]
    }
  }
}

对于无头模式下的基本浏览器任务:

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": ["-y", "chrome-devtools-mcp@latest", "--slim", "--headless"]
    }
  }
}

FAQ

支持哪些浏览器?
Chrome DevTools MCP 官方仅支持 Google Chrome 和 Chrome for Testing。其他基于 Chromium 的浏览器可能可用但不保证。
是否收集使用数据?
是的,Google 默认收集使用统计数据以提高可靠性和性能。您可以使用 --no-usage-statistics 标志选择退出。

Hacker News 讨论

开发者社区最近的相关讨论。

chrome-devtools-mcp 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。