You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The DevTools MCP is hardcoded to look for Chrome in standard locations #889
Is your feature request related to a problem? Please describe.
This seems to actually be a bug. Most people use mise or scoop for automated installation on windows. This results in chrome being installed in non standard paths.
chrome-devtools - list_pages (MCP)
⎿ Error: Could not find Google Chrome executable for channel 'stable' at:
- C:\Program Files\Google\Chrome\Application\chrome.exe,
- C:\Program Files (x86)\Google\Chrome\Application\chrome.exe,
- C:\Users\code\AppData\Local\Google\Chrome\Application\chrome.exe,
- D:\Program Files\Google\Chrome\Application\chrome.exe,
- D:\Program Files (x86)\Google\Chrome\Application\chrome.exe.
Is there a workaround for this?
Describe the solution you'd like
auto discover chrome location and use it automatically
I've been playing around with the settings others have posted - I don't think this actually works. The mcp server always looks for Chrome in a hard-coded location.
I created a symlink to chromium at the hard-coded Chrome location and it seems to be working:
I've been playing around with the settings others have posted - I don't think this actually works. The mcp server always looks for Chrome in a hard-coded location.
I created a symlink to chromium at the hard-coded Chrome location and it seems to be working:
Even with -e set to chromium, if you're using --auto-connect it will look in ~/.config/google-chrome/DevToolsActivePort for the port to use.
why do you need --auto-connect if -e (executable path) is to have the Chrome launched by the MCP server? i.e., there is no connection. I think for --auto-connect, --user-data-dir should work.
Confirming @OrKoN's suggestion works for --autoConnect with Chromium on Linux. I turned on remote debugging in Chromium (chrome://inspect/#remote-debugging), and DevToolsActivePort was present in ~/.config/chromium. Plain --autoConnect still fails with Could not find DevToolsActivePort for chrome at ~/.config/google-chrome/DevToolsActivePort. With --autoConnect --userDataDir ~/.config/chromium it connects: list_pages returned in about 5 s from a direct MCP client, and reading the page and clicking worked end to end from both Claude Code and Codex. Tested on Debian 12 arm64 with Chromium 154 and chrome-devtools-mcp 1.10.1.
@OrKoN asked why use --autoConnect when -e exists. -e starts a new Chromium with a fresh profile. I want the agent to work in the Chromium window I already have open, where I'm signed in to my sites. Only --autoConnect does that.
Suggestion: when the server can't find ~/.config/google-chrome/DevToolsActivePort, the error could say "If you use Chromium or another Chrome-based browser, pass --userDataDir with that browser's profile directory (for Chromium on Linux, ~/.config/chromium)." That would have pointed me to the fix right away.
Re-typing as a docs / DX issue. Today you can pass --executablePath (-e) when the server launches the browser, or --autoConnect with --userDataDir <dir> for Chromium and other channels. We'll look into making both more prominent in the README and improving the DevToolsActivePort error message as @RitikaxG suggested.
Activity
OrKoN commentedon Feb 5, 2026
Thanks for reporting! You can provide completely custom path via
--executablePath / -ein the CLI args https://github.com/ChromeDevTools/chrome-devtools-mcp?tab=readme-ov-file#configuration (when you configure the MCP server instance). Are there pre-defined locations where mise or scoop installs Chrome?codeweft commentedon Feb 7, 2026
I think a env var would be better suited to switch browser locations easily during execution.
Can support brave and other privacy focused browsers as well that are based off chromium.
soyuka commentedon Feb 9, 2026
Thanks, not a problem you can easily change this
I'm pretty sure env interpolation is possible in there as well.
christophermlne commentedon Feb 16, 2026
I've been playing around with the settings others have posted - I don't think this actually works. The mcp server always looks for Chrome in a hard-coded location.
I created a symlink to chromium at the hard-coded Chrome location and it seems to be working:
sudo mkdir -p /opt/google/chrome && sudo ln -s /usr/bin/chromium /opt/google/chrome/chromenatorion commentedon Mar 2, 2026
EDIT: @devnook @matthiasrohmer we should make --executablePath more prominent in the docs.
dkarvik commentedon Mar 3, 2026
Even with
-eset to chromium, if you're using --auto-connect it will look in ~/.config/google-chrome/DevToolsActivePort for the port to use.OrKoN commentedon Mar 3, 2026
why do you need --auto-connect if
-e(executable path) is to have the Chrome launched by the MCP server? i.e., there is no connection. I think for--auto-connect,--user-data-dirshould work.RitikaxG commentedon Oct 9, 2026
Confirming @OrKoN's suggestion works for
--autoConnectwith Chromium on Linux. I turned on remote debugging in Chromium (chrome://inspect/#remote-debugging), andDevToolsActivePortwas present in~/.config/chromium. Plain--autoConnectstill fails withCould not find DevToolsActivePort for chrome at ~/.config/google-chrome/DevToolsActivePort. With--autoConnect --userDataDir ~/.config/chromiumit connects:list_pagesreturned in about 5 s from a direct MCP client, and reading the page and clicking worked end to end from both Claude Code and Codex. Tested on Debian 12 arm64 with Chromium 154 and chrome-devtools-mcp 1.10.1.@OrKoN asked why use
--autoConnectwhen-eexists.-estarts a new Chromium with a fresh profile. I want the agent to work in the Chromium window I already have open, where I'm signed in to my sites. Only--autoConnectdoes that.Suggestion: when the server can't find
~/.config/google-chrome/DevToolsActivePort, the error could say "If you use Chromium or another Chrome-based browser, pass--userDataDirwith that browser's profile directory (for Chromium on Linux,~/.config/chromium)." That would have pointed me to the fix right away.natorion commentedon Oct 23, 2026
Re-typing as a docs / DX issue. Today you can pass
--executablePath(-e) when the server launches the browser, or--autoConnectwith--userDataDir <dir>for Chromium and other channels. We'll look into making both more prominent in the README and improving theDevToolsActivePorterror message as @RitikaxG suggested.docs: clarify custom browser launch and connection options (ChromeDev…