Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Persistent memory for AI assistants with semantic search and knowledge graph relationships.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
链接指向作者自己的文件;我们不托管也不重新打包它。打开文件后,Claude Desktop 会进行安装。
在终端中运行这条命令
claude mcp add octobrain -- npx -y @muvon/octobrain mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"octobrain": {
"command": "npx",
"args": [
"-y",
"@muvon/octobrain",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"octobrain": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@muvon/octobrain",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 muvon 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.15.1)于3天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js, MCPB。
同一分类中有: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、图片和脚本已被移除。链接会离开本站。
Persistent memory for AI assistants — store insights, decisions, and knowledge that survives across conversations.
_MCP Registry: mcp-name: io.github.Muvon/octobrain_
Octobrain gives your AI assistant a long-term memory. Store code insights, architecture decisions, bug fixes, and knowledge — then retrieve them with semantic search in future sessions. Works as a CLI tool or as an MCP server for integration with Claude Desktop and other AI tools.
AI assistants start every conversation with zero context. You explain your project, your preferences, your decisions — every single time. Octobrain breaks that cycle:
# Install from crates.io
cargo install octobrain
octobrain memory memorize --title "API Design Pattern" \ --content "Use REST for CRUD, GraphQL for complex queries" \ --memory-type architecture --tags "api,design"
octobrain memory remember "how should I design APIs"
octobrain mcp
cargo install octobrain
# Clone and build
git clone https://github.com/muvon/octobrain.git cd octobrain cargo build --release
./target/release/octobrain --help
docker pull ghcr.io/muvon/octobrain:latest
brew install muvon/tap/octobrain
Octobrain supports multiple embedding providers:
| Flag | Description | API Key Required |
|---|---|---|
fastembed | Local embeddings via FastEmbed | No |
huggingface | Local embeddings via HuggingFace | No |
| (default) | Both fastembed + huggingface | No |
| (no features) | API-based: Voyage, OpenAI, Google, Jina | Yes |
# Build with local embeddings (default, no API keys needed)
cargo build --release
cargo build --no-default-features --release
For API-based embeddings, set the appropriate environment variable:
VOYAGE_API_KEY for Voyage AIOPENAI_API_KEY for OpenAIGOOGLE_API_KEY for GoogleJINA_API_KEY for JinaStore and retrieve insights, decisions, and context:
All memory subcommands accept global flags:
--scope — Override project scope (default: auto-detected from Git remote)--role — Filter by role (e.g. "developer", "reviewer")# Store a memory
octobrain memory memorize --title "API Design" \ --content "Use REST for CRUD, GraphQL for complex queries" \ --memory-type architecture --tags "api,design"
octobrain memory remember "api design patterns"
octobrain memory remember "authentication" "security" "jwt"
octobrain memory get
octobrain memory recent --limit 20
octobrain memory by-type architecture --limit 10
octobrain memory by-tags "api,security"
octobrain memory for-files "src/main.rs,src/lib.rs"
octobrain memory update --title "New Title" --add-tags "new-tag"
octobrain memory forget --memory-id
octobrain memory current-commit
octobrain memory stats
octobrain memory cleanup
octobrain memory maintenance
octobrain memory clear-all --yes
Close a goal and fold all its contributing memories into a consolidated summary:
# Consolidate a goal (Achieves-link sources → Consolidated state, importance dampened)
octobrain memory consolidate --summary "Final summary"
octobrain memory sleep-consolidate --threshold 0.85 --min-size 3
Connect related memories for context-rich retrieval:
# Create a relationship between memories
octobrain memory relate \ --relationship-type "depends_on" \ --description "Source requires target to function"
octobrain memory relationships
octobrain memory related
octobrain memory auto-link
octobrain memory graph --depth 2
Index and search web content, docs, and files:
# Index a URL
octobrain knowledge index https://docs.rs/tokio/latest/tokio/
octobrain knowledge index ./docs/architecture.md
octobrain knowledge search "how to handle async tasks"
octobrain knowledge search "spawn blocking" --source https://docs.rs/tokio/
octobrain knowledge read https://docs.rs/tokio/latest/tokio/
octobrain knowledge match "spawn_blocking|block_in_place"
octobrain knowledge store "meeting-notes" --content "Discussion points..."
octobrain knowledge list --limit 20
octobrain knowledge stats
octobrain knowledge delete https://example.com/docs
octobrain knowledge delete-stored "meeting-notes"
Import and sync git-backed knowledge bundles scoped to your projects:
# Import a remote git repo as a knowledge box
octobrain box import https://github.com/org/docs-repo.git
octobrain box import https://github.com/org/docs-repo.git --global
knowledge sync after editing .box/)octobrain box sync
octobrain box list
octobrain box remove github.com/org/docs-repo
Run as an MCP server for integration with Claude Desktop and other AI tools:
# Start with stdio transport (for Claude Desktop)
octobrain mcp
octobrain mcp --bind 0.0.0.0:12345
Available MCP Tools:
| Tool | Description |
|---|---|
memorize | Store memories with metadata; optional related_to for inline relationships |
remember | Semantic search with filters; returns 1-hop graph neighbors |
forget | Delete memories (requires confirmation) |
knowledge | Unified tool: search, store, delete, read, match, sync via command field; sync re-indexes knowledge boxes after .box/ edits |
See MCP Integration for Claude Desktop setup.
Retrieval quality of octobrain's knowledge system on standard BEIR datasets — nDCG@10, fully local, no LLM judge, using the harness's default embedder bge-small-en-v1.5 (384-dim, 33M params). Each corpus passage is indexed through octobrain's real retrieval path and scored against the official qrels (metrics reproduce pytrec_eval).
| Dataset | octobrain vector | octobrain hybrid | BM25¹ | bge-small-en-v1.5² |
|---|---|---|---|---|
| SciFact (5.2K docs, 300 q) | 0.722 | 0.742 | 0.665 | 0.713 |
| NFCorpus (3.6K docs, 323 q) | 0.341 | 0.363 | 0.325 | 0.343 |
¹ Canonical BM25 from the BEIR paper (Anserini/Lucene, k1=0.9 b=0.4). ² From the bge-small-en-v1.5 model card (MTEB).
Scope: this measures the ranking layer (embedding + BM25 fusion + reranking). BEIR passages are pre-chunked, so octobrain's chunking strategy is not exercised here.
⚠️ Reranker status: The cross-encoder reranker is currently a no-op with fastembed models (byte-identical results to hybrid-only). Rerank is excluded from the numbers above pending investigation. See
benches/README.mdfor details.
Reproduce (downloads the datasets, builds a release binary, runs fully offline):
cd benches && bash scripts/run_retrieval.sh
Configuration is stored in ~/.local/share/octobrain/config.toml. The template written on first run defines every option with sensible defaults, but loading is strict — a field you delete by hand causes startup to fail rather than falling back to a default.
Override the config location with OCTOBRAIN_CONFIG_PATH=/path/to/config.toml.
| Section | Option | Default | Description |
|---|---|---|---|
[embedding] | model | fastembed:Qdrant/all-MiniLM-L6-v2-onnx | Embedding model (provider:model format). Default is a local fastembed model — no API key, runs on CPU. |
[search] | similarity_threshold | 0.3 | Minimum relevance (0.0-1.0) |
[search.hybrid] | enabled | true | Enable BM25 + vector fusion |
| [search.reranker] | enabled | `
只显示了开头部分;其余内容请在仓库中阅读