DEV Community

PluginStack
PluginStack

Posted on Originally published at pluginstackai.com

How to set up the Chrome DevTools MCP server (Claude Code, Cursor, VS Code, Codex)

How to set up the Chrome DevTools MCP server in Claude Code, Cursor, VS Code and Codex

Checked against the official docs: Nov 24, 2026

Chrome DevTools for agents (chrome-devtools-mcp) lets a coding assistant control and inspect a live Chrome browser: record performance traces, read network requests and console messages (with source-mapped stack traces), and automate pages. You add one npx command to your MCP config, or install the official plugin so you also get skills. This guide covers Claude Code, Cursor, VS Code and Codex, a first prompt to confirm it works, useful flags, and what to do when the browser will not start. It is based on Chrome's official docs and the chrome-devtools-mcp README (checked 24 November 2026).

Quick answer

  • Needs: a current Node.js LTS, npm, and current stable Chrome (Google officially supports Google Chrome and Chrome for Testing only).
  • Standard config: run npx -y chrome-devtools-mcp@latest as a local (stdio) MCP server. Using @latest keeps the client on the current package.
  • Claude Code (plugin, recommended): in Claude Code, run /plugin marketplace add ChromeDevTools/chrome-devtools-mcp, then /plugin install chrome-devtools-mcp@chrome-devtools-plugins, and restart. MCP only: claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest.
  • Cursor: add the standard config in Cursor Settings → MCP → New MCP Server.
  • VS Code / Copilot (plugin, recommended): Command Palette → Chat: Install Plugin From Source → ChromeDevTools/chrome-devtools-mcp. MCP only: code --add-mcp with the official JSON, or the standard config in mcp.json.
  • Codex: codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest. On Windows 11, the official client guide uses cmd /c and a longer startup timeout (see below).
  • First prompt: Check the performance of https://developers.chrome.com. The client should open a browser and record a performance trace. Connecting the server alone does not start the browser; that happens when a tool needs one.

Before you start

  • Install a current Node.js LTS and Chrome stable (or newer). Check with node --version.
  • The assistant can see and change what is in the browser, including pages you are signed into if you connect it to an existing session. Google warns you to avoid sharing sensitive or personal information you do not want the assistant to see. Keep tool approval on, and do not point it at accounts or data you would not hand over.
  • Usage statistics are on by default. Google collects tool success rates, latency and environment information to improve the server. Opt out with --no-usage-statistics, or by setting CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS or CI. This is separate from Chrome's own usage statistics.
  • Performance tools may send trace URLs to the Google CrUX API for real-user experience data. Turn that off with --no-performance-crux.

What it does

The MCP server attaches to a live Chrome instance and exposes DevTools-style tools: performance traces, network and console inspection, screenshots, and page automation (it uses Puppeteer under the hood). The same package also includes a chrome-devtools CLI and a set of skills (debugging, accessibility, LCP, cookies, memory leaks, and a troubleshooting skill). The CLI is a separate path; this guide covers the MCP server. For a shorter overview, see the Chrome DevTools MCP listing.

This is a different job from Playwright MCP, which is aimed at driving and testing a browser. Chrome DevTools MCP is aimed at inspecting and debugging a page. You can install both. Playwright setup: how to set up the Playwright MCP server.

Standard config

Most clients that use an mcpServers file can add this block. The official getting-started config is:

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

Claude Code

To install the plugin (MCP server plus skills), run these slash commands in Claude Code. If you already had the MCP server installed, the official client guide says to remove it from your installation and config first:

/plugin marketplace add ChromeDevTools/chrome-devtools-mcp
/plugin install chrome-devtools-mcp@chrome-devtools-plugins
Enter fullscreen mode Exit fullscreen mode

Restart Claude Code, then check with /skills. If plugin install fails (for example a Failed to clone repository error behind a firewall), use the MCP-only command instead:

claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest
Enter fullscreen mode Exit fullscreen mode

You can copy skills by hand later from the npm package if you want them without the plugin. See the skills section of the README.

Cursor

Open Cursor Settings → MCP → New MCP Server and use the standard config above. More Cursor context: how to add an MCP server to Cursor.

VS Code

The recommended path in VS Code / Copilot is the official plugin, which bundles the server and skills:

  1. Open the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows or Linux).
  2. Run Chat: Install Plugin From Source.
  3. Paste ChromeDevTools/chrome-devtools-mcp.

To add only the MCP server, the official client guide uses this CLI on macOS and Linux:

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

On Windows (PowerShell):

code --add-mcp '{"""name""":"""io.github.ChromeDevTools/chrome-devtools-mcp""","""command""":"""npx""","""args""":["""-y""","""chrome-devtools-mcp"""]}'
Enter fullscreen mode Exit fullscreen mode

You can also paste the standard mcpServers config into the file your VS Code setup uses. More VS Code context: how to add an MCP server to VS Code.

Codex

codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
Enter fullscreen mode Exit fullscreen mode

On Windows 11, the official client guide adds cmd /c, sets SystemRoot and PROGRAMFILES, and raises the startup timeout in .codex/config.toml:

.codex/config.toml (Windows 11, from the official client guide)

[mcp_servers.chrome-devtools]
command = "cmd"
args = [
    "/c",
    "npx",
    "-y",
    "chrome-devtools-mcp@latest",
]
env = { SystemRoot="C:\\Windows", PROGRAMFILES="C:\\Program Files" }
startup_timeout_ms = 20_000
Enter fullscreen mode Exit fullscreen mode

If other Windows MCP servers fail with spawn npx ENOENT, the same cmd /c pattern is covered in Fix "spawn npx ENOENT" for MCP servers on Windows. More Codex context: how to add an MCP server to Codex.

Useful flags

Add flags to the args array after the package name. A few that come up often (the full list is in Chrome's configuration docs):

  • --headless runs Chrome with no visible window.
  • --channel=canary (or dev, beta, stable) picks a Chrome channel. Combine with --headless if you want both.
  • --autoConnect (Chrome 144 or later) connects to a Chrome instance you already have open. In Chrome, open chrome://inspect/#remote-debugging and enable Remote Debugging. When the agent connects, click Allow. The agent inherits that session, including logged-in accounts and cookies, so only do this with an assistant you trust.
  • --browser-url=http://127.0.0.1:9222 connects to Chrome you started yourself with remote debugging (useful when --autoConnect is not available). Start Chrome with --remote-debugging-port=9222 and a separate --user-data-dir, as shown in the official configuration docs.
  • --filesystemRoot=/path/to/project (you can repeat it) lets file tools read or write outside the OS temporary directory. If you skip this and your client does not provide MCP roots, requests to project files can fail with Access denied: ... is not within any of the configured workspace roots.
  • --no-usage-statistics and --no-performance-crux turn off the data sharing described above.
  • --slim exposes a smaller set of tools for basic browser tasks.

Example: headless Chrome Canary in the standard config:

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": [
        "-y",
        "chrome-devtools-mcp@latest",
        "--headless",
        "--channel=canary"
      ]
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Common errors and fixes

The browser never opens

Connecting the MCP server does not start Chrome by itself. Ask the assistant to run a tool that needs a browser, for example the first prompt above. Check that a current stable Chrome is installed, and that Node.js is an LTS release the client can find (node --version in a terminal).

"command not found", "spawn npx ENOENT", or the server exits immediately

  • Install Node.js LTS and npm, then restart the client so it can see npx.
  • On Windows, launch npx through cmd /c (the official Codex Windows 11 example is above). The Windows npx ENOENT guide covers the same pattern for other clients.
  • Run npx -y chrome-devtools-mcp@latest in a terminal. If that fails, the error is about Node or npm, not the client config.

Access denied for a file path

File tools can only use MCP client roots plus directories you pass with --filesystemRoot. Add your project folder to args, or use a client that provides roots.

You want the assistant to use a Chrome window that is already signed in

Use --autoConnect (Chrome 144+) or --browser-url as described above. Remember that the assistant then sees that session.

Something still fails

If your agent has the Chrome DevTools skills, official docs suggest: "Use the Chrome DevTools troubleshooting skill to fix my setup." You can also include the tool name, the error, and your operating system in that prompt.

FAQ

Can I use this with Edge, Brave or Chromium?

Google officially supports Google Chrome and Chrome for Testing only. Other Chromium-based browsers may work, but that is not guaranteed.

Should I use this or Playwright MCP?

Use Playwright MCP to drive and test a flow (click, type, check the result). Use Chrome DevTools MCP to inspect and debug a page (performance, network, console). They can be installed together. See how to set up the Playwright MCP server.

Do I need a plugin?

No. The standard npx config is enough for the MCP tools. The official plugin (Claude Code, VS Code / Copilot, and Gemini CLI) also installs skills that tell the assistant how to use those tools. If you install skills by hand, update them when you update the server, because they describe a specific version.

Sources

Commands and config above come from these official docs. Tools change often, so check them for the latest steps.

Tools in this guide

PluginStack is independent and not affiliated with or endorsed by the companies mentioned. Spotted something out of date? Email pluginstackai@gmail.com.

This guide was first published on PluginStack. Browse the PluginStack directory for more hand-checked MCP servers, plugins and setup guides.

Top comments (0)