Mnemory
Self-hosted MCP cross-session memory backend. OSS alternative to Anthropic’smemory_20250818 tool. Vendor-neutral: works with Claude Code, ChatGPT, Cursor, OpenWebUI, any MCP-capable client.
GitHub: https://github.com/fpytloun/mnemory
Architecture
Two-tier storage:- Extract candidate facts from conversation
- Classify by type (decision, pattern, constraint, etc.)
- Deduplicate against existing vectors
- Handle contradictions (flag or overwrite depending on confidence)
- Store in appropriate tier
16 MCP Tools
Exposed to agents via MCP server. Categories:- Read: search by semantic query, retrieve by ID, list recent
- Write: store fact, store artifact, update entry
- Manage: list memories, delete, get contradictions, dedupe scan
Compared to Anthropic’s memory_20250818
Neither is fully automatic. Both require the agent to make explicit tool calls to read/write. The difference is semantic search (Mnemory) vs. flat file navigation (Anthropic tool).
Lifecycle Management — The Core Value
The key insight from the Mnemory author:“The useful part is not ‘more context’; it is lifecycle management: deduping decisions, handling contradictions when a fact changes, expiring short-term context, and keeping longer details as artifacts instead of stuffing everything back into the prompt. If memory becomes a second messy knowledge base, it eventually hurts more than it helps.”This matches the Context Compression Strategies principle: optimize for signal density, not volume.
When to Use Mnemory vs Filesystem State
The Pocock workflow stores all state in git (PRD files, issue files, commits) — no memory system needed because the filesystem is the memory. Mnemory makes sense when:- Working across multiple repos (memory doesn’t belong to any one repo)
- Vendor-neutral (switching between Claude, Codex, Cursor on the same project)
- Decisions need semantic retrieval, not just file navigation
- Contradiction tracking is important (long-lived projects with changing constraints)
Related Pages
- Agentic Memory Tool — Anthropic’s memory_20250818 tool; architecture comparison
- Context Compression Strategies — compression strategies; Mnemory adds a memory-lifecycle layer
- Context Engineering — the discipline Mnemory implements
- Indirect Prompt Injection — memory files as injection vector (applies to both systems)