MemPalace stores conversation text verbatim and retrieves it with semantic search. It exposes an MCP server and CLI for coding agents.
Overview
MemPalace is a local-first memory system for AI workflows. It keeps original conversation and note text without summarizing, then indexes content for semantic recall. Data is organized into wings, rooms, closets, and drawers so searches can be scoped by people, projects, or time.
The default storage backend is embedded ChromaDB, with optional backends such as SQLite exact search, Milvus, Qdrant, and Postgres pgvector. Embeddings run on your machine by default, so routine use needs no cloud API. A temporal knowledge graph in SQLite tracks entity relationships with validity windows.
The MCP server exposes many tools for palace operations, graph queries, mining local files, agent diaries, and coordination. Docker images run the MCP server or CLI on amd64 and arm64 with persistent volumes. Hooks for Claude Code, Codex, and Cursor can auto-save sessions and recall before compaction.
Installation paths include uv or pipx for an isolated CLI, agent-guided setup skills, and compose files for team hubs. Retrieval benchmarks are published for LongMemEval and other suites using hybrid search without mandatory LLM reranking.
Key features
- Verbatim storage with semantic recall
- Pluggable vector backends
- MCP server with broad tool surface
- Palace indexing by entity and time
- Local embedding without cloud keys
- Temporal knowledge graph in SQLite
- Docker and compose deployment
- Auto-save hooks for major agents
Use cases
- Long-horizon agent session memory
- Mining local chat transcripts
- Shared team memory hub
- Recall before answering in IDEs
- Offline semantic search over notes