What is this?
MemPalace is a local-first AI memory system that stores conversation history as verbatim text (not summarized) and retrieves it with semantic search, so coding agents can remember past sessions.
Is this a library, a CLI, or an MCP server?
It is all three: a Python package with a CLI, an MCP server for agent integration, and a pluggable backend library, plus a Docker image.
How do I get it running?
Install the MemPalace skills and let your coding agent set it up, or install the CLI directly with 'uv tool install' / 'pipx install mempalace' / pip in a virtualenv, or run the multi-arch Docker image mounting a volume for /data.
What do I need before installing — Python, a vector database?
You need Python 3.9+, a vector-store backend (ChromaDB bundled by default), and about 300 MB of disk for the embedding model (minilm or embeddinggemma).
Any install pitfalls I should watch for?
Claude Code sessions expire in 30 days without auto-save hooks wired; on Docker/Linux the container runs as uid 1000 so mounted directories need to be readable by that uid; and the GPU Docker image only builds for x86_64, failing on Apple Silicon or other ARM hosts.
Does it work on Android?
Native Termux is not supported because ChromaDB and ONNX Runtime don't publish Android wheels, but Android ARM64 users can run the regular Linux packages inside a Debian PRoot container.
Can it run fully offline without any API calls?
Yes, the raw semantic search mode achieves 96.6% R@5 on LongMemEval with zero API calls and no LLM required.
Does my data leave my machine?
No — MemPalace is local-first and nothing leaves your machine unless you explicitly opt in (e.g. configuring a remote embedding server).
How is the memory organized internally?
Content is structured hierarchically: people and projects become 'wings', topics become 'rooms', and original verbatim content lives in 'drawers', so searches can be scoped rather than run against one flat corpus.
Can I swap out the default ChromaDB backend?
Yes, the retrieval layer is pluggable with a documented backend contract, and MemPalace ships built-in alternatives like sqliteexact, rustexact, milvus, qdrant, and pgvector in addition to the default ChromaDB.
How does it compare to Mem0, Mastra, or Zep?
The project deliberately avoids a side-by-side comparison, arguing those tools publish different metrics on different splits so a direct comparison would be misleading; it instead publishes its own reproducible benchmarks like LongMemEval, LoCoMo, ConvoMem, and MemBench.
How does it keep agents from forgetting across sessions?
It provides auto-save hooks for Claude Code, Codex CLI, and Cursor IDE that save periodically and before context compaction, plus a 'mempalace sweep' command for per-message verbatim recall, and a temporal knowledge graph for entity relationships.
What are similar projects?
memvid, EverOS, ruflo, RuVector, graph-memory-starter, laya, Hy-Memory, claude-mem
Which topics is it in?
chromadb, knowledge-graph, vector-database, semantic-search, memory, sqlite, agent-skills, rust, agent, mcp, claude-code, terminal