# Octobrain [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/muvon/octobrain  
**GitHub Stars:** 22  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/octobrain

## Description
Persistent memory for AI assistants with semantic search and knowledge graph relationships.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/muvon/octobrain), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
cargo install octobrain
```

2. Start the server:

```sh
octobrain mcp
```

3. Install:

```sh
git clone https://github.com/muvon/octobrain.git
```

4. Run:

```sh
cd octobrain
```

5. Install:

```sh
cargo build --release
```

6. Install:

```sh
docker pull ghcr.io/muvon/octobrain:latest
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/octobrain/readme_

