Chrome DevTools MCP Server
The `chrome-devtools-mcp` package provides a Model-Context-Protocol (MCP) server that enables AI coding agents (such as Gemini, Claude, Cursor, or Copilot) to programmatically control and inspect a live Chrome browser instance. It leverages the full capabilities of Chrome DevTools for advanced debugging, performance analysis, and reliable browser automation. Key features include recording traces for performance insights, analyzing network requests, taking screenshots, and monitoring browser console messages with source-mapped stack traces. The server, currently at version 0.21.0, is actively maintained with frequent minor and patch releases. It utilizes Puppeteer for browser automation and officially supports Google Chrome and Chrome for Testing, requiring Node.js v20.19 or newer. This server acts as a bridge, allowing AI agents to interact with the browser context, providing a powerful environment for web development workflows.
Common errors
-
Claude Code plugin HTTPS clone failures
cause Specific issue related to the Claude Code plugin's interaction with HTTPS cloning operations.fixRefer to the official `chrome-devtools-mcp` troubleshooting documentation for specific guidance on resolving Claude Code plugin HTTPS clone failures. -
Error: The 'chrome-devtools-mcp' package requires Node.js v20.19.0 || ^22.12.0 || >=23.
cause The installed Node.js version does not meet the minimum requirements specified in the package's `engines` field.fixUpgrade your Node.js environment to a compatible version (e.g., v20.19.0, v22.12.0, or newer) using a Node.js version manager like `nvm` or `fnm`.
Warnings
- gotcha The `chrome-devtools-mcp` server exposes the entire browser instance content to connected MCP clients, allowing them to inspect, debug, and modify any data in the browser or DevTools. This includes potentially sensitive or personal information.
- gotcha Performance tools integrated with `chrome-devtools-mcp` may send trace URLs to the Google CrUX API to fetch real-user experience data (Chrome User Experience Report) by default. This data collection helps provide a holistic performance picture but involves external API calls.
- gotcha Usage statistics, including tool invocation success rates, latency, and environment information, are collected by Google by default to improve the reliability and performance of `chrome-devtools-mcp`.
- breaking The package officially supports only Google Chrome and Chrome for Testing. While other Chromium-based browsers might work, their functionality is not guaranteed and may lead to unexpected behavior.
- breaking The package requires Node.js v20.19 or a newer LTS version (e.g., v22.12 or >=23). Older Node.js versions are not supported and will prevent the server from running.
Install
-
npm install chrome-devtools-mcp -
yarn add chrome-devtools-mcp -
pnpm add chrome-devtools-mcp
Imports
- runCLI
import { runCLI } from 'chrome-devtools-mcp' - startServer
import { startServer } from 'chrome-devtools-mcp' - McpServerOptions
import type { McpServerOptions } from 'chrome-devtools-mcp'
Quickstart
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
}
}
}
// For basic browser tasks with reduced resource usage and token savings:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest", "--slim", "--headless"]
}
}
}