chrome-devtools by chromedevtools/chrome-devtools-mcp
npx skills add https://github.com/chromedevtools/chrome-devtools-mcp --skill chrome-devtools浏览器生命周期:浏览器在首次工具调用时自动启动,使用持久化的 Chrome 用户配置文件。可通过 MCP 服务器配置中的 CLI 参数进行配置:npx chrome-devtools-mcp@latest --help。
页面选择:工具在当前选定的页面上操作。使用 list_pages 查看可用页面,然后使用 select_page 切换上下文。
元素交互:使用 take_snapshot 获取带有元素 uid 的页面结构。每个元素都有一个唯一的 uid 用于交互。如果找不到元素,请重新获取快照——该元素可能已被移除或页面已更改。
navigate_page 或 new_page广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
wait_for 以确保内容加载完成(如果你知道要等待什么)。take_snapshot 来了解页面结构uid 进行 click、fill 等操作。filePath 参数pageIdx、pageSize)和筛选(types)来最小化数据量includeSnapshot: false,除非你需要更新页面状态take_snapshot(基于文本,速度更快,更适合自动化)take_screenshot(当用户需要查看视觉状态时)evaluate_script你可以并行发送多个工具调用,但需保持正确的顺序:导航 → 等待 → 快照 → 交互。
如果 chrome-devtools-mcp 功能不足,请引导用户使用 Chrome DevTools UI:
如果启动 chrome-devtools-mcp 或 Chrome 时出现错误,请参考 https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/troubleshooting.md。
每周安装量
857
代码仓库
GitHub 星标数
28.2K
首次出现
2026年1月27日
安全审计
安装于
opencode791
codex790
gemini-cli766
github-copilot745
kimi-cli674
amp666
Browser lifecycle : Browser starts automatically on first tool call using a persistent Chrome profile. Configure via CLI args in the MCP server configuration: npx chrome-devtools-mcp@latest --help.
Page selection : Tools operate on the currently selected page. Use list_pages to see available pages, then select_page to switch context.
Element interaction : Use take_snapshot to get page structure with element uids. Each element has a unique uid for interaction. If an element isn't found, take a fresh snapshot - the element may have been removed or the page changed.
navigate_page or new_pagewait_for to ensure content is loaded if you know what you look for.take_snapshot to understand page structureuids from snapshot for click, fill, etc.filePath parameter for large outputs (screenshots, snapshots, traces)pageIdx, pageSize) and filtering (types) to minimize dataincludeSnapshot: false on input actions unless you need updated page statetake_snapshot (text-based, faster, better for automation)take_screenshot (when user needs to see visual state)evaluate_script for data not in accessibility treeYou can send multiple tool calls in parallel, but maintain correct order: navigate → wait → snapshot → interact.
If chrome-devtools-mcp is insufficient, guide users to use Chrome DevTools UI:
If there are errors launching chrome-devtools-mcp or Chrome, refer to https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/troubleshooting.md.
Weekly Installs
857
Repository
GitHub Stars
28.2K
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode791
codex790
gemini-cli766
github-copilot745
kimi-cli674
amp666
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装