Feedback

Chrome DevTools MCP Server Verified

@chromedevtools Claim

Basic information

Runtime
TypeScript
Version
1.0.0
License
Apache-2.0
Transports
stdio
Author
chromedevtools
Submitted by
Community
Quality
85
Stars
53.6K

About Chrome DevTools MCP Server

Use Chrome DevTools for web site test speed, debugging, and performance analysis. The essential chrome developer tools for reliable web automation.

Chrome DevTools is a MCP server in the Browser Automation category listed in the AddMCP.net directory, published by chromedevtools. It exposes 26 tools, including list_console_messages, click, drag, fill and more. Supported transport: stdio. Runtime: TypeScript. License: Apache-2.0. The repository has 53,623 GitHub stars. Source code is hosted on github.com. Related topics: browser, browser-automation, chrome, chrome-devtools, debugging.

Setup

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

Chrome DevTools MCP Server config

Add this server to your MCP-compatible client using the configuration below.

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

Chrome DevTools MCP Server tools

  • list_console_messages — List all console messages for the currently selected page since the last navigation.
  • click — Clicks on the provided element
  • drag — Drag an element onto another element
  • fill — Type text into a input, text area or select an option from a <select> element.
  • fill_form — Fill out multiple form elements at once
  • hover — Hover over the provided element
  • upload_file — Upload a file through a provided element.
  • get_network_request — Gets a network request by an optional reqid, if omitted returns the currently selected request in the DevTools Network panel.
  • list_network_requests — List all requests for the currently selected page since the last navigation.
  • close_page — Closes the page by its index. The last open page cannot be closed.
  • handle_dialog — If a browser dialog was opened, use this command to handle it
  • list_pages — Get a list of pages open in the browser.
  • navigate_page — Navigates the currently selected page to a URL.
  • new_page — Creates a new page
  • resize_page — Resizes the selected page's window so that the page has specified dimension
  • select_page — Select a page as a context for future tool calls.
  • performance_analyze_insight — Provides more detailed information on a specific Performance Insight of an insight set that was highlighted in the results of a trace recording.
  • performance_start_trace — Starts a performance trace recording on the selected page. This can be used to look for performance problems and insights to improve the performance of the page. It will also report Core Web Vital (CWV) scores for the page.
  • performance_stop_trace — Stops the active performance trace recording on the selected page.
  • take_screenshot — Take a screenshot of the page or element.
  • evaluate_script — Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON so returned values have to JSON-serializable.
  • take_snapshot — Take a text snapshot of the currently selected page based on the a11y tree. The snapshot lists page elements along with a unique identifier (uid). Always use the latest snapshot. Prefer taking a snapshot over taking a screenshot. The snapshot indicates the element selected in the DevTools Elements panel (if any).
  • wait_for — Wait for the specified text to appear on the selected page.
  • emulate — Emulates various features on the selected page.
  • get_console_message — Gets a console message by its ID. You can get all messages by calling list_console_messages.
  • press_key — Press a key or key combination. Use this when other input methods like fill() cannot be used (e.g., keyboard shortcuts, navigation keys, or special key combinations).

Overview

What is Chrome DevTools?

Chrome DevTools MCP is Google's official MCP server (chrome-devtools-mcp) that lets coding agents such as Claude, Cursor, Copilot and Gemini control and inspect a live Chrome browser for automation, debugging and performance analysis.

The project is maintained by the Chrome DevTools team in the ChromeDevTools/chrome-devtools-mcp repository under the Apache-2.0 license. It uses Puppeteer to drive Chrome and the DevTools frontend to record traces and extract performance insights. It runs locally over stdio, is free to use, and needs no API key. A CLI is also provided for use without MCP.

How to use Chrome DevTools?

Prerequisites:

  • Node.js LTS (the npm package declares ^20.19.0 || ^22.12.0 || >=23)
  • Google Chrome, current stable version or newer (Chrome for Testing is also supported)
  • npm

Add the standard config to your MCP client:

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

For basic browser tasks only, slim mode exposes 3 tools (navigation, script execution and screenshots):

"args": ["-y", "chrome-devtools-mcp@latest", "--slim", "--headless"]

The server starts Chrome automatically the first time a tool needs a browser. To check the setup, try the prompt "Check the performance of https://developers.chrome.com".

Claude Code

Install the MCP server only:

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

Or install it as a plugin that bundles the MCP server with skills:

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

Restart Claude Code afterwards. Remove any earlier manual install first.

Claude Desktop

The client guide does not list Claude Desktop separately. Its claude_desktop_config.json uses the same mcpServers format, so paste the standard config above and restart the app.

Cursor

Use the one-click install button in the README, or go to Cursor Settings -> MCP -> New MCP Server and use the standard config.

VS Code

The recommended route is the agent plugin: open the Command Palette, run Chat: Install Plugin From Source and paste ChromeDevTools/chrome-devtools-mcp. To add only the MCP server on macOS or Linux:

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

Codex

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

The official client guide also covers Gemini CLI (gemini mcp add chrome-devtools npx chrome-devtools-mcp@latest), Windsurf, Cline, JetBrains, Kiro, Warp, OpenCode and others.

Connecting to your own Chrome

By default a new Chrome instance starts with a dedicated profile. To reuse a browser you are already signed in to, enable remote debugging at chrome://inspect/#remote-debugging (Chrome 144+) and add --autoConnect, or start Chrome with a debugging port and pass --browser-url=http://127.0.0.1:9222.

Key features of Chrome DevTools

  • Performance insights: records DevTools traces and returns actionable findings, including Core Web Vitals (LCP, INP, CLS).
  • Real browser debugging: network requests, console messages with source-mapped stack traces, screenshots and accessibility-tree snapshots.
  • Reliable automation: Puppeteer-based clicks, typing and form filling that wait for results automatically.
  • Lighthouse audits: accessibility, SEO and best-practice scores with the failing DOM nodes.
  • Memory debugging: heap snapshots for tracking down memory leaks.
  • Device emulation: throttle network and CPU, emulate mobile viewports, dark mode, geolocation or a user agent.
  • Configurable surface: --slim, --headless, --isolated, per-category toggles, and URL allow/block lists.
  • Official and maintained: built by the Chrome DevTools team with frequent releases.

Chrome DevTools tools

  • Input automation: click, fill, fill_form, type_text, press_key, hover, drag, upload_file and handle_dialog act on elements identified in a page snapshot.
  • Navigation: new_page, navigate_page, list_pages, select_page, close_page and wait_for manage tabs and page loads.
  • Performance: performance_start_trace, performance_stop_trace and performance_analyze_insight record a trace and drill into individual insights.
  • Network and debugging: list_network_requests, get_network_request, list_console_messages, evaluate_script, get_css_styles, lighthouse_audit, take_screenshot and take_snapshot.
  • Emulation: emulate and resize_page.
  • Memory: take_heapsnapshot; the deeper heap analysis tools require --memoryDebugging=true.
  • Opt-in categories: Chrome extension tools (--categoryExtensions=true), Progressive Web App tools (--categoryPwa=true) and experimental WebMCP tools.

Use cases of Chrome DevTools

  • Verify a code change in a real browser: "Open localhost:3000, submit the signup form and tell me what the console shows."
  • Diagnose slow pages: "Record a performance trace of this page and explain why LCP is slow."
  • Debug failing API calls: "List the network requests after login and show the response of the one that returns 500."
  • Fix layout problems: "Take a screenshot at 375px width and check why the header overflows."
  • Run audits: "Run a Lighthouse audit for accessibility and SEO and list the failing elements."
  • Hunt memory leaks by taking and comparing heap snapshots.

Frequently asked questions

1 Is Chrome DevTools MCP official?

Yes. It is published by the Chrome DevTools team at Google in the ChromeDevTools GitHub organization and on npm as chrome-devtools-mcp.

2 Is Chrome DevTools MCP free?

Yes. It is open source under Apache-2.0 and needs no account or API key. You only need Node.js and Chrome.

3 Does Chrome DevTools MCP work with Claude Code, Cursor and VS Code?

Yes. The official client guide has setup steps for Claude Code, Cursor, VS Code/Copilot, Codex, Gemini CLI, Windsurf and many other clients.

4 Can it use my existing Chrome profile and logins?

Yes. Enable remote debugging at chrome://inspect/#remote-debugging (Chrome 144+) and start the server with --autoConnect, or connect to a debugging port with --browser-url.

5 Does it collect data?

Google collects usage statistics by default; opt out with --no-usage-statistics. Performance tools may send trace URLs to the CrUX API for field data; disable this with --no-performance-crux.

6 Is it safe to give an agent my browser?

The server exposes the browser's content to the MCP client, so avoid sensitive data. Use --isolated for a temporary profile, URL allow/block patterns to restrict access, and --javascriptEvaluation=false to turn off script evaluation tools.

7 Does it support browsers other than Chrome?

It officially supports Google Chrome and Chrome for Testing. Other Chromium browsers may work but are not guaranteed.

8 Can it run headless?

Yes. Add --headless to the args, optionally with --viewport to set the window size.

Videos

Tutorials, guides, and showcases related to Chrome DevTools MCP Server. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬