Chrome DevTools MCP: Let AI really know how to open the browser, look at the console, and check performanceChrome DevTools MCP:让AI真的会开浏览器、看控制台、查性能
MCP server officially maintained by the Google Chrome team. After installation, the AI assistant no longer relies on screenshots to guess pages, but can directly open a real browser, read console errors, capture network requests, and run performance tracking - front-end debugging has changed from "describing the problem" to "doing it yourself."
谷歌 Chrome 团队官方维护的 MCP 服务器。装上之后,AI 助手不再靠截图猜页面,而是能直接开真实浏览器、读控制台报错、抓网络请求、跑性能追踪——前端调试从「描述问题」变成「自己动手验证」。

It makes up for the biggest shortcomings of AI programming assistants它补上了AI编程助手最大的短板
Nowadays, most AI programming tools can only change the front-end code by looking at the file and guessing the effect. You have to refresh the page to see if the changes are correct.
This MCP server puts a real browser into the hands of the model: it can open pages, click on elements, read console logs, view network requests and responses, record and analyze performance tracking data.
Because it reads real runtime information instead of screenshots, the model will find specific errors when judging "Why is the screen white here?" instead of giving a bunch of general guesses.
现在多数 AI 编程工具改前端代码,只能看文件、猜效果。改完对不对,得你自己刷新页面看。
这个 MCP 服务器把真实浏览器交到模型手里:它能打开页面、点击元素、读取控制台日志、查看网络请求与响应、录制并分析性能追踪数据。
因为它读的是真实的运行时信息而不是截图,模型判断「这里为什么白屏」时会找到具体报错,而不是给一堆泛泛的猜测。

What it can do: Four high-frequency uses?能做什么:四个高频用法
Locating error reports: Let AI open the problematic page, read the exception stack in the console, and then go back to the code to make changes.
Verify changes: After changing the style or interaction, let it click on the page to confirm that the logic is running smoothly.
Performance troubleshooting: Run a performance trace to see which script on the first screen is stuck, and then provide optimization directions.
Interface reconciliation: Read the request parameters and return bodies in the network panel, and compare them with the back-end interface documents to find inconsistencies.
定位报错:让 AI 打开出问题的页面,读取控制台里的异常堆栈,再回到代码里改。
验证改动:改完样式或交互后,让它自己在页面上点一遍,确认逻辑跑通。
性能排查:跑一次性能追踪,看首屏是哪一段脚本卡住了,再给出优化方向。
接口对账:读取网络面板里的请求参数和返回体,对照后端接口文档找不一致的地方。

Installation: One command to register to your AI tool安装:一条命令注册到你的AI工具
This site provides offline npm package (2.5MB). When there is an Internet connection, the easiest way is to install it directly from the command line: npm i -g chrome-devtools-mcp@1.10.1.
Just add a record to the MCP configuration file of the AI tool, and the command is npx -y chrome-devtools-mcp@latest; when doing only simple tasks, you can add the --slim --headless parameter to make it run in interfaceless mode, which saves resources.
After changing the configuration, restart the AI tool. When you see browser-related capabilities appearing in the tool list, it means it is connected.
本站提供的是离线 npm 包(2.5MB)。有网络时最省事的做法是直接在命令行装:npm i -g chrome-devtools-mcp@1.10.1。
在 AI 工具的 MCP 配置文件里加一条记录即可,命令为 npx -y chrome-devtools-mcp@latest;只做简单任务时可以加 --slim --headless 参数让它以无界面模式运行,更省资源。
改完配置重启 AI 工具,看到工具列表里出现浏览器相关能力就说明接上了。

Use reminder使用提醒
It launches an independent browser instance without polluting the browser configuration and login status you use every day.
The first run will download a browser kernel of about 100 MB. It may fail when the network is unavailable. You can manually execute the installation command to warm up first.
Pay attention to boundaries when letting AI operate real sites: it is recommended that operations involving accounts and payments be run only locally or in a test environment.
它会启动一个独立的浏览器实例,不会污染你日常使用的浏览器配置和登录状态。
首次运行会下载一个约百兆的浏览器内核,网络不通时可能失败,可先手动执行安装命令预热。
让 AI 操作真实站点时注意边界:涉及账号、支付的操作建议只在本地或测试环境跑。

Notes使用提醒
This article is compiled from public sources and ships with the matching resource. Product features and pricing are subject to the official page. Resources are for learning and exchange only — please respect the original license.
本文整理自公开资料并附上配套资源;涉及产品的功能与价格以官方页面为准。资源仅供学习交流,请遵循来源许可。
⬇ Download · 点击下载:chrome-devtools-mcp v1.10.1(npm 离线包 tgz)(2.5MB)
谷歌官方开源,离线安装包。解压后在其目录执行 npm install ./package 或直接 npm i -g chrome-devtools-mcp@1.10.1 在线安装。
阅读与点赞数据保存在你的浏览器本地,欢迎留下你的想法。
今日正能量学一点,用一点;今天种下的种子,会长成明天的能力。去免费下载专区 →广告
评论 文明发言,让讨论更有价值