MCP server, by ChromeDevTools (Google Chrome DevTools team)
Chrome DevTools MCP Server
MCP server that gives coding agents control of a live Chrome browser through Chrome DevTools for automation, debugging, and performance analysis.
Quick facts
What it does
Chrome DevTools for agents (chrome-devtools-mcp) lets a coding agent such as Antigravity, Claude, Cursor or Copilot control and inspect a live Chrome browser. It is available as an MCP server over stdio and as a CLI, and gives the assistant access to Chrome DevTools for automation, debugging and performance analysis. Requirements are a Node.js LTS release, current stable Chrome or newer, and npm. The server starts the browser automatically when a client first calls a tool that needs one; connecting to the server alone does not start Chrome.
The tool reference groups the tools by category. Input automation has 10 tools including click, fill, fill_form, hover, press_key, type_text, drag, handle_dialog and upload_file. Navigation has 6, among them navigate_page, new_page, list_pages, select_page, close_page and wait_for. Emulation has emulate and resize_page. Performance has performance_start_trace, performance_stop_trace and performance_analyze_insight. Network has list_network_requests and get_network_request. Debugging has 9, including evaluate_script, take_screenshot, take_snapshot, list_console_messages, get_console_message, get_css_styles, lighthouse_audit and screencast_start and screencast_stop. Memory has 14 heap snapshot tools, but only take_heapsnapshot is on by default; the other 13, such as compare_heapsnapshots and get_heapsnapshot_retainers, require --memoryDebugging=true, which defaults to false.
Several parameters shape what a call does. Most tools take a pageId to target a specific page. navigate_page takes type (url, back, forward or reload), url, ignoreCache, a timeout in milliseconds, handleBeforeUnload and an initScript that runs on each new document before other scripts. take_screenshot writes png, jpeg or webp, with fullPage, quality and an optional uid for one element, and a filePath to save instead of attaching. performance_start_trace takes reload, autoStop, ignoreCache and filePath, and the tool description says to navigate to the right URL first. list_network_requests takes pageSize, pageIdx, resourceTypes and includePreservedRequests for the last 3 navigations. lighthouse_audit covers accessibility, SEO, best practices and agentic browsing and excludes performance; it takes device (desktop or mobile) and mode (navigation or snapshot).
Optional categories are off by default: extensions, experimental third-party tools exposed by the inspected page, WebMCP (which the configuration guide says needs Chrome 150 or newer with --enable-features=WebMCP), Progressive Web Apps (supported only with a pipe connection) and WebAuthn virtual authenticators. Each category flag, such as --category-input, can be set to false to remove a group. For basic browser tasks only, the --slim flag exposes a reduced tool set. Other documented options include --headless, --isolated (a temporary user-data-dir cleaned up after the browser closes), --userDataDir, --channel, --executablePath, --viewport, --acceptInsecureCerts, --proxyServer, --chromeArg and --logFile.
The server can also attach to a Chrome that is already running. --browserUrl takes a debuggable instance address such as http://127.0.0.1:9222, --wsEndpoint takes a WebSocket endpoint with optional --wsHeaders, and --autoConnect connects to a locally running Chrome 144 or newer once remote debugging is started at chrome://inspect/#remote-debugging. The default profile directory is under $HOME/.cache/chrome-devtools-mcp, so a normal launch keeps one profile between sessions unless --isolated is set. The package also ships skills, for example for accessibility audits, cookie debugging, Largest Contentful Paint and memory leak debugging, and the README says to update skills whenever the server updates because outdated skills can reference tools or parameters that changed.
Configuration
Add the npx config to the MCP client. Pin chrome-devtools-mcp@latest to track the current release. A slim mode with --slim and --headless is documented for basic browser tasks.
{"mcpServers":{"chrome-devtools":{"command":"npx","args":["-y","chrome-devtools-mcp@latest"]}}}Source: https://github.com/ChromeDevTools/chrome-devtools-mcp. Placeholders only. Replace them in your own environment, and never commit real keys to a repository.
| Environment variable | Required | Purpose |
|---|---|---|
CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS | Optional | Disables usage statistics collection when set. The CI env var also disables collection. |
CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS | Optional | Disables periodic npm registry update checks when set. |
Tools and features on record
Input automation Config checked
click, drag, fill, fill_form, handle_dialog, hover, press_key, type_text and upload_file, plus click_at for coordinate clicks, which requires --experimentalVision=true (off by default). Elements are addressed by a uid taken from a page snapshot. upload_file paths must be local to the browser instance, not the MCP.
Navigation Config checked
new_page, list_pages, select_page, close_page, wait_for and navigate_page (type url, back, forward or reload, with ignoreCache, timeout, handleBeforeUnload and initScript).
Performance traces Config checked
performance_start_trace records a trace for Core Web Vitals work (LCP, INP, CLS) with reload, autoStop and filePath options. performance_stop_trace ends it and performance_analyze_insight extracts an insight.
Network inspection Config checked
list_network_requests lists requests since the last navigation, with pageSize, pageIdx and resourceTypes filters, and get_network_request returns one request.
Console, snapshots and screenshots Config checked
list_console_messages and get_console_message (with source-mapped stack traces), take_snapshot, take_screenshot (png, jpeg, webp, fullPage, quality) and screencast_start and screencast_stop.
evaluate_script Config checked
Runs JavaScript in the target page or service worker and returns JSON, so values must be JSON-serializable. Source can be inline or from a local file, as a function (which supports args) or a script.
lighthouse_audit Config checked
Returns Lighthouse scores, failing audits and flagged DOM nodes for accessibility, SEO, best practices and agentic browsing. Performance is excluded and handled by traces. Full reports are saved to disk.
Memory tools Config checked
take_heapsnapshot is on by default and saves a .heapsnapshot file. The other 13 memory tools, including compare_heapsnapshots, get_heapsnapshot_retainers and get_heapsnapshot_duplicate_strings, require --memoryDebugging=true, which is off by default.
Optional categories and slim mode Config checked
Extensions, third-party, WebMCP, PWA and WebAuthn tools are off by default. --slim exposes a reduced set for basic browser tasks. Category flags can turn groups off.
Connecting to a running Chrome Config checked
--browserUrl, --wsEndpoint with --wsHeaders, or --autoConnect (Chrome 144 or newer) attach to an existing browser instead of launching one.
Security notes
- The README disclaims that the server exposes the content of the browser instance to MCP clients, allowing them to inspect, debug and modify any data in the browser or DevTools. Avoid sharing sensitive or personal information you do not want MCP clients to see.
- evaluate_script runs JavaScript in the page, and the input tools click, type and upload files. The README disclaimer says MCP clients can inspect, debug and modify any data in the browser or DevTools, which includes any site the profile is signed in to. Setting --javascriptEvaluation=false turns off evaluate_script and the navigate_page initScript parameter, but the configuration guide says it is not a JavaScript sandbox, since page scripts and script run through clicks or typing still execute. Use a profile with no personal sessions, or set --isolated so the profile is temporary and cleaned up when the browser closes.
- By default the profile lives under $HOME/.cache/chrome-devtools-mcp, so cookies and logins from one session can persist into the next. That helps for testing a logged-in app and is a risk for anything else.
- Attaching to a running Chrome with --browserUrl, --wsEndpoint or --autoConnect hands the agent a browser you may already be using. WebSocket endpoints can carry custom headers with --wsHeaders, so treat that value as a credential.
- upload_file reads file paths local to the browser instance, so the agent can place files from that machine into a page's file input. Review upload requests.
- Performance tools may send trace URLs to the Google CrUX API to fetch real-user data. Disable that with --no-performance-crux. Google also collects usage statistics by default, covering tool invocation success rates, latency and environment information. Opt out with --no-usage-statistics, or set CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS or CI. Update checks against the npm registry are disabled with CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS.
- Only Google Chrome and Chrome for Testing are officially supported. Other Chromium-based browsers may work but are not guaranteed.
- Optional categories (extensions, third-party tools, WebMCP, PWA, WebAuthn) are off by default; leave them off unless you need them, and use category flags to remove tool groups you do not want the agent to have. The configuration guide documents further limits. --blockedUrlPattern, or --allowedUrlPattern on Chrome 149 or newer, restricts which URLs the browser may load, and --fileNavigations=false rejects file: URLs. --redactNetworkHeaders, off by default, redacts some sensitive headers, which matters because get_network_request returns request and response headers including Cookie and Set-Cookie. When the client does not negotiate roots, tools that read or write local files are limited to the OS temp directory unless --filesystemRoot or --allowUnrestrictedPaths widens that. Keep any config file the server reads out of the agent's write access, because the guide warns that an agent able to edit it can change these settings.
An MCP server runs with the permissions of the process you start it from. Scope credentials to the narrowest access the job needs, and review what the client will send before connecting anything sensitive.
Sources and freshness
- Official source: https://github.com/ChromeDevTools/chrome-devtools-mcp
- Repository: https://github.com/ChromeDevTools/chrome-devtools-mcp
Checked 2026-11-03. Config-checked means the configuration and feature list trace to the official source above; it does not mean AgentsUse ran the server. Send corrections through the contact page. Back to the MCP server index.