Claude in Chrome extension not connecting despite being installed and enabled
Resolved 💬 40 comments Opened Jan 28, 2026 by blaykeelder1-commits Closed May 5, 2026
💡 Likely answer: A maintainer (localden, collaborator)
responded on this thread — see the highlighted reply below.
Description
The Claude in Chrome browser extension is not connecting to Claude Code CLI. The tabs_context_mcp tool consistently returns "Browser extension is not connected" despite the extension being installed and enabled in Chrome.
Environment
- Platform: Windows
- Tool: Claude Code CLI (Claude in Chrome MCP integration)
Steps to Reproduce
- Install the Claude in Chrome extension
- Open Chrome with the extension enabled
- Run Claude Code CLI and attempt to use browser automation tools
tabs_context_mcpreturns "Browser extension is not connected"
Troubleshooting Attempted
All of the following were tried without success:
- Restarting Chrome (including verifying no chrome.exe processes remained in Task Manager)
- Disabling and re-enabling the extension in
chrome://extensions - Fully uninstalling and reinstalling the extension
- Running the
/chromecommand in Claude Code CLI - Multiple connection attempts after each troubleshooting step
Expected Behavior
The extension should connect and tabs_context_mcp should return available tab information.
Actual Behavior
Every call to tabs_context_mcp returns:
Browser extension is not connected. Please ensure the Claude browser extension is installed and running.
40 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
same issue here. downgrading now
@plejsq which version should i downgrade to?
Same issue. 4 days ago this wasn't an issue. Not sure if it's Claude Code (v 2.1.19 was fine) or the extension
<img width="1589" height="894" alt="Image" src="https://github.com/user-attachments/assets/4702431e-7831-4ad2-8eca-869884c4e59f" />
Same problem on Windows 11 ! No problem on my Mac or Ubuntu.
Same issue. Windows 11. Claude Code CLI.
Troubleshooting attempted:
Issue persists
Reverting to Claude code v 2.1.19 worked for me!
IMPORTANT: in addition to reverting back to v2.1.19 you also need to remove the current version or else Claude code will default to the latest version - you can see if you were succesful at reverting by running claude --version
Same issue
same issue on Windows 11.
Troubleshooting attempted:
Issue persists
Is this thread only about Win 11? I'm on MacOS and seem to have this problem too.
Downgraded to v2.1.19 and it works again (on Windows 11)
Any fix to this?
Same issue and had to downgrade to v2.1.19 to work. Tried various ways seems nothing works.
Root cause found and documented in #21791: The \ function (socket path discovery) doesn't return Windows named pipe path. Fix: add \ at the start of the function.
See detailed analysis: https://github.com/anthropics/claude-code/issues/21791#issuecomment-3838702991
Nice work! This fix worked for me. I can now use the Claude Code Chrome extension with v2.1.29 of Claude Code on Windows 11
✅ Workaround Confirmed Working (Windows 11, Claude Code 2.1.29)
Root cause identified by @kimchi-developer in #21791 — the
xQ4()function (socket path discovery) doesn't return Windows named pipepath.
### Quick Fix
1. Backup cli.js:
```bash
copy "%LOCALAPPDATA%\..\Roaming\npm\node_modules\@anthropic-ai\claude-code\cli.js"
"%LOCALAPPDATA%\..\Roaming\npm\node_modules\@anthropic-ai\claude-code\cli.js.backup"
where claude
Then navigate to node_modules\@anthropic-ai\claude-code\cli.js in that path.
Search for the socket path function. In v2.1.29 it's named xQ4 (minified names vary between versions):
Find:
function xQ4(){let A=[],q=gm1()
Replace with:
function xQ4(){if(TNY()==="win32")return[
\\\\.\\pipe\\${yNY()}];let A=[],q=gm1()Finding the right function (if name differs)
Search for claude-mcp-browser-bridge in cli.js. You'll find functions like:
The broken function scans for .sock files but never adds the Windows named pipe. The fix adds Windows detection at the start.
⚠️ Note
Patch will be lost on Claude Code update. Re-apply after upgrading until this is fixed upstream.
Credit: @kimchi-developer for root cause analysis, @plejsq for the fix template.
Still broken on v2.1.31 (Windows 11, build 10.0.26100).
I've traced the root cause to a socket path mismatch between the two processes:
The native host (
--chrome-native-host) tries Unix-style socket paths:C:\Users\<user>\AppData\Local\Temp\claude-mcp-browser-bridge-<user>/tmp/claude-mcp-browser-bridge-<user>Both fail with
ENOENT. From the debug log (~/.claude/debug/*.txt):But the CLI MCP server (
--claude-in-chrome-mcp) creates a Windows named pipe at\.\pipe\claude-mcp-browser-bridge-rsacc.Verified the named pipe is functional:
Get-ChildItem \.\pipe\ | Where-Object Name -like '*claude*'shows the pipe exists\.\pipe\claude-mcp-browser-bridge-rsaccsucceeds and gets valid JSON-RPC responsesThe native host simply never attempts the
\.\pipe\path, so the two processes never connect.Fix needed: On Windows, the native host should try
\.\pipe\claude-mcp-browser-bridge-{username}instead of (or in addition to) the Unix socket paths.Adding to the above — this bug has been open for months now and affects every Windows user trying to use Chrome integration. It's one of the most compelling features of Claude Code, and Windows users are completely locked out of it.
Please don't leave the Windows community behind Mac users. We'd really appreciate a fix for this. The root cause is well-understood (named pipe vs Unix socket path mismatch) — it should be a straightforward fix on the native host side.
I always get the following on my mac
✅ Complete Windows Fix Guide — Chrome Extension "Not Connected"
---
The Problem
Three issues used to prevent Chrome extension from working on Windows:
| # | Issue | Cause | Status |
|---|-------|-------|--------|
| 1 | Standalone exe crashes (Segfault) | Bun v1.3.9-canary.51 runtime bug on Windows | ✅ Fixed in v2.1.38+ |
| 2 | chrome-native-host.bat points to wrong binary | Auto-generated, may reference wrong path | ⚠️ Needs manual fix |
| 3 | Named pipe mismatch | Socket discovery didn't return
\\.\pipe\path | ✅ Fixed in v2.1.38+ |---
✅ Recommended Fix (v2.1.38+) — Standalone exe only, no npm
Prerequisites
Step 1 — Verify your version
Step 2 — Fix chrome-native-host.bat
Step 3 — Restart & test
chrome.exeprocesses in Task Manager)claudein a new terminal---
⚠️ WindowsApps\Claude.exe vs .local\bin\claude.exe
where.exe claudemay show multiple entries. IfWindowsApps\Claude.exeappears first and gives errors (likefs.Stats deprecationwith no output), the wrong binary is running. Fix by adding to your PowerShell profile:Then restart PowerShell.
---
🔧 Recovering from npm install
If you followed the old version of this guide and ran
npm install -g @anthropic-ai/claude-code, yourclaudecommand may be broken. Symptoms:claude.cmd is not recognizednpm\claude.cmdthat doesn't workFix:
---
<details>
<summary><strong>🔧 Legacy: Binary patch for standalone exe users (pre-v2.1.38)</strong></summary>
If you must use the standalone installer and are on a version before v2.1.38, paste this prompt into Claude Code to self-patch:
</details>
---
Verification Checklist
Troubleshooting
| Symptom | Fix |
|---------|-----|
|
claude.cmd is not recognized| You ran npm install — see "Recovering from npm install" above ||
fs.Stats deprecation+ no output | Wrong binary (WindowsApps\Claude.exe). Use.local\bin\claude.exeinstead || "Extension not connected" | Re-check
chrome-native-host.batcontent || Disconnects immediately | Kill ALL
chrome.exeprocesses, restart Chrome + Claude || Cache access denied error | Run
Remove-Item "$env:LOCALAPPDATA\claude" -Recurse -Forceand retry |---
Credits: Root cause analysis in #21791 by @kimchi-developer. Community workarounds by @hara94, @ArtyMcLabin, @DanielKerridge, @robsaccone.
I've created a Claude command + patch script that fixes this automatically on Windows. I run
/patch-chromeafter every Claude Code update and Chrome MCP works fine on Win 11.Claude command (
.claude/commands/patch-chrome.md):~~~
---
description: Patch Claude Code CLI to fix Chrome MCP on Windows
allowed-tools: Bash
---
Apply the Windows named-pipe fix for the Chrome MCP extension connection issue.
See: https://github.com/anthropics/claude-code/issues/21371
Command
Run the patch script:
If the user passes
--restoreas an argument, restore the original:Report the output. If the patch was applied, remind the user to:
/chrometo initialize the MCP~~~
Patch script (
.claude/patch-chrome-mcp.js):<details>
<summary>Click to expand</summary>
</details>
@morphaven @hara94 Thank you! I've been dealing with this issue for over a week, hoping Anthropic would fix it. The Chrome plugin used to work perfectly, and it was easy to get used to. Your fix works for me, so you've made my day!
Was having hard time since the update. The fix had helped me. I just get claude to work the fix with referencing to this thread. It works like charm. But its definately not a permanent fix. Hopefully claude fix it.
That was quite the journey. To recap what we fixed:
instead (npm install -g @anthropic-ai/claude-code)
the MCP client could never find the native host's pipe. Patched cli.js to return the correct pipe path on Windows.
Important: The cli.js patch will be lost when Claude Code updates. You can re-apply it by running:
node patch-chrome-mcp.js
The full file:
Paste this into claude code and it will fix it
on mac
/chrome
❯ Claude in Chrome (Beta)
Claude in Chrome works with the Chrome extension to let you control your browser directly from Claude Code. Navigate websites, fill
forms,
capture screenshots, record GIFs, and debug with console logs and network requests.
Status: Enabled
Extension: Installed
⏺ Claude in Chrome[tabs_context]
⎿ Error: No Chrome extension connected.
The same issue appeared on MacOS.
same issue on macOS
same on Linux
same on mac 17/02/2026
same on mac 17/02/2026
still a issue here
Same issue on Mac
Here's a good description of the bug and also the fix that worked for me: https://x.com/dguido/status/2015675500799173013
sme issue on mac
After trying few things as outlined in the twitter link above, checked debug logs (~/.claude/debug/) for the actual error, which turned out to be "Invalid token or user mismatch", fixed by
/login. Possible it was a combo of multiple issues, but it does work now@ZanderAdam's fix worked for me on mac! I checked
~/.claude/debug/, and sure enough had the same "Invalid token or user mismatch" log.A simple
/logindid the trickjesus christ i love but hate this plugin!! lol
For anyone still hitting this on macOS with both Claude Desktop and Claude Code installed — a working workaround is documented in #24935.
TL;DR: The JSON-editing workarounds don't work because the chrome MCP runs in-process and GrowthBook overwrites the flag in memory. Use
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1instead, and disable Desktop's native messaging manifest if you have both apps installed.Thank you for your report — we are currently in the process of triaging MCP-related issues and this one appears to describe the same problem as #21337. To keep the discussion and any fix in one place, we're consolidating into that issue and closing this one. If you have logs, repro steps, or environment details that aren't already covered in #21337, please add them there — it'll help us track this down faster.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.