Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
MCP memory server for AI coding assistants. Windows Service, ONNX embeddings, SQLite vector search.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"context-bridge": {
"command": "dnx",
"args": [
"ThunderEagle.ContextBridge",
"--yes",
"stdio"
]
}
}
}在终端中运行这条命令
claude mcp add context-bridge -- dnx ThunderEagle.ContextBridge --yes stdio粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"context-bridge": {
"command": "dnx",
"args": [
"ThunderEagle.ContextBridge",
"--yes",
"stdio"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"context-bridge": {
"type": "stdio",
"command": "dnx",
"args": [
"ThunderEagle.ContextBridge",
"--yes",
"stdio"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 ThunderEagle 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.0.2)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 .NET。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A zero-dependency MCP memory server for Windows that gives AI coding assistants a shared, persistent memory layer with semantic search.
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.
%ProgramData%\ContextBridge\memories.db. Backup is one file copy.dotnet 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.
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.
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
context-bridge configure
What happens:
service install downloads the embedding model (~22 MB), registers the Windows Service, sets it to auto-start on boot, and starts it immediately.configure auto-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
| 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.
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 documentationMemories 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.
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.
| 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)| 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.
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.
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.
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.
All functionality is controlled via the context-bridge command. Run from any command-line (admin PowerShell required for service install/uninstall/config set).
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)
context-bridge model download # Download embedding model (~22 MB) from Hugging Face
context-bridge model download --yes # Skip confirmation, force re-download
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.
context-bridge configure # Auto-configure all installed clients
This command:
~/.claude/CLAUDE.mdExample 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:
config set port)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.
For developers who want to modify, test, or run ContextBridge locally.
dotnet CLI and runtimegit 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.
dotnet test
This executes all xUnit integration tests (~2–5 minutes):
Tests use real temp-file SQLite databases (not in-memory) because sqlite-vec requires file-backed connections.
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:
http://127.0.0.1:5290 (localhost only)%LOCALAPPDATA%\ContextBridge\memories.db (user temp directory)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).
只显示了开头部分;其余内容请在仓库中阅读