Let your Coding Agent debug the browser session with Chrome DevTools MCP
TL;DR Highlight
With --autoConnect, coding agents can attach to your logged-in Chrome session and DevTools selections.
Who Should Read
A frontend developer who wants to hand bugs that only reproduce behind a login to a coding agent for debugging.
Core Mechanics
- Agents can use your logged-in browser
- The Chrome DevTools MCP server can now attach directly to a running browser session.
- Bugs behind a sign-in can be handed to the agent without signing in again.
- Agents can pick up what you selected in DevTools
- You can select a failing request in the Network panel and ask the agent to investigate it.
- The same works for an element selected in the Elements panel.
- Setup takes two steps
- In Chrome 144 or later, enable remote debugging at chrome://inspect/#remote-debugging.
- Then add --autoConnect to the MCP server arguments.
- A permission dialog appears on every connection
- Chrome asks the user for permission each time the MCP server requests a remote debugging session.
- While a session is active, Chrome shows the "Chrome is being controlled by automated test software" banner.
- Specify the beta channel until M144 is stable
- The feature shipped in Chrome M144, which was in Beta at the time.
- Until M144 reaches stable, you must pass --channel=beta.
- Existing connection modes still work
- Running Chrome with an MCP-specific user profile is the current default.
- You can also connect via a remote debug port, or run multiple isolated Chrome instances with temporary profiles.
Community Reactions
- Commenters report heavy MCP token costs
- One commenter has used DevTools MCP for months and finds it extremely token heavy.
- Another found Playwright expensive and built a wrapper that dumps results to disk so the agent queries them instead.
- A commenter who says they work on the DevTools team announced a standalone CLI
- It ships in the latest v0.20.0 release and had not been announced yet.
- They framed it as good news for people worried about MCP token costs.
- A tested prompt-injection gap with evaluate_script
- Testers found the default take_snapshot is safe because display:none elements are excluded from the accessibility tree.
- If the agent reads document.body.textContent via evaluate_script, hidden injected text shows up.
- They said opacity:0 and font-size:0 elements are in the AX tree and bypass even the safe defaults.
- Counterarguments favor CLI tools or Playwright over MCP
- One view is that MCP eats context window and CLI tools are faster and more flexible.
- Alternatives mentioned include playwright-cli, agent-browser (--auto-connect), chrome-cdp-skill, playwriter, and firefox-devtools-mcp.
- Real-world uses were shared
- One person used codex to manage a local music library, searching albums in a YT Music tab and passing URLs to yt-dlp.
- Another had Gemini use it as an SVG editing REPL and got good icons after 3-4 iterations.
How to Apply
- Try autoConnect on Chrome 144 beta
- Enable remote debugging at chrome://inspect/#remote-debugging.
- Add --autoConnect and --channel=beta to your MCP config and run "Check the performance of https://developers.chrome.com".
- Click Allow in the dialog and confirm a performance trace is captured.
- Hand a failing network request to the agent
- Open the Network panel in a logged-in tab and select the failing request.
- Ask the agent to investigate why the selected request failed.
- Give a UI bug to the agent from the Elements panel
- Select the problem element and ask the agent to find the cause.
- Review the resulting fix as a diff yourself.
- Limit how evaluate_script is used
- In your agent instructions, say to prefer take_snapshot for text extraction.
- Require innerText instead of textContent.
Try It
// Paste into your MCP client config JSON, e.g. Gemini CLI (Chrome 144 beta)
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"chrome-devtools-mcp@latest",
"--autoConnect",
"--channel=beta"
]
}
}
}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques
Related Resources
- https://developer.chrome.com/blog/chrome-devtools-mcp-debug-your-browser-session
- https://github.com/ChromeDevTools/chrome-devtools-mcp
- https://github.com/pasky/chrome-cdp-skill
- https://github.com/microsoft/playwright-cli
- https://github.com/remorses/playwriter
- https://github.com/vercel-labs/agent-browser
- https://github.com/padenot/firefox-devtools-mcp
- https://github.com/epiral/bb-browser
- https://tidewave.ai/
- https://uisnap.dev/