Mnema: Shared Memory for Coding Agents
fatihsrb · reddit · 2026-07-19
The author developed a self-hosted MCP server called Mnema, designed to let different AI coding tools like Claude Code and Cursor share the same long-term memory, rather than starting from scratch in every session.
Core features include:
- Cross-tool shared memory: Project decisions, context, and history are stored centrally, accessible by any MCP-compatible agent.
- Shared skills / prompts repository: Centralizes reusable prompts and skills to avoid duplication across tools.
- Hybrid retrieval: Combines BM25 and vector search to quickly recall relevant information from memory and documents.
- Local execution: Runs on a Raspberry Pi using SQLite, with no cloud dependencies.
The motivation is straightforward: AI tools often "lose their memory" when switching, requiring users to repeatedly explain project backgrounds. Mnema aims to turn this context into a "shared brain" for all agents.
More from coding & agent
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- 105 hidden bugs, 2 repos: DeepSeek V4.1 Flash fixes 24 at $1.80 vs Opus 5's 27 at $51.33 — ChartsJournalX · 2026-09-11
- Investment Analyst Asks How to Build a Claude-Based Diligence Agent Stack — Careless_Tie2286 · 2026-09-11
- Treating agents like 50 First Dates: a 3-layer context system so every conversation doesn't start from zero — evielync · 2026-09-11
- Running the Firefox MCP on Android via Termux, ngrok, and mcp-proxy — Nervous-Strain7544 · 2026-09-11
- SmolVM open-sources persistent computer infrastructure for agents that outlive chat sessions — aniketmaurya · 2026-09-11