ContextBridge
概要
作者による説明(英語の原文)
MCP memory server for AI coding assistants. Windows Service, ONNX embeddings, SQLite vector search.
できること
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
- 接続方法: パソコンで動く
- トランスポート: stdio
- カテゴリ: 検索・AIの記憶
インストール
使っているAIアプリを選んで、設定をコピーしてください。
チェック 2/2 合格 · あなたのパソコンで動きます
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
キー不要、インストール不要 · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
{ "mcpServers": { "context-bridge": { "command": "dnx", "args": [ "ThunderEagle.ContextBridge", "--yes", "stdio" ] } } }Claude を終了してもう一度開く
試してみる
ContextBridge を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が ContextBridge を使っていると言うか、回答に ContextBridge のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ ContextBridge につなげません
ContextBridge はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · ContextBridge につなげるアプリを使う
- キー不要、インストール不要 · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- キー不要、インストール不要
- キー不要、インストール不要
- キー不要、インストール不要
B · 検索・AIの記憶 の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- AIHOT✓ ChatGPT
- Sui Knowledge Base (kapa.ai)✓ ChatGPT
- Exa✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
キー不要、インストール不要
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
claude mcp add context-bridge -- dnx ThunderEagle.ContextBridge --yes stdioClaude Code で /mcp と入力
ContextBridge が一覧にあり、接続済みと表示されれば OK です
試してみる
ContextBridge を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が ContextBridge を使っていると言うか、回答に ContextBridge のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
キー不要、インストール不要
Cursor の AI チャットを Agent モードで開く
試してみる
ContextBridge を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が ContextBridge を使っていると言うか、回答に ContextBridge のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
キー不要、インストール不要
VS Code の AI チャットを Agent モードで開く
試してみる
ContextBridge を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が ContextBridge を使っていると言うか、回答に ContextBridge のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
claude mcp add context-bridge -- dnx ThunderEagle.ContextBridge --yes stdioClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"context-bridge": {
"command": "dnx",
"args": [
"ThunderEagle.ContextBridge",
"--yes",
"stdio"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"context-bridge": {
"command": "dnx",
"args": [
"ThunderEagle.ContextBridge",
"--yes",
"stdio"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"context-bridge": {
"type": "stdio",
"command": "dnx",
"args": [
"ThunderEagle.ContextBridge",
"--yes",
"stdio"
]
}
}
}この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
- 接続方法
- パソコンで動く
- トランスポート
- stdio
- 最新バージョンi
- 1.0.2
- レジストリ公開日i
- 2026年6月26日
- コードの最終更新i
- 2026年10月20日
- 作者
- ThunderEagle
- パッケージ
nuget: ThunderEagle.ContextBridge- ウェブサイト
- github.com
- レジストリでの状態
- 有効
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月11日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント ThunderEagle で確認済みです
- ✓ 合格
今もメンテナンスされている
コードの最終更新:23 日前
- … 未チェック
ライセンスがある
このリポジトリはまだGitHubから読み取っていません
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
検索・AIの記憶のほかのサーバーとの比較i
- このカテゴリのほかの5938件のうち0%よりスターが多い
- このカテゴリのほかの5938件のうち18%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの5938件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
ContextBridgeは安全ですか?
当てはまる基本チェック2項目のうち2項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は23 日前、最新バージョン(1.0.2)がレジストリに届いたのは5 か月前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンに.NETも必要です。
代わりに使えるものは?
同じカテゴリには:Ruflo, Context7, Metabase
代わりの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
ContextBridge
A zero-dependency MCP memory server for Windows that gives AI coding assistants a shared, persistent memory layer with semantic search.
What is ContextBridge?
AI coding assistants like Claude Code are stateless—each session starts fresh, with no persistent memory of your prior context, decisions, or discoveries. ContextBridge solves this by running as a background Windows Service that all your AI tools connect to. It stores memories persistently, searchable by meaning (not keywords), so context accumulates across sessions and across different tools simultaneously.
Why ContextBridge?
- Zero external dependencies — No Docker, Postgres, Python, or Ollama. Everything runs in one Windows Service process.
- In-process embeddings — Embedding model (all-MiniLM-L6-v2, ~22 MB) runs via ONNX Runtime; no external API calls.
- Single-file storage — SQLite database at
%ProgramData%\ContextBridge\memories.db. Backup is one file copy. - Shared across tools — Claude Code (HTTP), Claude Desktop (stdio), Cline, VS Code Chat Agents all connect to the same memory store in real-time.
- Memory survives service restarts — Memories persist in SQLite; the embedding model loads once on startup and stays warm.
Requirements
- Windows 10 / Windows 11 (required for Windows Service integration)
- Option A: .NET 10 SDK (if installing via
dotnet tool) - Option B: Windows 10+ (no additional prerequisites if downloading a pre-built .exe)
- Admin PowerShell (required to install/uninstall the Windows Service)
Quick Start
Option A: Install via dotnet global tool
If you have the .NET 10 SDK installed:
dotnet tool install -g ThunderEagle.ContextBridge
This places a context-bridge executable on your system PATH.
Option B: Direct download
Download a pre-built executable from GitHub Releases (no SDK required; one-time SmartScreen warning). Add the .exe to your PATH or invoke it directly.
First-run setup
Run these two commands in admin PowerShell (right-click → "Run as Administrator"):
# 1. Download the embedding model, register as Windows Service, start it
context-bridge service install
2. Configure your AI tools to connect
context-bridge configure
What happens:
service installdownloads the embedding model (~22 MB), registers the Windows Service, sets it to auto-start on boot, and starts it immediately.configureauto-detects installed clients (Claude Code, Claude Desktop, Cline, VS Code Chat) and wires them up to connect to the service.
The service now runs in the background. Your AI tools will see the memory store the next time you restart them.
Verify the service is running:
Get-Service ContextBridge
Expected output: Status = Running
Supported Clients
| Client | Transport | Version | Notes |
|---|---|---|---|
| Claude Code | HTTP | Latest | Auto-configured by context-bridge configure |
| Claude Desktop | stdio | Latest | Auto-configured via claude_desktop_config.json |
| Cline (VS Code) | HTTP | Latest | Auto-configured by context-bridge configure |
| VS Code Chat Agents | HTTP | 1.99+ | Auto-configured by context-bridge configure |
All clients share the same SQLite database via concurrent connections; memories written by one tool are immediately visible to others.
MCP Tools
ContextBridge exposes seven MCP tools for your AI assistants to use:
| Tool | Purpose |
|---|---|
memory_write | Store a single memory with automatic semantic embedding and optional tags |
memory_batch_write | Store multiple related memories atomically (efficient end-of-session extraction) |
memory_search | Semantic search — natural language query, returns nearest-neighbor results |
memory_list | Paginated list of all memories with optional tag filters |
memory_update | Update a memory's content (re-embedded automatically) |
memory_delete | Delete a memory by ID |
memory_status | Service health check, record count, model info |
Tag conventions (optional; assigned by the AI tool):
project:— scope memories to a projecttype:decision— architectural or technology choicestype:preference— coding style, tooling, workflow preferencestype:pattern— recurring patterns or conventionstype:reference— pointers to external resources or documentation
Handoff — Resuming Sessions
Memories are permanent facts. A handoff is something different: ephemeral session state that lets you resume where you left off in a future session, without reloading conversation history.
How it works
At the end of a session, ask your AI assistant to save its state:
"Save a handoff for project context-bridge with what we were working on."
The model calls handoff_write with a summary of current work — decisions made, next steps, open questions — scoped to the project.
At the start of the next session, the model calls handoff_list automatically (via server instructions) and incorporates any prior handoff as its opening context. It then calls handoff_acknowledge to remove the handoff once processed.
Handoff tools
| Tool | Purpose |
|---|---|
handoff_write | Capture session state — what you're working on, decisions made, next steps |
handoff_list | Retrieve active handoffs, optionally filtered by project |
handoff_acknowledge | Remove a handoff after processing it (permanent deletion) |
Key parameters for `handoff_write`:
content— the session summary (free-form text)project— project identifier, e.g.context-bridge(optional but recommended)ttl_days— how many days to keep the handoff before auto-expiry (default: 7)
Handoffs vs. memories
| Memories | Handoffs | |
|---|---|---|
| Purpose | Durable facts, decisions, preferences | Ephemeral "where I was" snapshots |
| Lifespan | Permanent (until explicitly deleted) | TTL-bounded (default 7 days) |
| Search | Semantic search via memory_search | Exact lookup via handoff_list |
| Cleanup | memory_delete | handoff_acknowledge (or TTL expiry) |
Do not convert handoff content to memories automatically. Memories are for facts that will remain true indefinitely. If something from a resumed session rises to that level, write it via memory_write separately.
Explicit resumption
If your MCP client supports the prompts capability (e.g. Claude Code), you can trigger a session resumption explicitly:
/mcp__context-bridge__resume-session context-bridge
This invokes the resume-session named prompt, which tells the model to look up any handoff for the specified project and incorporate it.
Expiry and reliability
Handoffs expire after ttl_days and are purged on service startup. If a session crashes before handoff_acknowledge is called, the handoff survives until its TTL — it will surface again in the next session's handoff_list call.
Importing Existing Context
If you've been using Claude Code's built-in file-based memory (~/.claude/projects/ /memory/), you can migrate that context into ContextBridge without any special tooling. Just ask:
"Check your memory files and add any relevant entries to context-bridge using
memory_batch_write."
Claude Code reads its own memory index, iterates the entries, and calls memory_batch_write to store them in ContextBridge — where they become semantically searchable and visible to all connected clients immediately.
You can scope the request: *"import only entries tagged project:my-repo"* or *"add everything in your memory files."*
Once imported, you can remove the original file-based entries to avoid maintaining two stores. ContextBridge becomes the single source of truth, shared across Claude Code, Claude Desktop, and any other connected client.
CLI Reference
All functionality is controlled via the context-bridge command. Run from any command-line (admin PowerShell required for service install/uninstall/config set).
Service Management
context-bridge service install # Download model, register service, start it
context-bridge service start # Start the service (no-op if already running) context-bridge service stop # Stop the service gracefully context-bridge service status # Show current status context-bridge service uninstall # Stop and unregister (preserves memories.db)
Model Management
context-bridge model download # Download embedding model (~22 MB) from Hugging Face
context-bridge model download --yes # Skip confirmation, force re-download
Configuration
context-bridge config get port # Show current HTTP port (default: 5290)
context-bridge config set port 8000 # Change HTTP port (requires service restart)
Configuration is stored in %ProgramData%\ContextBridge\appsettings.json. Changes take effect on next service start.
Client Configuration
context-bridge configure # Auto-configure all installed clients
This command:
- Detects installed AI clients (Claude Code, Claude Desktop, Cline, VS Code)
- Writes MCP server configuration for each client
- For Claude Code: injects usage guidelines into
~/.claude/CLAUDE.md - Prints which clients were configured
Example output:
Claude Code configured (HTTP transport)
Claude Desktop configured (stdio transport) Cline configured (HTTP transport) VS Code Chat Agents configured (HTTP transport)
Configured 4 client(s). Restart them to pick up changes.
Run this again after:
- Installing a new AI client
- Changing the service port (
config set port) - Updating ContextBridge itself
Security
Security model: Kestrel binds exclusively to 127.0.0.1 (localhost only). No authentication, no TLS.
Design rationale: The localhost bind is the security perimeter. A process with enough privilege to intercept traffic on 127.0.0.1 already has broad machine access regardless of additional authentication.
Sensitive data: Treat %ProgramData%\ContextBridge\memories.db as sensitive — it contains plaintext memory content. Any credentials or API keys stored in memories should be considered readable by local processes. Keep backups secure accordingly.
Build from Source
For developers who want to modify, test, or run ContextBridge locally.
Prerequisites
- [.NET 10 SDK](https://dotnet.microsoft.com/download) — provides
dotnetCLI and runtime - Windows 10 / Windows 11
- Admin PowerShell — required to install as a Windows Service
- Git
Clone and Build
git clone https://github.com/ThunderEagle/context-bridge.git
cd context-bridge dotnet build
Build time: 30–60 seconds on first run; subsequent builds are faster. Warnings are treated as errors per project policy.
Run Tests
dotnet test
This executes all xUnit integration tests (~2–5 minutes):
- Vector search accuracy validation
- Memory persistence across restarts
- All MCP tool implementations
- Schema migrations
- SQLite + sqlite-vec integration
Tests use real temp-file SQLite databases (not in-memory) because sqlite-vec requires file-backed connections.
Run Locally (Console Mode)
To test the service without installing as a Windows Service:
dotnet run --project src/ContextBridge.Service
This starts the HTTP MCP server in the foreground:
- Binding:
http://127.0.0.1:5290(localhost only) - Storage:
%LOCALAPPDATA%\ContextBridge\memories.db(user temp directory) - Logging: Console output shows startup, request traces, and errors
The service runs until you press Ctrl+C. Expected startup time: 5–10 seconds (ONNX model loads and JIT-compiles on first run; subsequent starts are faster).