Open source MCP memory server with knowledge graph, Hebbian learning, and RRF fusion search — Rust, 7.6MB, sub-ms latency
r/LocalLLaMA
•
Generative AI
I've been working on a persistent memory system for AI agents that goes beyond simple RAG or vector s. It's an MCP server written in Rust with PostgreSQL + pgvector backend. **Architecture highlights:** - **Knowledge graph** - entities, observations, typed relations (not flat documents) - **Exponential decay** - importance = importance * exp(-0.693 * days/halflife). Halflife=30d. Memories fade realistically - **Hebbian + BCM metaplasticity** - Oja's rule with EMA sliding threshold.