๐ง 100% local ยท MCP-native ยท MIT-licensed
Memory your AI agent actually keeps¶
Local, private long-term memory for AI coding agents โ hybrid graph + vector search, two-stage verification, and an autonomous Night Gardener. Runs entirely on your machine. Zero cloud by default.
auditable, not a vibe
Claude Desktop ยท Cursor ยท OpenCode
readable in an afternoon
by default
$ hydramem stats --last-7d
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ HydraMem Stats โ last 7 days โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโค
โ Tool calls โ 142 โ
โ Tokens (naive RAG) โ 1.4M โ
โ Tokens injected โ 312K โ
โ Tokens saved โ 1.09M (77.8%) โ
โ Avg VoG score โ 0.887 โ
โ Rejected by SR-MKG โ 89 โ
โ Hallucinations blocked โ 5 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโฏ
Why HydraMem¶
-
100% local, zero exfiltration
Your codebase context, graph, vectors and telemetry never leave your machine. No cloud memory service in the loop. Secrets come from env vars only.
-
Hybrid graph + vector search
LanceDB / Grafeo vectors + graph traversal + BM25, fused with Reciprocal Rank Fusion in a single query.
-
Two-stage verification
Every relation passes a topological SR-MKG scorer and an optional VoG groundedness check โ so the graph never fills with hallucinated edges.
-
Autonomous Night Gardener
Offline relation inference & pruning that refines the graph overnight โ and emits zero relations when there is no real evidence.
-
MCP-native (18 tools)
A FastMCP server that plugs into Claude Desktop, Cursor and OpenCode over stdio or HTTP. Single-tenant by design.
-
Honest & auditable
hydramem stats --rawaudits every token saved. No fabricated metrics โ if a component doesn't measurably work, the docs say so.
Quick start in 60 seconds¶
Then ingest your notes and ask a question โ everything runs locally:
How it works¶
AI client (Claude Desktop / Cursor / OpenCode)
โ MCP (stdio ยท http)
โผ
HydraMem MCP server (FastMCP ยท 18 tools ยท local telemetry)
โ
โโโโโโดโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโ
โผ โผ โผ
Ingest Hybrid search Night Gardener
chunk โ embed vector + graph infer โ verify โ prune
(Nomic v1.5, + BM25 (RRF) (offline, evidence-only)
512-d, local) โ SR-MKG โ VoG
โ โ โ
โโโโโโโโโโโโฌโโโโโโโโโโดโโโโโโโโโโโฌโโโโโโโโโโ
โผ โผ
Graph store (Grafeo) Vector store (LanceDB / Grafeo HNSW)
The default stack is Gemma 4 (gemma4:e4b) for local reasoning/verification and
Nomic Embed Text v1.5 (Matryoshka, truncated to 512-d) for embeddings โ both run
locally. Swap any of them in config.yml.
How does it compare?¶
| Project | Local-first | Graph + vector | Verifies relations | Offline learning | MCP-native | License |
|---|---|---|---|---|---|---|
| HydraMem | โ | โ | โ (SR-MKG + VoG) | โ (Night Gardener) | โ | MIT |
| Mem0 | partial | optional | โ | partial | community | Apache-2.0 |
| Letta / MemGPT | โ | โ | โ | โ | โ | Apache-2.0 |
| Zep / Graphiti | partial | โ | partial | โ | community | Apache-2.0 |
| MS GraphRAG | โ | โ | indirect | โ | โ | MIT |
Honest positioning
HydraMem is not the first memory system, graph-RAG, or hallucination filter. It's an opinionated local-first integration of those patterns, small enough to read in an afternoon (~5k LOC) and with metrics you can audit.
Give your agent a memory that stays yours.¶
๐ Get started ๏ฟฝ Integrations ๏ฟฝ๐ฆ MCP tools reference โ Star on GitHub