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.

Trevor I. Lasn Trevor I. Lasn
· 2 min read
Building 0xinsider, real-time Polymarket analytics for sports and esports.

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.

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

Cursor / Claude:

~/.cursor/mcp.json
{
"mcpServers": {
"chrome-devtools-mcp": {
"command": "npx",
"args": ["@anthropic-ai/chrome-devtools-mcp"]
}
}
}

VS Code + Claude:

~/.vscode/claude.json
{
"mcpServers": {
"chrome-devtools-mcp": {
"command": "npx",
"args": ["@anthropic-ai/chrome-devtools-mcp"]
}
}
}

OpenAI ChatGPT / ChatGPT Canvas:

~/.openai/mcp.json
{
"mcpServers": {
"chrome-devtools-mcp": {
"command": "npx",
"args": ["@anthropic-ai/chrome-devtools-mcp"]
}
}
}

Google Gemini:

~/.gemini/mcp.json
{
"servers": {
"chrome-devtools-mcp": {
"command": "npx",
"args": ["@anthropic-ai/chrome-devtools-mcp"]
}
}
}

GitHub Copilot:

~/.github/copilot-settings.json
{
"mcpServers": {
"chrome-devtools-mcp": {
"command": "npx",
"args": ["@anthropic-ai/chrome-devtools-mcp"]
}
}
}

JetBrains IDEs (IntelliJ, WebStorm, PyCharm):

~/.jetbrains/mcp.json
{
"mcpServers": {
"chrome-devtools-mcp": {
"command": "npx",
"args": ["@anthropic-ai/chrome-devtools-mcp"]
}
}
}

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

Building 0xinsider, real-time Polymarket analytics for sports and esports.


Found this article helpful? You might enjoy my free newsletter. I share dev tips and insights to help you grow your coding skills and advance your tech career.


Related Articles

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

Llm
5 min read

Anthropic's Sequential Thinking MCP

Ever wished your AI agent would slow down and think things through? This MCP server does exactly that

Sep 7, 2025
Read article
Llm
6 min read

Building Custom MCP Servers with Next.js and mcp-handler

How to build a MCP server that works with Claude Code, Gemini CLI, Cursor, and more.

Jan 28, 2026
Read article
Llm
3 min read

Next.js DevTools MCP: Your Development Server Just Got Smarter

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

Nov 2, 2025
Read article
Llm
5 min read

I added Agentic Resource Discovery to 0xinsider so agents can find it

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
Llm
7 min read

AI Agents Explained

What AI agents are, how the agent loop works, and why they're different from chatbots.

Jan 30, 2026
Read article
Llm
5 min read

Claude Code Superpowers: How to Add Skills That Plan Before Coding

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

Nov 4, 2025
Read article
Llm
6 min read

Google Search Console MCP for Claude Code

Pull GSC data into Claude Code to find CTR problems, indexing bugs, and keyword gaps — then fix them in the same conversation.

Feb 15, 2026
Read article
Llm
4 min read

Context7 MCP: Stop LLM Hallucinations with Live Docs

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

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.