Skip to content

The DevTools MCP is hardcoded to look for Chrome in standard locations #889

Description

@codeweft

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

Describe alternatives you've considered

I don't know if you have env support for this.

Additional context

No response

Activity

  1. added theissue type on Feb 5, 2026
  2. OrKoN commented on Feb 5, 2026

    @OrKoN
    Collaborator

    Thanks for reporting! You can provide completely custom path via --executablePath / -e in 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?

  3. codeweft commented on Feb 7, 2026

    @codeweft
    Author

    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.

  4. soyuka commented on Feb 9, 2026

    @soyuka

    Thanks, not a problem you can easily change this

      "mcpServers": {
        "chrome-devtools": {
          "type": "stdio",
          "command": "npx",
          "args": [
            "chrome-devtools-mcp@latest",
            "-e", "/usr/bin/chromium"
          ],
          "env": {}
        }
      }

    I'm pretty sure env interpolation is possible in there as well.

  5. christophermlne commented on Feb 16, 2026

    @christophermlne

    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/chrome

  6. natorion commented on Mar 2, 2026

    @natorion
    Contributor

    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/chrome

    EDIT: @devnook @matthiasrohmer we should make --executablePath more prominent in the docs.

  7. dkarvik commented on Mar 3, 2026

    @dkarvik

    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.

  8. OrKoN commented on Mar 3, 2026

    @OrKoN
    Collaborator

    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.

  9. RitikaxG commented on Oct 9, 2026

    @RitikaxG

    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.

  10. natorion commented on Oct 23, 2026

    @natorion
    Contributor

    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.

  11. added
    documentation
    and removed on Oct 23, 2026
  12. changed the issue type fromtoon Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmeddocumentationp3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions