claude-in-chrome MCP connection fails despite correct configuration (Windows)

Resolved 💬 3 comments Opened Jan 27, 2026 by cjxmccac Closed Jan 31, 2026

Description

The claude-in-chrome MCP server shows as connected in /mcp but all tool calls fail with "Browser extension is not connected" error.

Environment

  • Claude Code version: 2.1.20
  • OS: Windows 11
  • Chrome extension ID: fcoeoabgfenejglbffodgkkbkcdhcgfn (matches allowed_origins)

Configuration Verified

Native Host Manifest

Location: %APPDATA%\Claude Code\ChromeNativeHost\com.anthropic.claude_code_browser_extension.json

{
  "name": "com.anthropic.claude_code_browser_extension",
  "description": "Claude Code Browser Extension Native Host",
  "path": "C:\Users\<user>\.claude\chrome\chrome-native-host.bat",
  "type": "stdio",
  "allowed_origins": [
    "chrome-extension://fcoeoabgfenejglbffodgkkbkcdhcgfn/"
  ]
}

Registry Entry

HKCU\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.anthropic.claude_code_browser_extension
(Default) = C:\Users\<user>\AppData\Roaming\Claude Code\ChromeNativeHost\com.anthropic.claude_code_browser_extension.json

Native Host Script

Location: ~/.claude/chrome/chrome-native-host.bat

@echo off
REM Chrome native host wrapper script
REM Generated by Claude Code - do not edit manually
"C:\Users\<user>\.local\bin\claude.exe" --chrome-native-host

Diagnostics

  1. Native host works manually:

``
echo '{"type":"ping"}' | claude.exe --chrome-native-host
`
Output:
`
[Claude Chrome Native Host] Initializing...
[Claude Chrome Native Host] Creating socket listener: \.\pipe\claude-mcp-browser-bridge-<user>
``

  1. Named pipe exists:

``
//./pipe/claude-mcp-browser-bridge-<user>
``

  1. MCP shows connected:

Running /mcp in Claude Code shows claude-in-chrome as connected, but tool calls fail.

  1. Extension installed and ID matches:

Chrome extension is installed at chrome://extensions/?id=fcoeoabgfenejglbffodgkkbkcdhcgfn

Steps to Reproduce

  1. Install Claude Code 2.1.20 on Windows
  2. Install Claude browser extension from Chrome Web Store
  3. Run /mcp - shows claude-in-chrome as connected
  4. Try any claude-in-chrome tool (e.g., tabs_context_mcp)
  5. Get error: "Browser extension is not connected"

Expected Behavior

Tool calls should succeed when the MCP server shows as connected and the named pipe exists.

Actual Behavior

All tool calls fail with "Browser extension is not connected" despite:

  • MCP server showing connected
  • Named pipe existing
  • Native host configuration being correct
  • Extension ID matching allowed_origins

Additional Context

  • Tried reinstalling the Chrome extension
  • Tried restarting Chrome
  • Tried restarting Claude Code
  • Clicked extension icon in Chrome (no obvious errors)
  • Both Claude Desktop and Claude Code native hosts are registered (different names)

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗