Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsSep 12, 2026·3 min de lecture

Chrome DevTools MCP — Browser Debugging for AI Coding Agents

Official MCP server that gives AI coding agents access to Chrome DevTools for inspecting, debugging, and automating web pages.

Prêt pour agents

Staging sûr pour cet actif

Cet actif est d'abord staged. Le prompt copié demande à l'agent d'inspecter les fichiers staged avant d'activer scripts, config MCP ou config globale.

Stage only · 29/100Policy : staging
Surface agent
Tout agent MCP/CLI
Type
Mcp Config
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Chrome DevTools MCP Overview
Commande de staging sûr
npx -y tokrepo@latest install ce8cded7-aecc-11f1-9bc6-00163e2b0d79 --target codex

Stage les fichiers d'abord; l'activation exige la revue du README et du plan staged.

Introduction

Chrome DevTools MCP is an official Model Context Protocol server that exposes Chrome DevTools functionality to AI coding agents. It lets agents inspect DOM elements, read console logs, capture screenshots, monitor network requests, and debug web applications — the same capabilities developers use in Chrome's built-in DevTools, now accessible programmatically through MCP.

What Chrome DevTools MCP Does

  • Exposes Chrome DevTools Protocol capabilities via MCP tools
  • Allows AI agents to inspect and manipulate the DOM tree
  • Captures screenshots and reads console output for debugging
  • Monitors network requests and response data in real time
  • Enables JavaScript evaluation in the browser context

Architecture Overview

The server connects to a running Chrome or Chromium instance via the Chrome DevTools Protocol (CDP) on a specified debugging port. It translates MCP tool calls into CDP commands and returns structured results. The server acts as a bridge layer, handling session management, target discovery, and protocol translation so AI agents interact with familiar MCP semantics rather than raw CDP.

Self-Hosting & Configuration

  • Install via npm and start with a target Chrome debugging port
  • Launch Chrome with --remote-debugging-port=9222 to enable CDP
  • Configure your AI coding CLI to register this MCP server
  • Supports multiple browser tabs and target switching
  • Works with Chromium-based browsers including Edge and Brave

Key Features

  • Full DOM inspection and element selection for AI agents
  • Screenshot capture for visual debugging workflows
  • Console log reading and JavaScript evaluation
  • Network request monitoring with headers and response bodies
  • Built on the standard Model Context Protocol for broad agent compatibility

Comparison with Similar Tools

  • Puppeteer — programmatic browser control but not MCP-native
  • Playwright — multi-browser automation without MCP integration
  • Selenium — established automation but heavier setup and no MCP
  • Browser Use — AI browser automation focused on task completion rather than debugging
  • Stagehand — AI web automation framework with different abstraction level

FAQ

Q: Which browsers are supported? A: Any Chromium-based browser that supports the Chrome DevTools Protocol, including Chrome, Chromium, Edge, and Brave.

Q: Do I need to install Chrome separately? A: Yes, the MCP server connects to an already running Chrome instance with remote debugging enabled.

Q: Can multiple agents share one browser session? A: The server supports multiple targets (tabs), but concurrent agent access to the same tab requires careful coordination.

Q: Is this officially maintained by Google? A: It is published under the ChromeDevTools GitHub organization and actively maintained.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires