AI Skill Hub 强烈推荐:Chrome DevTools MCP 是一款优质的MCP工具。在 GitHub 上收获超过 39.4k 颗 Star,AI 综合评分 8.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
为编码Agent提供Chrome DevTools集成的开源MCP工具。支持浏览器自动化、调试和开发工具交互,帮助AI Agent进行网页测试、元素检查、性能分析等任务,适合AI工程师和自动化开发者。
Chrome DevTools MCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
为编码Agent提供Chrome DevTools集成的开源MCP工具。支持浏览器自动化、调试和开发工具交互,帮助AI Agent进行网页测试、元素检查、性能分析等任务,适合AI工程师和自动化开发者。
Chrome DevTools MCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/ChromeDevTools/chrome-devtools-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"chrome-devtools-mcp": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 Chrome DevTools MCP 执行以下任务... Claude: [自动调用 Chrome DevTools MCP MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"chrome_devtools_mcp": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Chrome DevTools for agents (chrome-devtools-mcp) lets your coding agent (such as Antigravity, Claude, Cursor or Copilot) control and inspect a live Chrome browser. It acts as a Model-Context-Protocol (MCP) server, giving your AI coding assistant access to the full power of Chrome DevTools for reliable automation, in-depth debugging, and performance analysis. A CLI is also provided for use without MCP.
- Get performance insights: Uses Chrome DevTools to record traces and extract actionable performance insights. - Advanced browser debugging: Analyze network requests, take screenshots and check browser console messages (with source-mapped stack traces). - Reliable automation. Uses puppeteer to automate actions in Chrome and automatically wait for action results.
Add the following config to your MCP client:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
}
}
}
[!NOTE] Using chrome-devtools-mcp@latest ensures that your MCP client will always use the latest version of the Chrome DevTools MCP server.
If you are interested in doing only basic browser tasks, use the --slim mode:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest", "--slim", "--headless"]
}
}
}
See Slim tool reference.
Google collects usage statistics (such as tool invocation success rates, latency, and environment information) to improve the reliability and performance of Chrome DevTools MCP.
Data collection is enabled by default. You can opt-out by passing the --no-usage-statistics flag when starting the server:
"args": ["-y", "chrome-devtools-mcp@latest", "--no-usage-statistics"]
Google handles this data in accordance with the Google Privacy Policy.
Google's collection of usage statistics for Chrome DevTools MCP is independent from the Chrome browser's usage statistics. Opting out of Chrome metrics does not automatically opt you out of this tool, and vice-versa.
Collection is disabled if CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS or CI env variables are set.
<details> <summary>Amp</summary> Follow https://ampcode.com/manual#mcp and use the config provided above. You can also install the Chrome DevTools MCP server using the CLI:
amp mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
</details>
<details> <summary>Antigravity</summary>
To use the Chrome DevTools MCP server follow the instructions from <a href="https://antigravity.google/docs/mcp">Antigravity's docs</a> to install a custom MCP server. Add the following config to the MCP servers config:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--browser-url=http://127.0.0.1:9222",
"-y"
]
}
}
}
This will make the Chrome DevTools MCP server automatically connect to the browser that Antigravity is using. If you are not using port 9222, make sure to adjust accordingly.
Chrome DevTools MCP will not start the browser instance automatically using this approach because the Chrome DevTools MCP server connects to Antigravity's built-in browser. If the browser is not already running, you have to start it first by clicking the Chrome icon at the top right corner.
</details>
<details> <summary>Claude Code</summary>
Install via CLI (MCP only)
Use the Claude Code CLI to add the Chrome DevTools MCP server (<a href="https://code.claude.com/docs/en/mcp">guide</a>):
claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest
Install as a Plugin (MCP + Skills)
[!NOTE] If you already had Chrome DevTools MCP installed previously for Claude Code, make sure to remove it first from your installation and configuration files.
To install Chrome DevTools MCP with skills, add the marketplace registry in Claude Code:
/plugin marketplace add ChromeDevTools/chrome-devtools-mcp
Then, install the plugin:
/plugin install chrome-devtools-mcp@chrome-devtools-plugins
Restart Claude Code to have the MCP server and skills load (check with /skills).
[!TIP] If the plugin installation fails with a Failed to clone repository error (e.g., HTTPS connectivity issues behind a corporate firewall), see the troubleshooting guide for workarounds, or use the CLI installation method above instead.
</details>
<details> <summary>Cline</summary> Follow https://docs.cline.bot/mcp/configuring-mcp-servers and use the config provided above. </details>
<details> <summary>Codex</summary> Follow the <a href="https://developers.openai.com/codex/mcp/#configure-with-the-cli">configure MCP guide</a> using the standard config from above. You can also install the Chrome DevTools MCP server using the Codex CLI:
codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
On Windows 11
Configure the Chrome install location and increase the startup timeout by updating .codex/config.toml and adding the following env and startup_timeout_ms parameters:
[mcp_servers.chrome-devtools]
command = "cmd"
args = [
"/c",
"npx",
"-y",
"chrome-devtools-mcp@latest",
]
env = { SystemRoot="C:\\Windows", PROGRAMFILES="C:\\Program Files" }
startup_timeout_ms = 20_000
</details>
<details> <summary>Command Code</summary>
Use the Command Code CLI to add the Chrome DevTools MCP server (<a href="https://commandcode.ai/docs/mcp">MCP guide</a>):
cmd mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest
</details>
<details> <summary>Copilot CLI</summary>
Start Copilot CLI:
copilot
Start the dialog to add a new MCP server by running:
/mcp add
Configure the following fields and press CTRL+S to save the configuration:
chrome-devtools[1] Localnpx -y chrome-devtools-mcp@latest</details>
<details> <summary>Copilot / VS Code</summary>
Install as a Plugin (Recommended)
The easiest way to get up and running is to install chrome-devtools-mcp as an agent plugin. This bundles the MCP server and all skills together, so your agent gets both the tools and the expert guidance it needs to use them effectively.
Cmd+Shift+P on macOS or Ctrl+Shift+P on Windows/Linux).ChromeDevTools/chrome-devtools-mcp.That's it! Your agent is now supercharged with Chrome DevTools capabilities.
---
Install as an MCP Server (MCP only)
Click the button to install:
Or install manually:
Follow the VS Code MCP configuration guide using the standard config from above, or use the CLI:
For macOS and Linux:
code --add-mcp '{"name":"io.github.ChromeDevTools/chrome-devtools-mcp","command":"npx","args":["-y","chrome-devtools-mcp"],"env":{}}'
For Windows (PowerShell):
code --add-mcp '{"""name""":"""io.github.ChromeDevTools/chrome-devtools-mcp""","""command""":"""npx""","""args""":["""-y""","""chrome-devtools-mcp"""]}'
</details>
<details> <summary>Cursor</summary>
Click the button to install:
<img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Install in Cursor">
Or install manually:
Go to Cursor Settings -> MCP -> New MCP Server. Use the config provided above.
</details>
<details> <summary>Factory CLI</summary> Use the Factory CLI to add the Chrome DevTools MCP server (<a href="https://docs.factory.ai/cli/configuration/mcp">guide</a>):
droid mcp add chrome-devtools "npx -y chrome-devtools-mcp@latest"
</details>
<details> <summary>Gemini CLI</summary> Install the Chrome DevTools MCP server using the Gemini CLI.
Project wide:
```bash
The Chrome DevTools MCP server supports the following configuration option:
- --autoConnect/ --auto-connect If specified, automatically connects to a browser (Chrome 144+) running locally from the user data directory identified by the channel param (default channel is stable). Requires the remote debugging server to be started in the Chrome instance via chrome://inspect/#remote-debugging. - Type: boolean - Default: false
- --browserUrl/ --browser-url, -u Connect to a running, debuggable Chrome instance (e.g. http://127.0.0.1:9222). For more details see: https://github.com/ChromeDevTools/chrome-devtools-mcp#connecting-to-a-running-chrome-instance. - Type: string
- --wsEndpoint/ --ws-endpoint, -w WebSocket endpoint to connect to a running Chrome instance (e.g., ws://127.0.0.1:9222/devtools/browser/<id>). Alternative to --browserUrl. - Type: string
- --wsHeaders/ --ws-headers Custom headers for WebSocket connection in JSON format (e.g., '{"Authorization":"Bearer token"}'). Only works with --wsEndpoint. - Type: string
- --headless Whether to run in headless (no UI) mode. - Type: boolean - Default: false
- --executablePath/ --executable-path, -e Path to custom Chrome executable. - Type: string
- --isolated If specified, creates a temporary user-data-dir that is automatically cleaned up after the browser is closed. Defaults to false. - Type: boolean
- --userDataDir/ --user-data-dir Path to the user data directory for Chrome. Default is $HOME/.cache/chrome-devtools-mcp/chrome-profile$CHANNEL_SUFFIX_IF_NON_STABLE - Type: string
- --channel Specify a different Chrome channel that should be used. The default is the stable channel version. - Type: string - Choices: canary, dev, beta, stable
- --logFile/ --log-file Path to a file to write debug logs to. Set the env variable DEBUG to * to enable verbose logs. Useful for submitting bug reports. - Type: string
- --viewport Initial viewport size for the Chrome instances started by the server. For example, 1280x720. In headless mode, max size is 3840x2160px. - Type: string
- --proxyServer/ --proxy-server Proxy server configuration for Chrome passed as --proxy-server when launching the browser. See https://www.chromium.org/developers/design-documents/network-settings/ for details. - Type: string
- --acceptInsecureCerts/ --accept-insecure-certs If enabled, ignores errors relative to self-signed and expired certificates. Use with caution. - Type: boolean
- --experimentalPageIdRouting/ --experimental-page-id-routing Whether to expose pageId on page-scoped tools and route requests by page ID (useful for concurrent agent sessions). - Type: boolean
- --experimentalDevtools/ --experimental-devtools Whether to enable automation over DevTools targets - Type: boolean
- --experimentalVision/ --experimental-vision Whether to enable coordinate-based tools such as click_at(x,y). Usually requires a computer-use model able to produce accurate coordinates by looking at screenshots. - Type: boolean
- --experimentalMemory/ --experimental-memory Whether to enable experimental memory tools. - Type: boolean
- --experimentalStructuredContent/ --experimental-structured-content Whether to output structured formatted content. - Type: boolean
- --experimentalIncludeAllPages/ --experimental-include-all-pages Whether to include all kinds of pages such as webviews or background pages as pages. - Type: boolean
- --experimentalScreencast/ --experimental-screencast Exposes experimental screencast tools (requires ffmpeg). Install ffmpeg https://www.ffmpeg.org/download.html and ensure it is available in the MCP server PATH. - Type: boolean
- --experimentalFfmpegPath/ --experimental-ffmpeg-path Path to ffmpeg executable for screencast recording. - Type: string
- --categoryExperimentalWebmcp/ --category-experimental-webmcp Set to true to enable debugging WebMCP tools. Requires Chrome 149+ with the following flags: --enable-features=WebMCPTesting,DevToolsWebMCPSupport - Type: boolean
- --chromeArg/ --chrome-arg Additional arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp. - Type: array
- --ignoreDefaultChromeArg/ --ignore-default-chrome-arg Explicitly disable default arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp. - Type: array
- --categoryEmulation/ --category-emulation Set to false to exclude tools related to emulation. - Type: boolean - Default: true
- --categoryPerformance/ --category-performance Set to false to exclude tools related to performance. - Type: boolean - Default: true
- --categoryNetwork/ --category-network Set to false to exclude tools related to network. - Type: boolean - Default: true
- --categoryExtensions/ --category-extensions Set to true to include tools related to extensions. Note: This feature is currently only supported with a pipe connection. autoConnect, browserUrl, and wsEndpoint are not supported with this feature until 149 will be released. - Type: boolean - Default: false
- --categoryExperimentalThirdParty/ --category-experimental-third-party Set to true to enable third-party developer tools exposed by the inspected page itself - Type: boolean - Default: false
- --performanceCrux/ --performance-crux Set to false to disable sending URLs from performance traces to CrUX API to get field performance data. - Type: boolean - Default: true
- --usageStatistics/ --usage-statistics Set to false to opt-out of usage statistics collection. Google collects usage data to improve the tool, handled under the Google Privacy Policy (https://policies.google.com/privacy). This is independent from Chrome browser metrics. Disabled if CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS or CI env variables are set. - Type: boolean - Default: true
- --slim Exposes a "slim" set of 3 tools covering navigation, script execution and screenshots only. Useful for basic browser tasks. - Type: boolean
- --redactNetworkHeaders/ --redact-network-headers If true, redacts some of the network headers considered sensitive before returning to the client. - Type: boolean - Default: false
Pass them via the args property in the JSON configuration. For example:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--channel=canary",
"--headless=true",
"--isolated=true"
]
}
}
}
gemini extensions install --auto-update https://github.com/ChromeDevTools/chrome-devtools-mcp
**Globally:**
bash gemini mcp add -s user chrome-devtools npx chrome-devtools-mcp@latest
Alternatively, follow the <a href="https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md#how-to-set-up-your-mcp-server">MCP guide</a> and use the standard config from above.
</details>
<details>
<summary>Gemini Code Assist</summary>
Follow the <a href="https://cloud.google.com/gemini/docs/codeassist/use-agentic-chat-pair-programmer#configure-mcp-servers">configure MCP guide</a>
using the standard config from above.
</details>
<details>
<summary>JetBrains AI Assistant & Junie</summary>
Go to `Settings | Tools | AI Assistant | Model Context Protocol (MCP)` -> `Add`. Use the config provided above.
The same way chrome-devtools-mcp can be configured for JetBrains Junie in `Settings | Tools | Junie | MCP Settings` -> `Add`. Use the config provided above.
</details>
<details>
<summary>Kiro</summary>
In **Kiro Settings**, go to `Configure MCP` > `Open Workspace or User MCP Config` > Use the configuration snippet provided above.
Or, from the IDE **Activity Bar** > `Kiro` > `MCP Servers` > `Click Open MCP Config`. Use the configuration snippet provided above.
</details>
<details>
<summary>Katalon Studio</summary>
The Chrome DevTools MCP server can be used with <a href="https://docs.katalon.com/katalon-studio/studioassist/mcp-servers/setting-up-chrome-devtools-mcp-server-for-studioassist">Katalon StudioAssist</a> via an MCP proxy.
**Step 1:** Install the MCP proxy by following the <a href="https://docs.katalon.com/katalon-studio/studioassist/mcp-servers/setting-up-mcp-proxy-for-stdio-mcp-servers">MCP proxy setup guide</a>.
**Step 2:** Start the Chrome DevTools MCP server with the proxy:
bash mcp-proxy --transport streamablehttp --port 8080 -- npx -y chrome-devtools-mcp@latest
**Note:** You may need to pick another port if 8080 is already in use.
**Step 3:** In Katalon Studio, add the server to StudioAssist with the following settings:
- **Connection URL:** `http://127.0.0.1:8080/mcp`
- **Transport type:** `HTTP`
Once connected, the Chrome DevTools MCP tools will be available in StudioAssist.
</details>
<details>
<summary>Mistral Vibe</summary>
Add in ~/.vibe/config.toml:
toml [[mcp_servers]] name = "chrome-devtools" transport = "stdio" command = "npx" args = ["chrome-devtools-mcp@latest"]
</details>
<details>
<summary>OpenCode</summary>
Add the following configuration to your `opencode.json` file. If you don't have one, create it at `~/.config/opencode/opencode.json` (<a href="https://opencode.ai/docs/mcp-servers">guide</a>):
json { "$schema": "https://opencode.ai/config.json", "mcp": { "chrome-devtools": { "type": "local", "command": ["npx", "-y", "chrome-devtools-mcp@latest"] } } }
</details>
<details>
<summary>Qoder</summary>
In **Qoder Settings**, go to `MCP Server` > `+ Add` > Use the configuration snippet provided above.
Alternatively, follow the <a href="https://docs.qoder.com/user-guide/chat/model-context-protocol">MCP guide</a> and use the standard config from above.
</details>
<details>
<summary>Qoder CLI</summary>
Install the Chrome DevTools MCP server using the Qoder CLI (<a href="https://docs.qoder.com/cli/using-cli#mcp-servers">guide</a>):
**Project wide:**
bash qodercli mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
**Globally:**
bash qodercli mcp add -s user chrome-devtools -- npx chrome-devtools-mcp@latest ```
</details>
<details> <summary>Visual Studio</summary>
Click the button to install:
</details>
<details> <summary>Warp</summary>
Go to Settings | AI | Manage MCP Servers -> + Add to add an MCP Server. Use the config provided above.
</details>
<details> <summary>Windsurf</summary> Follow the <a href="https://docs.windsurf.com/windsurf/cascade/mcp#mcp-config-json">configure MCP guide</a> using the standard config from above. </details>
Chrome DevTools for agents 是一个让您的编码代理(如 Antigravity、Claude、Cursor 或 Copilot)控制和检查一个活跃 Chrome 浏览器的工具。它作为一个 Model-Context-Protocol (MCP) 服务器,给您的 AI 编码助手提供对 Chrome DevTools 的访问。
该项目提供了以下关键功能:获取性能见解、进阶浏览器调试和可靠的自动化。它使用 Chrome DevTools 来记录跟踪和提取可操作的性能见解,分析网络请求,截图和检查浏览器控制台消息(带有源映射的堆栈跟踪)。
该项目需要以下环境依赖和系统要求:Node.js LTS 版本、Chrome 当前稳定版或更新版本、npm。
要开始使用该项目,请在您的 MCP 客户端中添加以下配置:{ "mcpServers": { "chrome-devtools": { "command": "npx", "args": ["-y", "chrome-devtools-mcp@latest"] } } }。您也可以使用 --slim 模式来进行基本的浏览器任务。
使用该项目时,Google 会收集使用统计信息(如工具调用成功率、延迟和环境信息)来改进 Chrome DevTools MCP 的可靠性和性能。数据收集默认开启。您可以通过传递 --no-usage-statistics 标志来关闭数据收集。
该项目支持以下配置选项:--autoConnect/--auto-connect。如果指定,会自动连接到一个运行在本地的浏览器(Chrome 144+)中,从用户数据目录中识别的渠道参数(默认渠道是稳定)。需要在 Chrome 中启动远程调试服务器。
该项目可以作为一个 Gemini 扩展(MCP+技能)安装:gemini extensions install --auto-update https://github.com/ChromeDevTools/chrome-devtools-mcp。您也可以使用以下命令全局安装:gemini mcp add -s user chrome-devtools npx chrome-devtools-mcp@latest
工具参考 | 更改日志
高星开源项目,为AI Agent赋能浏览器交互能力。TypeScript实现稳定可靠,活跃维护中,是Agent自动化的重要基础设施。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
总体来看,Chrome DevTools MCP 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | chrome-devtools-mcp |
| 原始描述 | 开源MCP工具:Chrome DevTools for coding agents。⭐39.4k · TypeScript |
| Topics | 浏览器自动化DevTools集成调试工具Agent能力扩展Chrome |
| GitHub | https://github.com/ChromeDevTools/chrome-devtools-mcp |
| License | Apache-2.0 |
| 语言 | TypeScript |
收录时间:2026-05-13 · 更新时间:2026-05-16 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端