Chrome DevTools MCP: Let Your AI Agent Debug Your App

Give your AI agent access to your running application. They can see errors, inspect the network tab, check the DOM, and debug issues while you work.

Your AI assistant can’t see what’s happening in your browser. You describe a bug, they guess at fixes, and it’s usually wrong because they don’t have the actual error message or network data.

Chrome DevTools MCP fixes that. It gives your AI agent access to your running app. They can take screenshots, see what’s in the DOM, check network requests, run JavaScript, and see console errors. Same stuff you see in DevTools.

Update: the install configs now use the real package

The first version of this post told you to run @anthropic-ai/chrome-devtools-mcp. That package doesn’t exist on npm. The server is published by the Chrome DevTools team as chrome-devtools-mcp, and the setup steps below now follow its client configuration guide.

You install an MCP server that talks to your browser. Now when you describe a bug, your AI agent can actually see it instead of guessing.

Here’s what happens in practice. You tell Claude “there’s a form that won’t submit.” Claude takes a screenshot, inspects the network tab, sees the API returned a 401, checks the error handler code, and tells you exactly what’s broken. No more guessing. No more “have you tried…?”

Installation

Most clients take the same config:

mcp.json
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
}
}
}

Cursor: Go to Cursor Settings -> MCP -> New MCP Server and paste the config above.

Claude Code:

Terminal window
claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest

VS Code (GitHub Copilot):

Terminal window
code --add-mcp '{"name":"io.github.ChromeDevTools/chrome-devtools-mcp","command":"npx","args":["-y","chrome-devtools-mcp"],"env":{}}'

OpenAI Codex:

Terminal window
codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest

Gemini CLI:

Terminal window
gemini mcp add chrome-devtools npx chrome-devtools-mcp@latest

GitHub Copilot CLI: Start copilot, run /mcp add, name the server chrome-devtools, pick Local, and set the command to npx -y chrome-devtools-mcp@latest.

JetBrains IDEs (IntelliJ, WebStorm, PyCharm): Go to Settings | Tools | AI Assistant | Model Context Protocol (MCP) -> Add and paste the config above.

After adding the config, restart your editor. In your next conversation, tell your AI agent: “Use Chrome DevTools MCP to inspect my app at localhost:3000.” It’ll ask for permission (for safety), connect to your browser, and start debugging.

The value is immediate. Your AI agent goes from making educated guesses to seeing actual errors. When something breaks in production but works locally, or performance tanks under load, your agent can now see what you see and debug in real-time.


Trevor I. Lasn

Trevor I. Lasn

Building whiteheap.com and 0xinsider.com.



Related Articles

Check out these related articles that might be useful for you. They cover similar topics and provide additional insights.

MCP
6 min read

Build an MCP server in a Next.js route with mcp-handler and createMcpHandler, then connect it to Claude Code, Gemini CLI, Cursor and other MCP clients.

Jan 28, 2026
Read article
MCP
5 min read

The sequential thinking MCP server has an AI agent reason one numbered thought at a time, revising or branching as it goes. What it does and when it helps.

Sep 7, 2025
Read article
AI agents
6 min read

ARD is a new proposal from Google, Microsoft and Hugging Face for how agents find tools. What's in it, what 0xinsider publishes, and what a registry returns.

Sep 23, 2026
Read article
AI agents
5 min read

An exploration of Google's new open protocol that enables different AI systems to exchange information and collaborate

Apr 13, 2025
Read article
MCP
3 min read

The Next.js DevTools MCP connects Claude and Cursor to your running dev server. I use it every day.

Nov 2, 2025
Read article
Security
4 min read

DeepSeek Harness sends your session log, plugin list and device id to DeepSeek by default. The documented opt-out stops one of four uploads.

Nov 11, 2026
Read article
MCP
5 min read

Context7 MCP server pulls version-specific library docs into Claude Code, Cursor, and other AI editors. Setup guide and how it works.

Nov 1, 2025
Read article
AI agents
6 min read

Superpowers is a plugin for Claude Code that enforces planning, TDD, and debugging workflows. Setup guide with real examples.

Nov 4, 2025
Read article
MCP
7 min read

Connect Google Search Console to Claude Code with the mcp-gsc MCP server: setup with uvx, the tools it adds, and the indexing and CTR problems it found.

Feb 15, 2026
Read article

This article was originally published on https://www.trevorlasn.com/blog/chrome-devtools-mcp. It was written by a human and polished using grammar tools for clarity.