Skip to content
← All guides

Chrome DevTools MCP server security: what it can access

The Chrome DevTools MCP server exposes browser content to your agent. See its tools, profile flags, data collection and how to limit it.

4 min read

The Chrome DevTools MCP server, chrome-devtools-mcp, is published by the ChromeDevTools organization on GitHub. It lets an AI agent drive a real Chrome, and its README says it exposes the content of the browser instance to the MCP client. That includes pages, console output, network requests and anything in a signed-in profile. Usage statistics are on by default and performance tools may send trace URLs to Google’s CrUX API. Run it with --isolated unless you need a logged-in browser.

What it can reach

The tool reference groups tools into categories.

CategoryTools
Inputclick, fill, fill_form, type_text, press_key, drag, hover, handle_dialog, upload_file
Navigationnavigate_page, new_page, list_pages, select_page, close_page, wait_for
Debuggingevaluate_script, take_screenshot, take_snapshot, list_console_messages, get_css_styles, lighthouse_audit, screencast_start, set_logpoints
Networklist_network_requests, get_network_request
Performance and memoryperformance_start_trace, performance_analyze_insight, take_heapsnapshot and related tools
Emulationemulate, resize_page

evaluate_script runs JavaScript in a page, so the agent can read or change anything the page can. upload_file sends local files through a file input. Network and snapshot tools can show cookies, tokens in headers and form values. A page you ask the agent to open can contain text written to steer it.

Some categories are off by default and need a flag. These include extensions, network mocks, PWA install and WebAuthn, such as --categoryExtensions and --categoryWebauthn.

Profile and connection flags

FlagEffect
--isolateduses a temporary user data directory, deleted when the browser closes
--userDataDirthe profile folder, default $HOME/.cache/chrome-devtools-mcp/chrome-profile plus a channel suffix for non-stable channels
--browserUrl, -uconnects to a running Chrome, for example http://127.0.0.1:9222
--autoConnectconnects to a local browser, needs Chrome 144 or later and remote debugging turned on at chrome://inspect/#remote-debugging
--headlessno visible window
--slimexposes only three tools, for navigation, script execution and screenshots
--no-usage-statisticsopts out of usage data
--no-performance-cruxstops trace URLs going to the CrUX API

Without --isolated, the profile directory is a normal folder, so the profile stays between runs. If you connect to your everyday Chrome with --browserUrl or --autoConnect, the agent sees your logged-in tabs. Don’t do that on a profile with banking or work sessions. The statistics opt-out also takes the CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS environment variable, and CI disables collection.

To drop whole groups, set a category to false, for example --categoryNetwork=false or --categoryDebugging=false. Dropping debugging removes evaluate_script.

Limit it in Claude Code

The README installs it as an mcpServers entry running npx with chrome-devtools-mcp@latest. With claude mcp add, flags go after the command.

claude mcp add chrome-devtools -- npx chrome-devtools-mcp@latest --isolated --no-usage-statistics --no-performance-crux

Then ask before the riskiest tools.

{
  "permissions": {
    "ask": ["mcp__chrome-devtools__evaluate_script", "mcp__chrome-devtools__upload_file"]
  }
}

Names with a hyphen stay as written, since only characters such as . or spaces become _. Using @latest means each run picks up the newest version, so pin one if you want to review updates.

Limit it in Codex

[mcp_servers.chrome-devtools]
command = "npx"
args = ["chrome-devtools-mcp@latest", "--isolated", "--no-usage-statistics"]
disabled_tools = ["evaluate_script", "upload_file"]

Checklist

  • Start with --isolated.
  • Never point it at a profile that holds real sessions.
  • Turn off categories you don’t need.
  • Opt out of statistics and CrUX.
  • Pin the package version.

Checked against the vendor documentation on November 25, 2026. chrome-devtools-mcp · Tool reference · Configuration · Claude Code permissions · Codex MCP

What Excellent covers

Excellent doesn’t inspect MCP servers themselves, so it can’t tell you what a server exposes. Its free scan reads supported logs on the Mac and reports findings for review. It reads the session logs of Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code, which shows what an agent did after it used a server. For a local report without installing an app, run the free scan. Its script uses Python 3.9 or later when your Mac has it and the shell when it doesn’t, reads the logs locally and makes no network requests. See a sample report.

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Commands sent into an already running Codex shell fall outside that check. Agent coverage · Pricing. Pro is US-only for now.

Related guides

View all