You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Persistent memory for AI agents. Structured entity model. SQLite + FTS5 + hybrid vector search. MCP-native. Fully local.
What is Mimir?
Mimir is a lightweight MCP JSON-RPC 2.0 stdio server that gives AI agents durable
memory across sessions. Agents store structured entities, journal their decisions,
manage transient state, generate embeddings, query with hybrid search, and ingest
external data — all through 27 MCP tools.
It uses SQLite with FTS5 + dense vector search across three tables: entities
(structured, idempotent), journal (append-only event log), and state (key-value
with TTL). Optional Ollama integration enables RAG (mimir_ask) and embedding
generation (mimir_embed). A built-in web dashboard provides visual exploration.
Works with any MCP host: Claude Desktop, Cursor, OpenClaw, Hermes Agent, Perseus, etc.
Quick Start
# Build from source
git clone https://github.com/tcconnally/mimir.git
cd mimir
cargo build --release
cp target/release/mimir ~/.local/bin/
# Or download the binary
curl -sSL https://github.com/tcconnally/mimir/releases/download/v1.0.0/mimir-v1.0.0-linux-x86_64 -o mimir
chmod +x mimir && mv mimir ~/.local/bin/
Requirements: Rust 1.70+ (stable), a C compiler (rusqlite bundles SQLite).
Install
# Python client
pip install mimir
# Or download the standalone binary (no Python needed)
curl -L https://github.com/tcconnally/mimir/releases/latest/download/mimir-linux-x86_64 -o mimir
chmod +x mimir
./mimir --db ./memory.db
Quickstart
frommimirimportMimirClientclient=MimirClient("./memory.db")
client.remember("Hello world — my first persistent memory!", category="demo")
results=client.recall("first memory")
print(results[0].content)
# "Hello world — my first persistent memory!"
Why Mimir vs Alternatives
Mimir
Mem0
Letta
Zep
Deployment
Single binary
Cloud + self-host
Docker/Postgres
Docker/Postgres
Dependencies
None (SQLite embedded)
Python + vector DB
Postgres + Python
Postgres + Go
Encryption
AES-256-GCM ✅
❌
❌
❌
Hybrid Search
BM25 + Dense + RRF
Vector only
Vector only
Vector + Graph
MCP Tools
23
5
8
0
Offline/Local
✅ Fully local
Cloud-dependent
Docker needed
Docker needed
License
MIT
Apache 2.0
Apache 2.0
Apache 2.0
Mimir is for teams that want production memory without infrastructure — no Postgres, no Docker, no cloud services. Just one binary.
Features
Hybrid Search
FTS5 keyword search with LIKE fallback and stemming expansion
Dense vector search via cosine similarity on stored embeddings