Open Claude In Chrome 标志

Open Claude In Chrome

组织
noemica-io

Claude in Chrome, reverse-engineered and open-source. No domain blocklist. Any Chromium browser. Same 18 MCP tools, same performance.

发布者noemica-io
代码仓库open-claude-in-chrome
语言HTML
复刻数
70
星标数
239
可用工具
0
传输类型stdio
链接
  • 将工具接入 AI 工作流

    Open Claude In Chrome 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 239 个星标和 70 个复刻。



The official Claude in Chrome extension gives Claude Code full browser automation — as long as you stay within Anthropic's allowlist of "safe" sites. Open Claude in Chrome is a clean-room reimplementation that strips the restrictions while keeping all 21 MCP tools and matching the official extension's performance.

What's Different

Claude in ChromeOpen Claude in Chrome
Domain blocklist58 blocked domains across 11 categoriesNo blocklist. Navigate anywhere.
Browser supportChrome and Edge onlyAny Chromium browser (Chrome, Edge, Brave, Arc, Opera, Vivaldi, etc.)
Source codeClosed sourceOpen source (MIT)
Tools21 MCP toolsSame 21 MCP tools
PerformanceBaselineIdentical

Blocked Domains in the Official Extension

CategoryBlocked Sites
BankingChase, BofA, Wells Fargo, Citibank
Investing/BrokerageSchwab, Fidelity, Robinhood, E-Trade, Wealthfront, Betterment
Payments/TransfersPayPal, Venmo, Cash App, Zelle, Stripe, Square, Wise, Western Union, MoneyGram, Adyen, Checkout.com
BNPLKlarna, Affirm, Afterpay
Neobanks/FintechSoFi, Chime, Mercury, Brex, Ramp
CryptoCoinbase, Binance, Kraken, MetaMask
GamblingDraftKings, FanDuel, Bet365, Bovada, PokerStars, BetMGM, Caesars
DatingTinder, Bumble, Hinge, Match, OKCupid
AdultPornhub, XVideos, XNXX
News/MediaNYT, WSJ, Barron's, MarketWatch, Bloomberg, Reuters, Economist, Wired, Vogue
Social MediaReddit

Open Claude in Chrome has none of these restrictions.

Does it actually match the official extension?

Yes — and rather than assert it, here is a benchmark. Read the full study →

17 arms, each run over the same 12 held-out tasks from the REAL web-agent benchmark, same model and effort throughout (Sonnet, medium). What it found:

  • Parity, out of the box. The official extension and this harness, both cold, are statistically indistinguishable: 2.04 vs 1.95 min/task and 31.4 vs 32.6 turns, at p=0.44 and p=0.67 on a paired permutation test, with identical accuracy. They differ only in per-action overhead — 0.31s vs 0.12s per browser action, 2.7× less.
  • A higher ceiling. The best method in the study lands 23% fewer turns and 15% less time than the official extension, at 11/12 tasks passed against 8/12. Distil prior runs into a short per-site recipe, put it in the task prompt, and start from a warmed-up session.
  • What actually helps. Mounting raw prior experience on disk costs more than it returns (the agent spends 3.5× longer before its first browser action); compressing it into the prompt is what pays. Context is the dominant latency term at +1.9s per turn per 100k tokens, so more context is not free.
  • Recordings. This harness records raw, four-track browser traces and defers the analysis; Claude Cowork analyses each recording at capture time and keeps only the result. Distilled the same way by the same model, the raw recordings win both regimes — 6.6 fewer turns and 6.4 fewer minutes when the material has to fit in a prompt (p=0.012, p=0.008).

Caveats are in the writeup, not hidden: the task set saturates, one task's grading is ambiguous, and repeat runs of an identical configuration vary by 10–20%, so treat single-digit differences as noise.

Architecture

Default:

Claude Code <--stdio MCP--> mcp-server.js <--TCP--> native-host.js <--native messaging--> Extension <--> Browser

Code mode / hybrid (additive — mcp-server.js is reused unchanged as the upstream):

Claude Code <--stdio MCP--> server-{codemode,hybrid}.js
                              |  spawns + proxies via MCP
                              v
                            mcp-server.js (child) <--TCP--> native-host.js <--native messaging--> Extension <--> Browser
                              ^
                              |  HTTP tool-callback
                              |
                            workerd (wrangler dev sidecar)
                              |  Worker Loader → V8 isolate
                              v
                            sandboxed Worker runs LLM-written code

Three components:

  1. Extension — Manifest V3 with CDP-based browser automation (all 21 tools)
  2. MCP Server — Node.js process started by Claude Code, exposes tools via MCP
  3. Native Messaging Host — Bridge between the MCP server and the extension

The codemode and hybrid servers add a fourth piece — a wrangler dev subprocess hosting a Cloudflare Worker that runs the LLM-generated code in a V8 isolate. The Worker calls back to the proxy over HTTP for actual tool execution, which is forwarded to the unchanged upstream mcp-server.js.

Installation

One flow, top to bottom, turns everything on — all 21 browser tools, execute_code, and the imitation-learning recorder.

Prerequisites

  • Node.js v18+
  • Any Chromium browser (Chrome, Edge, Brave, Arc, Opera, Vivaldi, etc.)
  • Claude Code v2.1.80+ (the recorder needs channels; browser automation alone works on v2.0.73+)
  • An OpenAI API key (used to transcribe recording narration)

Step 1: Install dependencies

bash
npm install --prefix host
npm install --prefix host/codemode/worker

The second one is not optional: it provisions the sandbox that execute_code runs in. Skip it and the server falls back to fetching wrangler over the network on every cold start, which is the most common reason execute_code fails to come up.

Step 2: Load the extension

  1. Go to chrome://extensions (or brave://extensions / edge://extensions)
  2. Enable Developer mode
  3. Click Load unpacked and select the extension/ directory
  4. Copy the extension ID shown under the extension name

Step 3: Register native messaging

bash
./install.sh <your-extension-id>

If you use multiple browsers, pass all IDs: ./install.sh <chrome-id> <brave-id> <arc-id>

Step 4: Restart your browser

Close all windows and reopen. The browser reads native messaging host configs on startup.

Step 5: Set your OpenAI key and enable the microphone

Right-click the extension icon → Options. Both of these are required before recording:

  • Paste your OpenAI key and click Save & validate (transcribes your narration).
  • Click Enable microphone and allow the browser prompt. The recorder captures audio in a background page that can't show a permission prompt itself, so you grant mic access once here; otherwise recordings capture no voice.

Step 6: Add the server to Claude Code

The hybrid server exposes everything: all 21 tools directly, execute_code alongside (the model picks per call), and the recording channel.

bash
claude mcp add open-claude-in-chrome-hybrid -- node /absolute/path/to/host/codemode/server-hybrid.js

Find the absolute path with echo "$(pwd)/host".

Step 7: Launch with recording enabled

Channels are a research preview, so start Claude Code with the development flag (the name is the server from step 6):

bash
claude --dangerously-load-development-channels server:open-claude-in-chrome-hybrid

Accept the one-time prompt and keep the session open — channels inject into a live interactive session, not claude -p. That's it: browser automation and recording are both on.

Verification

Start a new Claude Code session and run both checks.

1. Browser control — confirms the extension, native host and MCP server are wired up:

Navigate to reddit.com and take a screenshot

Reddit loads. No domain restriction.

2. The execute_code sandbox — confirms the wrangler sidecar is live:

In a single execute_code call: create a new tab, navigate to reddit.com, click
the first post, then go back to the listing and give me every post title except
the top three.

You should get the titles back from one tool call rather than a click-screenshot-click sequence. If the first attempt reports the sandbox is still starting, wait a few seconds and ask again — the sidecar boots in the background and the first call can arrive before it is ready. If it never comes up, see Keeping execute_code running.

Keeping execute_code running

Where it runs. execute_code evaluates your JavaScript in a Cloudflare Worker (a V8 isolate) hosted by a workerd sidecar that the MCP server starts with wrangler dev. That sidecar is a child process of the MCP server, which Claude Code itself spawns. There is no separate daemon, nothing to start by hand, and nothing that outlives Claude Code. It binds 127.0.0.1 on a free port, runs out of host/codemode/worker, and keeps its state in a per-variant, per-PID directory under your temp dir so the codemode and hybrid servers can run at the same time without racing each other.

Its lifetime is the MCP server's lifetime. It is spawned in the background at server start so MCP startup never blocks on it (budget: 60s to boot, typically 3–5s), and it is torn down on SIGTERM/SIGINT/exit and when Claude Code closes the stdio pipe. So restarting or reconnecting the MCP server always gives you a fresh sidecar.

There is no health check and no auto-restart. If the sidecar dies mid-session, execute_code stays down until the MCP server restarts. That is the behaviour to recognise: browser tools still work, only execute_code fails.

To keep it reliable:

  1. Install the worker's dependencies (Step 1, or ./install.sh). Without host/codemode/worker/node_modules the server falls back to npx --yes wrangler, which needs the network on every cold start. This is the single most common cause of a sandbox that "sometimes isn't there".
  2. Recover with /mcp in Claude Code. Reconnecting restarts the MCP server, which respawns the sidecar.
  3. If that doesn't take, clear strays and reconnect:
    bash
    pkill -f "server-hybrid|server-codemode"; pkill -f wrangler
  4. Confirm it's up. The server logs [wrangler] Ready on http://127.0.0.1:<port> and then sandbox prewarmed in <n>ms. pgrep -fl wrangler should show one process per registered codemode/hybrid server.
  5. Expect partial degradation, not failure. If the sandbox never comes up the 21 passthrough tools keep working and only execute_code errors, so a broken sidecar looks like "code mode stopped working", not "the browser stopped working".

Server variants

The hybrid server from Step 6 is the superset and the one the install steps assume. Two leaner variants exist if you want them, and they can coexist — register more than one.

Default — the 21 tools, nothing else:

bash
claude mcp add open-claude-in-chrome -- node /absolute/path/to/host/mcp-server.js

Code mode — three tools: execute_code, screenshot, zoom. The model writes JS that calls chrome.* (the typed API for all 21 tools) in a sandboxed Cloudflare Worker, collapsing multi-step flows into one round trip:

bash
claude mcp add open-claude-in-chrome-codemode -- node /absolute/path/to/host/codemode/server-codemode.js

Both of these carry the same sandbox as hybrid, so Keeping execute_code running applies to them too. Recording is only on the hybrid server.

Imitation Learning (Recording)

Teach Claude Code a browser task by doing it once. The extension records an expert rollout in two synchronized tracks — what you did (clicks, typing, scrolling, resolved to durable element anchors) and why (your spoken narration, transcribed) — across every tab, then hands the recording to a live Claude Code session over a channel. Claude reads the rollout and carries out the task, extrapolating to sister tasks. Enabled by the Installation flow above. Full design: docs/imitation-learning-alignment.html.

Record

  1. Tell the session you're about to teach it something.
  2. Click the toolbar icon to start. The badge walks a fixed pipeline: … (booting the mic, ~2.5s) → REC (talk now). Clicks during … are ignored.
  3. Act and narrate out loud. Hold Alt while clicking to demonstrate an action without it firing (override/mask mode).
  4. Click the icon again to stop. The badge shows … while the recording is transcribed and saved — clicks are ignored until the paste-able reference lands on your clipboard and the icon shows 📋. Only then is the icon live again. Paste the reference into Claude Code to point it at the recording. (If a Claude session with the channel is connected, it's also notified automatically and the tooltip says so — but the clipboard copy happens either way.)

Recorded sessions are browsable under the extension's Options page (all captured data, disclosed in layers), each with its own Copy reference button.

Verify recording works

The minimum end-to-end check, the recorder's equivalent of the reddit test above. Do it in a session launched per step 7.

  1. In the Claude Code session, say: "I'm going to teach you something — wait for my signal."
  2. Click the toolbar icon (badge shows REC). Navigate to any page, click a couple of things, and say two or three sentences out loud about what you're doing. Click the icon again to stop.
  3. Confirm:
    • The icon shows a 📋 and the reference is on your clipboard (paste it anywhere to check — it points at the recording folder).
    • Options → Recorded sessions shows the session with events > 0, utterances > 0, a working audio player, a frame count, and your words under Narration.
    • trace.json and images/ exist under ~/.config/open-claude-in-chrome/recordings/<recording_id>/.
    • If a channel session is connected: a <channel … event="recording_complete" …> message appears and Claude acknowledges it and reads the trace.

If utterances is 0 or there's no audio, the mic wasn't enabled — redo Installation step 5. If nothing saved (no 📋), the native host isn't running — rerun ./install.sh <extension-id> and restart the browser. If no channel message appears, the session wasn't launched with the flag in step 7 (or a stale MCP server is running — pkill -f "server-hybrid" and reconnect with /mcp).

The real test (beyond the minimum): one narrated rollout of a task, then a sister task — same shape, different specifics — that Claude completes unaided from the recording. That's the proof the trace teaches rather than replays.

Status & limitations

The MCP channel, the recording_ack round-trip, the primary→client event routing, the transcription + track merge, and the native-host file writes are validated outside the browser; the in-browser capture, mic, and stop pipeline are wired and awaiting your live pass above. Known v1 choices:

  • The bundle is written by the native host (a Node process with filesystem access) to ~/.config/open-claude-in-chrome/recordings/<id>/ — trace.json, SCHEMA_v0.md, and images/. No chrome.downloads, so no OS save dialog, and it saves whether or not Claude is connected.
  • Four tracks: behavior (discrete actions), cursor (raw trajectory), images (240p frames captured on events, ≤1/sec), narration. All references and files are just data; the agent reads what it wants.
  • The viewer keeps small copies of the audio and frames in IndexedDB (the Options page can't read the on-disk files). Long recordings accumulate; a "keep last N" cleanup is a later refinement.
  • The capture layer is purpose-built (anchors + effects + heuristics), not a vendored rrweb.

Code Mode Test Client

A self-explanatory in-browser test suite for comparing default / code-mode / hybrid behavior across the kinds of flow they each should excel at. Lives in scratch/test-form/.

Serve it

bash
cd scratch/test-form
python3 -m http.server 8765

Open http://localhost:8765/. The page is a four-challenge suite the agent works through end-to-end:

  1. Single-Screen Form — everything visible in one screenshot. A model that captures the layout once should be able to batch all clicks + types + submit into a single round trip.
  2. Multi-Step Wizard — three steps where step 2's fields depend on step 1's choice. Forces screenshot → action → screenshot, no batching across steps.
  3. Repeat Submissions — the same Challenge 1 form, submitted three times with different values. Coordinates don't change; this is where pre-planned batching pays off most.
  4. Click Sequence — a 3×3 grid plus a randomly-generated ordering. Every coordinate is visible at once; the model can batch nine sequential clicks from one screenshot.

Completion is non-ambiguous: the suite ends on a green "All Challenges Complete" banner with a per-challenge wall-clock table. A sticky progress header on every page shows the current challenge number and a ✓ for each completed one.

Run the experiment

YOU MUST NOT USE THE FOLLOWING TOOLS IN ANY CAPACITY: form_input || javascript_tool

TASK:
Open http://localhost:8765/ on a new tab and complete every challenge on the page. Follow the on-page instructions until you reach the "All Challenges Complete" banner.

For the MCP use only (not any of the other ocic MCPs): open-claude-in-chrome||open-claude-in-chrome-codemode||open-claude-in-chrome-hybrid

What to look for across the three MCP variants:

  • Challenge 1: ratio of screenshots to actions. Default tends to look-act-look-act; code-mode/hybrid should look once then batch.
  • Challenge 2: all three should look comparable — visual feedback is required between steps regardless of MCP.
  • Challenge 3: this is where the gap should open. One screenshot up front, then three batched form-fills in code-mode/hybrid vs. fresh look-act loops in default.
  • Challenge 4: similar. Coordinates fixed, sequence visible. Code mode batches the nine clicks; default clicks one at a time.

If the model still uses direct tools on the second submission, that's a signal the execute_code description needs tuning — see host/codemode/common.js (buildExecuteCodeDescription) and the per-server EXTRA_NOTES.

Results

Final Results Table

Available Tools

Every tool, its purpose, and its parity with the official Claude in Chrome extension:

  • ✓ — in parity with Claude in Chrome (same interface, same behavior)
  • ✗ — present but diverges (a stub, or a capability gap — see the notes)
  • (blank) — a new tool with no Claude in Chrome equivalent
ToolPurposeParity
tabs_context_mcpGet tab group context✓
tabs_create_mcpCreate a new tab✓
tabs_close_mcpClose a tab✓
navigateNavigate to URL, back, forward✓
computerMouse, keyboard, screenshot, zoom✓
read_pageAccessibility tree with element refs✓
get_page_textExtract article/main text✓
findFind elements by text/attributes✓
form_inputSet form values by ref✓
javascript_toolExecute JS in page context✓
read_console_messagesConsole output (filtered)✓
read_network_requestsNetwork activity✓
resize_windowResize browser window✓
file_uploadAttach local file(s) to a file input (by ref)✓
upload_imageAttach a captured screenshot to a file input (by ref)✗
gif_creatorGIF recording✗
shortcuts_listList shortcuts✗
shortcuts_executeRun a shortcut✗
switch_browserHand off automation to another Chromium browser✗
execute_codeRun sandboxed JS that drives every tool via chrome.*
update_planPresent a plan for approval
set_tab_focusSurface a tab: select it, optionally raise its window
get_configRead automation settings and the catalog of what they do
set_configChange a setting, globally or for one tab
recording_ackConfirm an imitation-learning recording event
retranscribe_recordingRe-run transcription for a failed recording
debugRead what the extension actually did — the detail tool results omit
debug_timingsPer-call timing diagnostics

Notes on the divergences (✗):

  • file_upload matches Claude in Chrome's interface (paths, ref, tabId) but does not restrict sources to session-shared paths — any absolute path on this machine is accepted.
  • upload_image is file-input-only (target it by ref); Claude in Chrome additionally supports dropping an image at a coordinate (e.g. Google Docs).
  • gif_creator, shortcuts_list, and shortcuts_execute are stubs.
  • switch_browser releases the shared runtime for ~15s so another browser can take over, in place of Claude in Chrome's list_connected_browsers / select_browser pair.

Humanized input

Browser automation normally dispatches input the shortest way possible: the cursor teleports to a target, the button is pressed and released instantly, a scroll arrives as one jump. That is efficient, and it looks nothing like a person.

Turn humanize on and input is driven the way a hand drives it — curved cursor paths with acceleration and overshoot, clicks that land off-centre with a real press dwell, scrolls decomposed into momentum ticks, and typing with human-shaped inter-key timing:

set_config({ key: "humanize", value: true })

Measured on an instrumented page, the same three clicks produce 3 mouse-move events with it off and 41 with it on (2 vs 39 distinct points) — while clicks, mousedowns and mouseups come out identical. That is the guarantee: randomisation changes where inside a target you land, how the cursor gets there, and when — never what happens. Same element, same text, same scroll position.

Realism costs wall-clock, so the time affordance is a setting:

humanize_speed
fastestThe shape of human motion, compressed — for getting through a lot
fast (default)Fewer path samples and shorter pauses
naturalGenuine human cadence
relaxedUnhurried motion (typing stays near natural — see below)

Every tier keeps movement before the click, real key events and identical outcomes; faster tiers use fewer path samples and shorter pauses, never none. Typing is scaled separately from motion, because its cost is per character rather than per action: the slow tier stretches cursor movement but barely stretches typing, since an unhurried person still types at their own speed. For reference, humanize off takes ~0.2s to type 15 characters, which is the floor imposed by CDP dispatch itself. The ceiling is deliberate too — a slower tier measured at ~4.2s for the same text was cut, because a setting nobody would pick is a trap rather than an option.

Settings can be scoped to one tab (set_config({ key, value, tabId })), and get_config returns the catalog of recognised settings so the current set is always discoverable rather than documented only here.

Note that typing emits real keydown/keyup events regardless of this setting — that is parity with Claude in Chrome, which does the same, not a humanization extra. humanize only changes the timing between them.

Auditing agent sessions

Watch back what an agent did in the browser, instead of asking the session to describe its own work. Off by default:

js
set_config({ key: "audit_mode", value: "audit" })

With it on, the first action against a tab starts an rrweb DOM recording in it, and the extension stitches those into one timeline per Claude Code session, under Audits on the options page. Press play once and the replay runs start to finish, switching tabs on its own.

It is a mode rather than a flag because a later teach mode wants the opposite masking default — an audit should mask what a person types, while training data is exactly that text.

How a session is attributed. The native host already namespaces every request as h{clientId}_{id} so replies route back to the client that asked, and the extension echoes that id back untouched. Reading the prefix is enough to know which Claude Code session performed an action, so two agents driving two tabs produce two independent audits rather than one interleaved mess.

Streams and segments. rrweb node ids are integers scoped to a single snapshot, so two tabs' event streams can never be concatenated — the ids would collide and both replays would corrupt. A stream is therefore one recording in one tab, living until its document does, and a segment is a run of consecutive actions in one tab. Returning to a tab opens a new segment over the same stream. Continuity is built at the timeline layer, never in the data.

A stream costs almost nothing while idle, because rrweb is event driven, but restarting one costs a full DOM snapshot — so the policy favours keeping streams alive: a 30-minute idle reaper and a 40MB cap exist only to stop a runaway page. Hitting the cap marks the stream truncated rather than silently stopping, since a replay that just ends looks identical to a session that ended there.

What it does and does not capture. Recording runs in the extension's isolated world, so the page cannot observe it — no web API exposes content scripts — where a main-world injection would have to patch natives and could be spotted with a toString check. Canvas recording stays off: it is the one rrweb feature touching natives (toDataURL/getImageData) that anti-fingerprinting sweeps already watch.

The cost of that choice is real and worth knowing before relying on a replay:

CapturedNot captured
DOM structure, text, attributes, ARIAVideo and audio content (elements and play/pause only; blob:/MSE sources will not replay)
Mutations, input, scroll, mouseCanvas and WebGL
Open shadow roots, adopted stylesheetsClosed shadow roots created before recording started
Same-origin CSS (inlined)Cross-origin CSS — CORS-blocked, cannot be inlined
Assets behind auth or short TTLs, which are referenced by URL and re-fetched at replay

In short it is excellent for anything marked up and blind to anything painted, which is why the recorder's own image track is not replaced by it.

Claude in Chrome tools not yet supported in Open Claude in Chrome

  • browser_batch — run several tool calls in one round trip. Open Claude in Chrome instead offers execute_code, which runs arbitrary JS driving the same tools in one call.
  • list_connected_browsers — enumerate attached browsers.
  • select_browser — pick which browser drives automation.
  • upload_image drop-at-coordinate — Open Claude in Chrome's upload_image attaches to a file input by ref only.

Updating After Code Changes

No build step. All files are plain JavaScript. After pulling or editing code:

What changedWhat to do
extension/background.js, extension/content.js, extension/manifest.json, or extension/recorder/*Reload the extension: brave://extensions > click the reload icon
host/mcp-server.jsKill stale servers and reconnect: pkill -f "node.*mcp-server" then /mcp in Claude Code
host/codemode/*.js or host/codemode/worker/*Kill the codemode server: pkill -f "server-codemode|server-hybrid" and pkill -f wrangler, then /mcp in Claude Code
host/native-host.jsRestart the browser (close all windows, reopen)
install.sh or native host name changedRe-run ./install.sh <extension-id>, restart browser, re-add MCP

Quick reset (nuclear option)

If things are broken and you're not sure why:

bash
# 1. Kill all MCP servers
pkill -f "node.*mcp-server"

# 2. Re-run install
./install.sh <your-extension-id>

# 3. Restart browser (close all windows, reopen)

# 4. Reload extension in brave://extensions

# 5. Reconnect in Claude Code
# /mcp

Multiple Sessions

Multiple Claude Code sessions can share the same browser extension. The first session becomes the "primary" (owns the TCP port), and subsequent sessions connect as clients through the primary. All sessions can use the browser simultaneously.

If a session disconnects, kill stale servers and reconnect:

bash
pkill -f "node.*mcp-server"
# then /mcp in each Claude Code session

Community

Questions, ideas, or something broken? Join the Discord — good place to ask before filing an issue, and where feature discussion happens.

Troubleshooting

Extension not connecting

  1. Verify the extension is loaded and enabled
  2. Check that ./install.sh was run with the correct extension ID
  3. Restart the browser completely (all windows)
  4. Verify the native messaging host manifest exists:
    • Chrome (macOS): ~/Library/Application Support/Google/Chrome/NativeMessagingHosts/com.anthropic.open_claude_in_chrome.json
    • Brave (macOS): ~/Library/Application Support/BraveSoftware/Brave-Browser/NativeMessagingHosts/com.anthropic.open_claude_in_chrome.json
    • Edge (macOS): ~/Library/Application Support/Microsoft Edge/NativeMessagingHosts/com.anthropic.open_claude_in_chrome.json

MCP server not found

Use an absolute path:

bash
claude mcp add open-claude-in-chrome -- node /absolute/path/to/host/mcp-server.js

"Browser extension is not connected"

The MCP server started but the native host hasn't connected. Try:

  1. Open any webpage (wakes the service worker)
  2. Check service worker logs: chrome://extensions > "Inspect views: service worker"
  3. Verify host/native-host-wrapper.sh exists

Tools fail immediately after reconnect

This used to mean a stale MCP server from an earlier session was holding the shared port, and the fix was to pkill them. That is no longer possible: the native host owns the bridge, sessions only connect to it, and a leftover process holds nothing anyone needs.

If tools still fail, the browser side is the place to look — see "Browser extension is not connected" above.

Changing the rendezvous

Sessions and the native host meet on a named pipe (\\.\pipe\open-claude-in-chrome-<user> on Windows, a unix socket under a 0700 directory on macOS and Linux). The name is derived from your username, so nothing needs configuring and two users on the same machine cannot collide.

To override it — normally only useful for running an isolated second instance:

  1. Create ~/.config/open-claude-in-chrome/config.json:
    json
    { "pipe": "/tmp/my-own-bridge.sock" }
  2. Restart the browser and Claude Code

OCIC_PIPE does the same thing per-process, which is how the test suite stands up a whole host + client fleet without touching a live install.

License

MIT

Built by Sebastian Sosa (Noemica)

将 Open Claude In Chrome MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Open Claude In Chrome 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 Open Claude In Chrome 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Open Claude In Chrome MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "open-claude-in-chrome": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Open Claude In Chrome MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Open Claude In Chrome MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Open Claude In Chrome 帮我完成这项任务吗?
Open Claude In Chrome
当然,我看过了。
以下是我使用 Open Claude In Chrome 得到的结果。

常见问题

Open Claude In Chrome MCP 服务器有什么用途?

Open Claude In Chrome 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Open Claude In Chrome MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Open Claude In Chrome。

为什么在 TypingMind 中使用 Open Claude In Chrome MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Open Claude In Chrome 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Open Claude In Chrome MCP 连接到 TypingMind?

Open Claude In Chrome 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Open Claude In Chrome MCP 在 TypingMind 中提供哪些工具?

Open Claude In Chrome 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Open Claude In Chrome MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Open Claude In Chrome 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇