[BUG] MCP tools fail with "Browser extension is not connected" despite /chrome showing Connected
Status Closed — not planned
Reported on v2.1.19
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 11 comments · opened Jan 25, 2026 · closed Mar 13, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Environment:
- Claude Code version: (run claude --version)
- Chrome Extension: Claude in Chrome (Beta) v1.0.40
- OS: Windows 11
- Extension ID: fcoeoabgfenejglbffodgkkbkcdhcgfn
Steps to Reproduce:
- Install Claude in Chrome extension from Chrome Web Store
- Run claude --chrome
- Run /chrome command → Shows "Connected" status ✓
- Run /mcp command → Lists claude-in-chrome as available ✓
- Attempt any MCP tool (e.g., mcp__claude-in-chrome__tabs_context_mcp)
Expected: Tool executes and returns tab context
Actual: Error: "Browser extension is not connected"
Observations:
- Connection state reports as connected
- MCP server is listed
- Reconnect option says "Already connected"
- But actual tool execution fails
- Suggests connection state isn't propagating to tool execution layer
Workarounds Attempted:
- Complete restart (close Chrome, close Claude Code, reopen in order)
- /chrome → Reconnect extension
- Verified extension is enabled in chrome://extensions/
What Should Happen?
Environment:
- Claude Code version: (run claude --version)
- Chrome Extension: Claude in Chrome (Beta) v1.0.40
- OS: Windows 11
- Extension ID: fcoeoabgfenejglbffodgkkbkcdhcgfn
Steps to Reproduce:
- Install Claude in Chrome extension from Chrome Web Store
- Run claude --chrome
- Run /chrome command → Shows "Connected" status ✓
- Run /mcp command → Lists claude-in-chrome as available ✓
- Attempt any MCP tool (e.g., mcp__claude-in-chrome__tabs_context_mcp)
Expected: Tool executes and returns tab context
Actual: Error: "Browser extension is not connected"
Observations:
- Connection state reports as connected
- MCP server is listed
- Reconnect option says "Already connected"
- But actual tool execution fails
- Suggests connection state isn't propagating to tool execution layer
Workarounds Attempted:
- Complete restart (close Chrome, close Claude Code, reopen in order)
- /chrome → Reconnect extension
- Verified extension is enabled in chrome://extensions/
Error Messages/Logs
Environment:
- Claude Code version: (run claude --version)
- Chrome Extension: Claude in Chrome (Beta) v1.0.40
- OS: Windows 11
- Extension ID: fcoeoabgfenejglbffodgkkbkcdhcgfn
Steps to Reproduce:
1. Install Claude in Chrome extension from Chrome Web Store
2. Run claude --chrome
3. Run /chrome command → Shows "Connected" status ✓
4. Run /mcp command → Lists claude-in-chrome as available ✓
5. Attempt any MCP tool (e.g., mcp__claude-in-chrome__tabs_context_mcp)
Expected: Tool executes and returns tab context
Actual: Error: "Browser extension is not connected"
Observations:
- Connection state reports as connected
- MCP server is listed
- Reconnect option says "Already connected"
- But actual tool execution fails
- Suggests connection state isn't propagating to tool execution layer
Workarounds Attempted:
- Complete restart (close Chrome, close Claude Code, reopen in order)
- /chrome → Reconnect extension
- Verified extension is enabled in chrome://extensions/
Steps to Reproduce
Environment:
- Claude Code version: (run claude --version)
- Chrome Extension: Claude in Chrome (Beta) v1.0.40
- OS: Windows 11
- Extension ID: fcoeoabgfenejglbffodgkkbkcdhcgfn
Steps to Reproduce:
- Install Claude in Chrome extension from Chrome Web Store
- Run claude --chrome
- Run /chrome command → Shows "Connected" status ✓
- Run /mcp command → Lists claude-in-chrome as available ✓
- Attempt any MCP tool (e.g., mcp__claude-in-chrome__tabs_context_mcp)
Expected: Tool executes and returns tab context
Actual: Error: "Browser extension is not connected"
Observations:
- Connection state reports as connected
- MCP server is listed
- Reconnect option says "Already connected"
- But actual tool execution fails
- Suggests connection state isn't propagating to tool execution layer
Workarounds Attempted:
- Complete restart (close Chrome, close Claude Code, reopen in order)
- /chrome → Reconnect extension
- Verified extension is enabled in chrome://extensions/
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.19 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
11 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Similar issue on MacOS (M4/26.2) but the Claude app works just fine with Chrome and Vivaldi. The problem is only in the CLI from iTerm and via the plugin in IntelliJ IDEs.
From claude code:
Chrome native messaging is fundamentally broken on your system for an unknown reason. We've verified:
This could be:
I'm experiencing the same issue. Here are my environment details:
Environment:
/chromecommandBehavior:
/chromecommand reports "connected" statusThis appears to be a widespread issue affecting multiple users across different platforms. Consolidating here to help with prioritization.
+1 Experiencing this same issue.
Important finding: The browser extension works perfectly on v2.1.19 but fails on v2.1.25. This suggests a regression was introduced between these versions.
Workaround: Downgrade to v2.1.19:
See my detailed report with version comparison: #21825
Same issue on Mac os m1 pro using Cowork
Claude 1.1.2102 (c5675a)
Chrome 144.0.7559.133
Extension looks connected from Claude, and working in Chrome but the communication is broken
Comment for Related Issues (#23539, #23082, #21279, #20862)
---
Additional Root Cause: Windows Username Spaces
I've discovered a third independent bug affecting Windows users with spaces in their usernames (e.g., "John Smith", "Dennis Bosma").
The Problem
Pipe name mismatch:
This causes MCP tools to fail with "Browser extension is not connected" even when:
Why This Matters
This bug persists EVEN AFTER applying existing workarounds:
This explains why some users report success with the Node.js + getSocketPaths() patch, but others still fail — it depends on whether they have spaces in their Windows username.
The Fix (One Line)
Add username sanitization in both native host and MCP client:
Test Evidence
Direct pipe connection test confirms the pipe with space exists:
But MCP tools search for the sanitized version (without space) and fail.
Affected Users
Full Diagnosis
See Issue #23828 for comprehensive diagnosis, test evidence, and proposed fixes.
---
TL;DR: If you have spaces in your Windows username, the existing Bun + getSocketPaths() fixes won't help. You need username sanitization in the pipe name generation.
Update: Published the complete self-healing fix (including username space handling) as open-source: bosmadev/claude —
scripts/fix-chrome-native-host.pySessionStart hook auto-repairs all 3 Windows Chrome bugs on every launch. See #23828 for full details.
Accessing the claude in chrome extension via claude code was just working for me a few days ago when I first tried it out but stopped working yesterday. Accessing the extension from Claude Desktop still works though.
Keep getting this:
CC: 2.1.39
MacOS: 26.2
Chrome: 145.0.7632.46
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
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.