AI × Tools & Tips

Tools · Setup guide

Chrome DevTools MCP

Gives your coding agent a real Chrome browser: it can open your page, click things, read the console, inspect network requests, and record a performance trace. Reach for it when the agent needs to see what it built instead of guessing — visual checks, "why is this blank", and page-speed debugging.

Chrome DevTools MCP

Before you start

Set it up

  1. Confirm Node and Chrome are present.

    bash
    node --version
    "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --version

    Verified on this machine: v25.6.0 and Google Chrome 150.0.7871.184.

  2. Check the server itself runs. This downloads and executes it once — no config changes.

    bash
    npx -y chrome-devtools-mcp@latest --version

    Verified output:

    terminal
    1.6.0
  3. Register it with your agent. Pick your client:

    Claude Code (--scope user makes it available in every project):

    bash
    claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest

    Codex CLI:

    bash
    codex mcp add chrome-devtools -- npx chrome-devtools-mcp@latest

    Gemini CLI:

    bash
    gemini mcp add chrome-devtools npx chrome-devtools-mcp@latest

    VS Code:

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

    Cursor, or any client that takes raw JSON:

    json
    {
      "mcpServers": {
        "chrome-devtools": {
          "command": "npx",
          "args": ["-y", "chrome-devtools-mcp@latest"]
        }
      }
    }
  4. Confirm it registered.

    bash
    claude mcp list

    Verified output line (first run shows pending until you approve it inside a claude session):

    terminal
    chrome-devtools: npx chrome-devtools-mcp@latest - ⏸ Pending approval (run `claude` to approve)

    Start claude, approve the server when prompted, and it flips to ✔ Connected.

  5. Prefer the plugin over the bare server if you're on Claude Code — it ships skills that teach the agent how to use the tools, not just that they exist.

    terminal
    /plugin marketplace add ChromeDevTools/chrome-devtools-mcp
    /plugin install chrome-devtools-mcp@chrome-devtools-plugins

Flags worth knowing

All verified present in --help on v1.6.0:

Append flags after the package name, e.g. npx chrome-devtools-mcp@latest --isolated --viewport 1440x900.

What success looks like

Verified vs not

Verified: npx -y chrome-devtools-mcp@latest --version1.6.0; --help (full flag list read from real output); node --versionv25.6.0; Chrome 150.0.7871.184. Registration was verified end to end — claude mcp add chrome-devtools --scope project npx chrome-devtools-mcp@latest was run in a throwaway directory, claude mcp list confirmed the entry, the generated .mcp.json was inspected, then claude mcp remove cleaned it up. The user's real config was never touched.

Not simulated: the Codex, Gemini, VS Code, and Cursor registration commands (quoted verbatim from the official repo — running them would have written to config we shouldn't modify), and the /plugin install, which needs an interactive Claude Code session.

Go deeper