chrome-devtools-mcp-skill
Original:🇺🇸 English
Translated
1 scripts
Use Chrome DevTools MCP through UXC over local stdio for page navigation, DOM/a11y snapshots, network inspection, console inspection, and performance tooling, with a live-browser autoConnect default and optional browserUrl or isolated fallback modes.
10installs
Sourceholon-run/uxc
Added on
NPX Install
npx skill4agent add holon-run/uxc chrome-devtools-mcp-skillTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Chrome DevTools MCP Skill
Use this skill to run Chrome DevTools MCP operations through using a fixed stdio endpoint.
uxcReuse the skill for generic MCP discovery, daemon reuse, JSON envelope parsing, and error handling.
uxcPrerequisites
- is installed and available in
uxc.PATH - is available in
npx(Node.js installed).PATH - Chrome 144+ is running locally with remote debugging enabled from if you use the default live-browser flow.
chrome://inspect/#remote-debugging - Network access is available for first-time package fetch.
chrome-devtools-mcp
Core Workflow (Chrome DevTools MCP-Specific)
Endpoint candidate inputs before finalizing:
- Raw package form from official docs:
npx chrome-devtools-mcp@latest
- Reliable non-interactive form:
npx -y chrome-devtools-mcp@latest
- Default live-browser endpoint for this skill:
npx -y chrome-devtools-mcp@latest --autoConnect --no-usage-statistics
- Explicit browser-url endpoint:
npx -y chrome-devtools-mcp@latest --browserUrl http://127.0.0.1:9222 --no-usage-statistics
- Fallback isolated endpoint:
npx -y chrome-devtools-mcp@latest --headless --isolated --no-usage-statistics
- Running local Chrome auto-connect mode:
npx -y chrome-devtools-mcp@latest --autoConnect --no-usage-statistics
- Verify protocol/path from official source and probe:
- Official source:
https://github.com/ChromeDevTools/chrome-devtools-mcp
- probe candidate endpoints with:
uxc "npx -y chrome-devtools-mcp@latest --autoConnect --no-usage-statistics" -h
- Confirm protocol is MCP stdio (in envelope).
protocol == "mcp"
- Official source:
- Detect auth requirement explicitly:
- Run host help or a minimal read call and inspect envelope.
- Default local stdio flow requires no OAuth/API key.
- Existing Chrome attachment requires remote debugging to be enabled separately, but not API auth.
- Use a fixed link command by default:
command -v chrome-devtools-mcp-cli- If missing, create it:
uxc link chrome-devtools-mcp-cli "npx -y chrome-devtools-mcp@latest --autoConnect --no-usage-statistics"
- Optional explicit browser-url link:
command -v chrome-devtools-mcp-portuxc link chrome-devtools-mcp-port "npx -y chrome-devtools-mcp@latest --browserUrl http://127.0.0.1:9222 --no-usage-statistics"
- Optional isolated fallback link:
command -v chrome-devtools-mcp-isolateduxc link chrome-devtools-mcp-isolated "npx -y chrome-devtools-mcp@latest --headless --isolated --no-usage-statistics"
chrome-devtools-mcp-cli -h
- Inspect operation schema before execution:
chrome-devtools-mcp-cli new_page -hchrome-devtools-mcp-cli take_snapshot -hchrome-devtools-mcp-cli list_network_requests -hchrome-devtools-mcp-cli lighthouse_audit -h
- Prefer read-first interaction:
- Start with ,
new_page,list_pages,take_snapshot, orlist_network_requests.list_console_messages
- Start with
- Confirm before mutating page state:
clickfillfill_formpress_keyupload_fileevaluate_scripthandle_dialog
Guardrails
- Keep automation on the JSON output envelope; do not rely on .
--text - Use as the default command path.
chrome-devtools-mcp-cli - Prefer the live-browser default endpoint when you need real logged-in state, current tabs, network diagnostics, console inspection, or performance analysis.
- Prefer first when browser-side remote debugging is available.
--autoConnect - Use only when you intentionally run a Chrome instance with
chrome-devtools-mcp-port.--remote-debugging-port=9222 - If no debuggable Chrome is available, fallback to .
chrome-devtools-mcp-isolated - Prefer over screenshots for model-action loops.
take_snapshot - Prefer /
list_network_requestsover raw script evaluation when inspecting network behavior.get_network_request - Treat ,
lighthouse_audit, andperformance_start_traceas heavier operations; use them intentionally.take_memory_snapshot - Use only when an existing higher-level DevTools tool cannot answer the question.
evaluate_script
References
- Invocation patterns:
references/usage-patterns.md