chrome-mcp
Installation
SKILL.md
Chrome DevTools MCP
The Chrome DevTools MCP server gives the agent a real Chrome: it opens pages, takes screenshots and accessibility snapshots, runs scripts in the page, reads the console and network, emulates viewports, color schemes and throttling, records performance traces and runs Lighthouse. This skill says when to reach for it, what was learned using it, and how to set it up. What each tool does is in the tool descriptions and in the upstream skills (npx skills add ChromeDevTools/chrome-devtools-mcp).
When to use it
Whenever a browser can answer, ask the browser. In particular:
- Before reporting UI work as done. Open every story or page the change touches. Green unit tests in jsdom or happy-dom show neither the layout nor what the dev server actually serves.
- When the user asks for a screenshot or to see something. This server is the tool for rendering pages, HTML prototypes and mockups included.
- For interaction states. Trigger the real hover, press, keyboard focus, disabled or busy state and read the result: a screenshot at rest proves nothing about states.
- For subtle CSS. 1px borders, focus rings, alignment and overflow hide in a zoomed-out screenshot: measure them with
getComputedStyleandgetBoundingClientRect. - For a visual bug the user reports. Reproduce it, try the fix live with an injected style, then write it to the source and confirm.
- For questions about browser behavior. Which
srcsetcandidate wins, whether a DOM API throws, what a property returns: run a probe page (data:text/html,…) instead of answering from memory or specs. - For performance. Measure in this Chrome, with a bench page or
performance_start_trace, never in Node with a fake DOM.
Chrome is one engine. For Safari, Firefox, Edge and real mobile devices use the browserstack-mcp skill.