How to pass --browserUrl when chrome-devtools-mcp is a Claude Code plugin?
When using chrome-devtools-mcp 0.19.0 as a Claude Code plugin (chrome-devtools-mcp@claude-plugins-official) on Windows 11, the plugin launches the server as
npx chrome-devtools-mcp@latest, so there is no way to pass--browserUrl http://127.0.0.1:9222to attach to an existing Chrome instance with remote debugging enabled. Disabling the plugin and configuring a standalone MCP server in.mcp.jsonworks for tools but loses the plugin's bundled skills (a11y-debugging, debug-optimize-lcp, chrome-devtools, troubleshooting). How can I keep the skills while connecting to an existing Chrome instance?Originally asked on GitHub: https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/1232
4 answers
Status: still open. A contributor acknowledged the request ("Indeed, we should support this."), and the thread's workaround is to keep the plugin installed for its skills while using a separate standalone MCP server for the Chrome connection.
The original reporter's standalone
.mcp.jsonconfiguration is:json{ "mcpServers": { "chrome-devtools": { "command": "npx", "args": ["chrome-devtools-mcp@latest", "--browserUrl", "http://127.0.0.1:9222"] } } }This connects to the existing Chrome instance, but the plugin's bundled skills (a11y-debugging, debug-optimize-lcp, chrome-devtools, troubleshooting) are not available because the plugin is disabled.
Commenters reported a better workaround: install the Chrome DevTools MCP plugin so its skills stay available, disable only the plugin-sourced MCP server, and add a manually configured MCP server with your
--browserUrlflag. One commenter described this combination as their current working approach, and another recommended the same.The issue proposes making CLI flags configurable through Claude Code's
pluginConfigsinsettings.json:json{ "pluginConfigs": { "chrome-devtools-mcp@claude-plugins-official": { "mcpServers": { "chrome-devtools": { "browserUrl": "http://127.0.0.1:9222" } } } } }A commenter additionally suggested declaring a
userConfigoption in the plugin'splugin.json, citing Claude Code's plugin options feature (changelog 2.1.83), and shared a draft snippet forbrowserUrl. The commenter warned the snippet came from their own local Claude Code session analysis, not official docs. The thread does not show that approach being implemented.General advice: keep Chrome's remote debugging port bound to 127.0.0.1 and avoid exposing it to untrusted networks.
Did this work for you?What @Sayvai tried on GitHub (Worked)
A commenter installed the Chrome DevTools MCP plugin so its automatically bundled skills are available, disabled the plugin-sourced MCP server, and relied on a separately integrated manual MCP server for the custom browser URL. They described this as their current working workaround, and another commenter later recommended the same approach.
Did this work for you?What a GitHub user tried on GitHub (Partly worked)
The reporter disabled the plugin and added a standalone MCP server in
.mcp.jsonwithcommand: npxandargs: ["chrome-devtools-mcp@latest", "--browserUrl", "http://127.0.0.1:9222"]. This connected to the existing Chrome instance, but the plugin's bundled skills were lost.Source: https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/1232 (opens external site)
Did this work for you?What @Sayvai tried on GitHub (Partly worked)
A commenter on macOS edited two
plugin.jsonfiles under.claude/plugins/marketplaces/chrome-devtools-plugins/.claude-plugin/and.claude/plugins/cache/chrome-devtools-plugins/chrome-devtools-mcp/<CURRENT_MCP_VERSION>/.claude-plugin/to inject the custom MCP server configuration. This made Claude Code reliably list pages or tabs on the existing Chrome instance, but the commenter later retracted it because future chrome-devtools-mcp releases override and reset those files.Did this work for you?
Related questions
- Why does chrome-devtools-mcp snapshot miss table/ARIA semantics?
- Why is --load-extension ignored by chrome-devtools-mcp?
- How do I use chrome-devtools-mcp from WSL when Chrome is installed on Windows?
- chrome-devtools-mcp --autoConnect times out on every tool call with Chrome 144
- How to select which Chrome profile chrome-devtools-mcp automates when several are open?