Persistent memory for AI assistants with semantic search and knowledge graph relationships.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
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:
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 |
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:
Close a goal and fold all its contributing memories into a consolidated summary:
Connect related memories for context-rich retrieval:
Index and search web content, docs, and files:
Run as an MCP server for integration with Claude Desktop and other AI tools:
Available MCP Tools:
| 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 via command field |
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 default local 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.
Reproduce (downloads the datasets, builds a release binary, runs fully offline):
Configuration is stored in ~/.local/share/octobrain/config.toml. All options have sensible defaults.
| Section | Option | Default | Description |
|---|---|---|---|
[embedding] | model | fastembed:nomic-ai/nomic-embed-text-v1.5 | 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 | true | Enable cross-encoder reranking |
[search.hyde] | enabled | true | Pseudo-relevance feedback query expansion |
[memory] | max_memories | 10000 | Maximum stored memories |
[memory] | auto_linking_enabled | true | Auto-connect similar memories |
[knowledge] | chunk_size | 1200 | Characters per chunk |
See config-templates/default.toml for all available options with documentation.
Organize memories by category for better filtering:
| Type | Use For |
|---|---|
code | Code patterns, solutions, implementations |
architecture | System design, decisions, patterns |
bug_fix | Bug fixes, troubleshooting, solutions |
feature | Feature specs, implementations |
documentation | Docs, explanations, knowledge |
user_preference | Settings, preferences, workflows |
decision | Project decisions, trade-offs |
learning | Tutorials, notes, education |
configuration | Setup, config, deployment |
testing | Test strategies, QA insights |
performance | Optimizations, benchmarks |
security | Vulnerabilities, fixes, considerations |
validation | Idea/product validation, hypothesis testing |
research | Technical/market research, analysis |
workflow | SOPs, playbooks, process descriptions |
requirement | Business requirements, specs, constraints |
design | UI/UX decisions, wireframes, system design |
integration | API integrations, third-party services |
communication | Stakeholder updates, team decisions |
process | Deployment procedures, runbooks, operations |
insight | General insights, tips |
goal | Task/intent anchors for consolidation workflow |
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Restart Claude Desktop. Octobrain tools will be available in your conversations.
For web-based integrations:
The server exposes endpoints at /mcp for MCP protocol communication.
Data is stored in platform-specific directories:
| Platform | Location |
|---|---|
| macOS | ~/.local/share/octobrain/ |
| Linux | ~/.local/share/octobrain/ or $XDG_DATA_HOME/octobrain/ |
| Windows | %APPDATA%\octobrain\ |
Project-specific memories are isolated by Git remote URL hash.
Contributions are welcome! Please:
git checkout -b feature/amazing-feature)cargo clippy and fix all warningscargo test --no-default-featuresApache-2.0 β see LICENSE for details.
Developed by Muvon Un Limited.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/octobrain)<a href="https://allmcps.com/mcp/octobrain"><img src="https://allmcps.com/api/badge/octobrain?style=directory" alt="Octobrain on AllMCPs" /></a>