How to set up Chrome DevTools MCP
- Check the publisher’s Node.js and Chrome requirements. Add the stdio server from Claude Code and check /mcp.
- Use a separate browser profile with test data and start with a page you own or have permission to debug.
claude mcp add --transport stdio chrome-devtools -- npx -y chrome-devtools-mcp@latestInspect what actually happened in Chrome
Chrome DevTools MCP gives Claude a browser session it can inspect alongside your source code. It can capture screenshots, look at console and network activity, and record a performance trace. Use it when a visual symptom could have several causes, such as a preview page whose hero image is late because a request starts slowly.
Set up a dedicated browser session
Check the publisher’s Node.js, npm, and Chrome requirements. Chrome provides a plugin setup for Claude Code and documents configuration for other clients in its repository. Use a dedicated test profile with fixture data, since the connection gives your MCP client access to the page content and browser actions in that session.
Trace one slow page load
Open a local route you maintain and ask Claude to capture a screenshot and a navigation trace. Measure one thing, such as the timing of the hero image request, and ask which observations support the proposed fix. Repeat the trace under the same conditions after making the change and compare the results.