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 30 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/Perseus-Computing-LLC/mimir.git
cd mimir
cargo build --release
# Linux/macOS: use cargo install to avoid macOS security kill (Killed: 9)
cargo install --path .# Or copy manually (Linux only — macOS will kill the unsigned binary)
cp target/release/mimir ~/.local/bin/
# Or download the binary
curl -sSL https://github.com/Perseus-Computing-LLC/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
Mimir is a standalone Rust binary — no Python client needed. Download the latest release:
# Start the server
./mimir serve --db memory.db
# Remember a fact via the HTTP API
curl -s -X POST http://localhost:8787/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"mimir_remember","arguments":{"category":"demo","key":"hello","body_json":"{\"text\":\"Hello world — my first persistent memory!\"}"}}}'# Recall it
curl -s -X POST http://localhost:8787/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"mimir_recall","arguments":{"query":"first 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