Octobrain logo

Octobrain

Persistent semantic memory and knowledge retrieval with graph relationships, hybrid search, and MCP access.

Install Octobrain

Run the project’s own setup commands, in order.

Setup steps from the project

Octobrain installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    cargo install octobrain
    
  2. 2. Start the server
    octobrain mcp
    
  3. 3. Install
    git clone https://github.com/muvon/octobrain.git
    
  4. 4. Run
    cd octobrain
    
  5. 5. Install
    cargo build --release
    
  6. 6. Install
    docker pull ghcr.io/muvon/octobrain:latest
    

Overview

Octobrain MCP server gives AI assistants persistent memory for insights, decisions, project context, and indexed knowledge. Octobrain stores embeddings and metadata, supports semantic and hybrid search, and connects related memories into a traversable graph. Its MCP interface exposes memory storage, retrieval, deletion, and unified knowledge operations over stdio or HTTP. Use it when an assistant needs context that survives individual conversations or must search project documentation and files.

Use cases

  • Store architecture decisions for retrieval in later coding sessions
  • Search project documentation and indexed web content by meaning
  • Link related memories and explore their dependency graph
  • Import and synchronize Git-backed knowledge boxes
  • Run persistent assistant memory through an MCP-compatible client

Key features

  • Persistent memory with semantic and hybrid search
  • Knowledge graph relationships and automatic linking
  • Indexing for URLs and common document formats
  • Git-backed knowledge boxes with project or global scope
  • MCP tools over stdio or HTTP
  • Local or API-based embedding providers

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

20/21 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars22Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Octobrain works

What Octobrain does

Octobrain provides a persistent memory layer for AI assistants. It can retain code insights, architecture decisions, bug fixes, preferences, and other project context across sessions. Memories can be searched by meaning rather than exact wording, filtered by scope, role, type, tags, files, or time-related context, and retrieved together with nearby graph relationships.

The same application also acts as a knowledge base. It can index web pages and local TXT, Markdown, PDF, DOCX, and HTML files, store raw text under a key, and search or read indexed content later. Git-backed knowledge boxes provide a way to import, synchronize, and scope documentation bundles to a project or globally.

How it works

Octobrain is implemented in Rust and can run as a command-line application or as an MCP server. The MCP process communicates over stdio for desktop clients or over HTTP when started with a bind address. Project scope is auto-detected from the Git remote by default, with a command-line option to override it.

Memory retrieval combines vector similarity with BM25 full-text search. A provider-dependent cross-encoder reranking stage is available, and related memories can be connected automatically in a Zettelkasten-style graph. Explicit relationships can also describe links such as dependencies. Consolidation commands can combine goal-related memories or cluster recent similar entries.

Embedding support can use local FastEmbed or HuggingFace providers without API keys. A build without the default embedding features can use Voyage AI, OpenAI, Google, or Jina through their respective API keys.

Setup and configuration

Install the executable from crates.io with Cargo, build it from source, use the published Docker image, or install it through the Homebrew tap. The runtime requires Rust 1.95 or newer when building from source.

Start the MCP endpoint with octobrain mcp for stdio transport. For an HTTP endpoint, provide a bind address such as octobrain mcp --bind 0.0.0.0:12345. Configure a desktop MCP client to launch the stdio command when local integration is preferred.

The default build includes local embedding options and does not need provider credentials. API-based builds use VOYAGE_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY, or JINA_API_KEY, depending on the selected provider.

Tools and capabilities

The MCP interface exposes four tools:

  • memorize stores a memory with metadata and can create inline relationships.
  • remember performs semantic retrieval with filters and includes one-hop graph neighbors.
  • forget removes memories and requires confirmation.
  • knowledge handles search, storage, deletion, reading, pattern matching, and synchronization through a command field.

The CLI adds broader management operations, including recent-memory and statistics views, filtering by type or tags, file-related retrieval, updates, cleanup, maintenance, graph exploration, relationship management, and full data deletion. Knowledge commands can index URLs and supported local files, search a particular source, match regular expressions, list sources, and remove indexed or stored content. Knowledge-box synchronization re-indexes subscribed repositories and local .box/ directories after edits.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Octobrain

Octobrain is an MCP server that connects AI assistants to persistent memory and an indexed knowledge base. Its main tools, `memorize`, `remember`, `forget`, and `knowledge`, let agents save and retrieve memories, follow related graph entries, and search, read, store, delete, or synchronize knowledge content across sessions.

Install it with `cargo install octobrain`. You can also build it from source, pull the published Docker image, or install it with Homebrew on macOS or Linux. Start the MCP process with `octobrain mcp` after installation.

Run `octobrain mcp` using Claude Desktop's stdio MCP configuration. Octobrain also supports an HTTP mode with `octobrain mcp --bind 0.0.0.0:12345` for tools that connect over HTTP.

No, the default build can use local FastEmbed or HuggingFace embeddings without API keys. API credentials are needed when building with API-based providers such as Voyage AI, OpenAI, Google, or Jina.

Octobrain can index web URLs and local `.txt`, `.md`, `.pdf`, `.docx`, and `.html` files. Its knowledge commands can then search, read, match, list, synchronize, or delete indexed content.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOctobrain AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/octobrain?style=directory)](https://allmcps.com/mcp/octobrain)
HTML Embed
<a href="https://allmcps.com/mcp/octobrain"><img src="https://allmcps.com/api/badge/octobrain?style=directory" alt="Octobrain on AllMCPs" /></a>