0Pricing

Chrome DevTools MCP: The Open-Source Browser Agent Tool With 50,700+ GitHub Stars That Turns Your AI Into a Full-Stack Debugger

Chrome DevTools MCP gives your AI coding agent full control of Chrome — performance profiling, network debugging, memory analysis, and reliable automation through the Model Context Protocol.

C
CoddyKit Team · 9 min read · 1,895 words
Chrome DevTools MCP: The Open-Source Browser Agent Tool With 50,700+ GitHub Stars That Turns Your AI Into a Full-Stack Debugger

Quick Answer: Chrome DevTools MCP is a free, open-source Model Context Protocol server built by Google's Chrome DevTools team. It gives AI coding agents like Claude, Cursor, and Copilot full access to Chrome's developer tools — enabling performance profiling, network inspection, memory analysis, screenshots, and reliable browser automation through a single MCP connection. With 50,700+ GitHub stars, it's the go-to tool for developers who want their AI to debug, test, and optimize web applications like a senior frontend engineer.

If you've ever watched your AI coding agent struggle with frontend debugging — guessing at CSS issues, missing performance bottlenecks, or unable to verify that a button click actually worked — you know the frustration. Your AI can write code, but it can't see what's happening in the browser.

Chrome DevTools MCP changes that. This open-source project gives your AI agent the same powerful debugging tools that human developers have used in Chrome for years — but through the Model Context Protocol (MCP), the emerging standard for AI tool integration.

Built by the same Google team behind Chrome DevTools, this project has exploded to 50,700+ GitHub stars and 3,560+ forks since its release. It works with Claude Code, Cursor, GitHub Copilot, Gemini CLI, Antigravity, and any MCP-compatible agent.

Let's break down what makes it special and how to set it up in minutes.

What Exactly Is Chrome DevTools MCP?

Chrome DevTools MCP is a server that bridges your AI coding agent with a live Chrome browser instance. It exposes 57 specialized tools across 11 categories, all accessible through the Model Context Protocol — the same protocol that Claude, Cursor, and other AI tools use to interact with external services.

Think of it as giving your AI the same superpowers you have when you open Chrome DevTools (F12), but programmatically and intelligently.

The 11 Tool Categories at a Glance

Category Tools What It Does
🖱️ Input Automation10Click, type, fill forms, drag, hover, upload files
🧭 Navigation6Open pages, navigate URLs, manage tabs, wait for elements
📱 Emulation2Dark mode, geolocation, network throttling, viewport sizing
⚡ Performance3Record traces, Core Web Vitals, performance insights
🌐 Network2Inspect requests, cookies, headers, response bodies
🐛 Debugging8Screenshots, snapshots, console logs, Lighthouse audits
🧠 Memory13Heap snapshots, dominators, retaining paths, leak detection
🧩 Extensions5Install, reload, trigger Chrome extensions
🔌 Third-party2Execute tools from third-party DevTools extensions
🌍 WebMCP2Discover and execute tools advertised by websites
📲 PWA4Install, launch, and manage Progressive Web Apps

Setting Up Chrome DevTools MCP in Under 2 Minutes

The setup is refreshingly simple. You need Node.js (LTS version) and Chrome installed. That's it.

Step 1: Add the MCP Server Configuration

Add this to your MCP client's configuration file (works with Claude Code, Cursor, VS Code, and others):

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

Using @latest ensures you always get the newest version automatically. The server downloads and starts on-demand — no manual installation required.

Step 2: Verify It Works

In your MCP client, type:

Check the performance of https://developers.chrome.com

Your AI agent should open Chrome, navigate to the page, record a performance trace, and give you actionable insights — all automatically.

Step 3: Optional Configurations

For lightweight usage (basic browser tasks only), use slim mode:

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

Available flags include:

  • --headless — Run Chrome without a visible window
  • --slim — Reduced tool set for basic automation
  • --isolated — Isolated browser context (no shared cookies/storage)
  • --no-usage-statistics — Opt out of Google usage analytics
  • --no-performance-crux — Disable CrUX field data fetching

Performance Profiling: Your AI Becomes a Performance Engineer

This is where Chrome DevTools MCP really shines. Most AI agents can't profile a webpage — they can't measure LCP, INP, or CLS, and they definitely can't tell you why your page loads slowly.

With this MCP server, your AI can:

  1. Start a performance trace — Record what happens during page load
  2. Analyze insights — Get actionable findings from the trace data
  3. Correlate with field data — Compare lab metrics with real-user CrUX data

Here's what the workflow looks like:

// Your AI agent can do all of this automatically:

// 1. Navigate to the page
navigate_page({ url: "https://my-app.com", pageId: 1 });

// 2. Start a performance trace with auto-reload
performance_start_trace({ 
  pageId: 1, 
  reload: true, 
  autoStop: true 
});

// 3. Analyze specific insights
performance_analyze_insight({ 
  pageId: 1, 
  insightSetId: "trace-1",
  insightName: "LCPBreakdown" 
});

The AI gets back detailed information about Largest Contentful Paint breakdown, script execution times, layout shifts, and more — with specific recommendations for improvement.

Memory Leak Detection: 13 Tools for Deep Heap Analysis

Memory leaks are one of the hardest frontend bugs to diagnose. Chrome DevTools MCP ships with 13 dedicated memory tools that make heap analysis accessible to AI agents.

The toolkit includes:

// Take a heap snapshot
take_heapsnapshot({ pageId: 1 });

// Get summary of object counts and sizes
get_heapsnapshot_summary({ pageId: 1, snapshotId: "snap-1" });

// Find objects that retain the most memory
get_heapsnapshot_dominators({ pageId: 1, snapshotId: "snap-1" });

// Compare two snapshots to find leaks
compare_heapsnapshots({ pageId: 1, baseId: "snap-1", currentId: "snap-2" });

// Find duplicate strings wasting memory
get_heapsnapshot_duplicate_strings({ pageId: 1, snapshotId: "snap-1" });

// Trace why an object is kept alive
get_heapsnapshot_retaining_paths({ pageId: 1, snapshotId: "snap-1", nodeId: 42 });

Imagine asking your AI: "Check if there's a memory leak on the dashboard page after filtering 10 times." It can take a heap snapshot, trigger the filters, take another snapshot, compare them, and tell you exactly which objects are leaking and what's retaining them.

The network tools let your AI inspect HTTP traffic just like you would in the Network tab:

// List all recent network requests
list_network_requests({ pageId: 1 });

// Inspect a specific request (headers, cookies, body)
get_network_request({ 
  pageId: 1, 
  reqid: 42,
  responseFilePath: "/tmp/response.json"
});

This is incredibly useful for debugging API integration issues. Your AI can verify that auth tokens are being sent correctly, check CORS headers, inspect response payloads, and even save response bodies to files for analysis.

Reliable Browser Automation with Puppeteer Under the Hood

Unlike raw browser automation tools that often fail on timing issues, Chrome DevTools MCP uses Puppeteer with automatic waiting strategies. When your AI clicks a button, the tool automatically waits for the click to complete and returns the updated page state.

Key automation features:

  • Smart element targeting — Uses unique IDs (UIDs) from page snapshots, not fragile CSS selectors
  • Batch form fillingfill_form fills multiple fields in one call, reducing turns
  • Dialog handling — Automatically handles alert(), confirm(), and prompt() dialogs
  • File uploads — Handles file input elements natively
  • Keyboard shortcuts — Full key combination support (Ctrl+A, Ctrl+Shift+R, etc.)

Real-World Example: AI-Powered End-to-End Testing

Here's a practical scenario that showcases the power of Chrome DevTools MCP. Imagine you've just pushed a new feature to staging and want your AI agent to verify it works:

You: "Test the new checkout flow on staging.myapp.com. 
Check for console errors, verify the payment API returns 200, 
measure the performance of the checkout page, and take 
screenshots at each step."

Your AI agent then:
1. Opens Chrome and navigates to staging.myapp.com
2. Takes a screenshot of the homepage
3. Clicks "Add to Cart" → waits for cart update
4. Clicks "Checkout" → takes screenshot of checkout form
5. Fills in shipping details using fill_form (one call)
6. Monitors network requests for the payment API call
7. Verifies the API response status is 200
8. Checks console for any JavaScript errors
9. Records a performance trace of the checkout page
10. Runs a Lighthouse audit for accessibility
11. Takes final screenshot of the confirmation page
12. Reports findings with screenshots and metrics

This entire workflow happens automatically — your AI agent orchestrates all 57 tools to perform what would take a QA engineer 30+ minutes in just a few turns.

Key Benefits of Chrome DevTools MCP

  • 🏗️ Built by Google — Same team behind Chrome DevTools; rock-solid reliability and active maintenance
  • 🔌 Universal MCP support — Works with Claude Code, Cursor, Copilot, Gemini CLI, Antigravity, and any MCP client
  • ⚡ Zero installation — Runs via npx, no global packages or manual setup needed
  • 🧠 Deep debugging — Not just screenshots; real heap analysis, performance traces, and network inspection
  • 🤖 Reliable automation — Puppeteer-powered with smart waiting, reducing flaky test failures
  • 📱 Full emulation — Test mobile viewports, dark mode, geolocation, and network throttling
  • 🔒 Privacy-conscious — Runs locally, usage statistics opt-out available, CI environments auto-disabled
  • 📖 Apache 2.0 License — Fully open source, use it commercially without restrictions

How It Compares to Playwright MCP and Other Browser Tools

While Playwright MCP focuses primarily on browser automation (clicking, typing, navigating), Chrome DevTools MCP goes much deeper. Here's the key difference:

Playwright MCP is great for: end-to-end testing, form automation, and scraping.
Chrome DevTools MCP adds: performance profiling, memory analysis, network inspection, Lighthouse audits, extension management, and PWA testing.

If you only need basic browser automation, Playwright MCP or the slim mode of Chrome DevTools MCP will suffice. But if your AI agent needs to debug and optimize web applications — not just interact with them — Chrome DevTools MCP is in a league of its own.

🎓 Want to master AI-powered development workflows? Check out CoddyKit's developer courses to learn how to integrate AI agents into your daily development process — from debugging to deployment.

Frequently Asked Questions

Is Chrome DevTools MCP free to use?

Yes, completely free and open source under the Apache 2.0 license. You can use it commercially without any restrictions. There are no paid tiers or usage limits.

Which AI coding agents support Chrome DevTools MCP?

It works with any MCP-compatible client, including Claude Code (Anthropic), Cursor, GitHub Copilot, Google's Gemini CLI, Antigravity, and VS Code with MCP extensions. The official documentation provides setup guides for each.

Does it work with browsers other than Chrome?

Chrome DevTools MCP officially supports Google Chrome and Chrome for Testing only. Other Chromium-based browsers (like Edge or Brave) may work, but this isn't guaranteed. The team recommends using the latest Extended Stable Chrome version.

Can I use it for automated testing in CI/CD pipelines?

Yes. Use the --headless flag to run without a visible browser window. Set the CI environment variable or CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS to automatically disable usage statistics collection in CI environments.

How is performance data collected and analyzed?

The MCP server records Chrome DevTools traces (the same traces you'd capture manually in the Performance tab) and extracts actionable insights. It can optionally fetch CrUX (Chrome User Experience Report) field data to compare your lab measurements with real-user metrics. Disable this with --no-performance-crux.

What's the difference between full mode and slim mode?

Full mode exposes all 57 tools across 11 categories. Slim mode (--slim) reduces the tool set to basic browser automation — navigation, clicking, typing, and screenshots. Use slim mode when you only need simple browser interaction and want to reduce token usage.

Does Google collect any data when I use this tool?

By default, Google collects usage statistics (tool invocation rates, latency, environment info) to improve the product. You can opt out with --no-usage-statistics. Performance tools may also send trace URLs to the CrUX API for field data. This is separate from Chrome browser analytics.

ProgrammingTutorialCoddyKit

Enjoyed this article?

Explore more tutorials and insights to level up your coding skills.

Browse All Articles →