Windows: playwright-mcp via Claude Desktop fails: Chromium distribution 'chrome' is not found
On Windows 11, playwright-mcp launched from Claude Desktop fails with "Chromium distribution 'chrome' is not found" at C:\Users<user>\AppData\Local\Google\Chrome\Application\chrome.exe, even though Chrome is installed under C:\Program Files\Google\Chrome\Application. Why does this happen and how can I make playwright-mcp find Chrome?
Originally asked on GitHub: https://github.com/microsoft/playwright-mcp/issues/13
6 answers
Status: explained, not fixed in the thread. A maintainer identified this as a bug in Claude Desktop: the client does not propagate environment variables to the MCP server. Playwright discovers Chrome by appending
\Google\Chrome\Application\chrome.exetoLOCALAPPDATA,PROGRAMFILES, andPROGRAMFILES(X86), so when those variables are missing or not passed through, the launch fails even though Chrome is installed inC:\Program Files.Reporters verified the environment variable with
process.env.PROGRAMFILES(it returnedC:\Program Files) and confirmed regular Playwright worked withnpx playwright open --channel=chrome; both checks succeeded outside the MCP client, which points to the client rather than the browser.The only workaround in the thread was a local patch: one user rebuilt the MCP server and passed a hardcoded
executablePath: "C:\\Users\\jpeng\\AppData\\Local\\ms-playwright\\chromium-1161\\chrome-win\\chrome.exe"tochromium.launchalongside the existing launch options. That launches, but it hardcodes that user's Playwright browser download and requires a rebuild. Copying a portable Chrome into the AppData path did not help, and the thread records no released fix; the maintainer said they would work around it shortly.Did this work for you?What @Masa1984a tried on GitHub (Didn't work)
Reported running playwright-mcp via Claude Desktop on Windows 11. Chrome was installed in C:\Program Files\Google\Chrome\Application, but the server looked in C:\Users<username>\AppData\Local\Google\Chrome\Application\chrome.exe and failed with "Chromium distribution 'chrome' is not found".
Source: https://github.com/microsoft/playwright-mcp/issues/13 (opens external site)
Did this work for you?What @JohnPeng47 tried on GitHub (Worked)
Rebuilt the MCP server locally and passed a hardcoded executablePath pointing to Playwright's downloaded Chromium chrome.exe in chromium.launch, which allowed the server to launch.
Source: https://github.com/microsoft/playwright-mcp/issues/13#issuecomment-2752129796 (opens external site)
Did this work for you?What @fabiolous tried on GitHub (Didn't work)
Copied a portable Chrome into C:\Users<username>\AppData\Local\Google\Chrome\Application\chrome.exe, but the same error still appeared.
Source: https://github.com/microsoft/playwright-mcp/issues/13#issuecomment-2752432522 (opens external site)
Did this work for you?What @fabiolous tried on GitHub (Didn't work)
Checked process.env.PROGRAMFILES in Node.js; it returned C:\Program Files, so the environment variable looked correct, yet the error still occurred inside the MCP client.
Source: https://github.com/microsoft/playwright-mcp/issues/13#issuecomment-2752530248 (opens external site)
Did this work for you?What @TreyDong tried on GitHub (Didn't work)
Under Cherry Studio, verified the environment variable and ran the regular Playwright check (npx playwright open --channel=chrome); both were OK, but the MCP server still failed with the same 'chrome is not found' error.
Source: https://github.com/microsoft/playwright-mcp/issues/13#issuecomment-2753416731 (opens external site)
Did this work for you?
Related questions
- Playwright MCP browser_take_screenshot shows no saved file or unreadable image in Cursor or VS Code
- playwright-mcp fails to start in Cursor after 0.0.19/0.0.20 (Client closed / Connection closed)
- Can I generate codegen-style Playwright test code from a prompt-driven playwright-mcp flow?
- Does Playwright MCP have a quiet mode to reduce page snapshot tokens?
- How to fix 'Browser window not found' when using playwright-mcp in headless mode?