← Back to Leaderboard
MMemPalace

MemPalace/mempalace

Local-first RAG memory for retrieving verbatim project and conversation history

Engineering Health (Methodology)
A+ · 98/100
Maintenance Activity
● Updated 3d ago
Latest Release
v3.12.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption23/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedMCPLocal AICLI
Total Stars
★ 60,810
24h Growth
+14
7d Growth
+120
Forks
7,686

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

MemPalace/mempalace Star History (2026-04-05 - 2026-12-04) ALL-TIME STAR HISTORY (2026-04 – 2026-12) +60.8k in 243d · avg +250/day 64.2k 32.1k 0 2026-04-05: ★ 12026-04-25: ★ 48,3812026-05-16: ★ 51,2222026-06-06: ★ 53,4422026-06-27: ★ 55,7822026-07-18: ★ 56,7052026-08-08: ★ 57,5842026-08-29: ★ 58,2312026-09-19: ★ 58,7742026-10-10: ★ 59,2462026-10-31: ★ 60,0592026-11-15: ★ 60,4812026-12-04: ★ 60,810 ★ 60.8k 2026-04 2026-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

MemPalace is a Python 3.10+ memory and retrieval layer for project files and conversation transcripts. Its mining pipeline indexes verbatim content rather than replacing it with generated summaries. Wings group projects or people, rooms organize topics, and drawers hold source content. The hierarchy lets agents narrow a query to relevant material instead of searching an undifferentiated corpus.

The storage contract in mempalace/backends/base.py separates mining and retrieval from the vector store. ChromaDB is the embedded default. sqlite_exact performs exact vector search with NumPy; rust_exact opens the same SQLite file and falls back to Python for cases such as complex filters. The Rust workspace contains a core crate, PyO3 bindings, and a native CLI. A separate SQLite graph stores temporal entity relationships, while agents access palace operations through the CLI or MCP over stdio.

Key Capabilities & Differentiators

Use mempalace mine to index project files or --mode convos to ingest conversation history, then use search for targeted retrieval or wake-up to load context into a new session. Auto-save hooks cover Claude Code, Codex CLI, and Cursor; sweep provides resumable, idempotent per-message indexing. The broader MCP surface covers reads and writes, graph operations, agent diaries, logstream events, and artifact handoffs. Embedding options include multilingual EmbeddingGemma, English MiniLM, opt-in EmbeddingGemma 2 with image, audio, and video search, and OpenAI-compatible embedding endpoints.

On LongMemEval, raw semantic retrieval reaches 96.6% R@5 across 500 questions without an LLM. Hybrid v4 adds keyword and temporal boosts plus preference-pattern extraction, reaching 98.4% R@5 on 450 held-out questions after tuning on 50 development questions. The ≥99% result uses LLM reranking on the full 500. That result has a different evaluation split and runtime requirement; none of these retrieval scores measures generated-answer accuracy.

Trade-offs & Limitations

Compared with building directly on a vector database, MemPalace supplies conversation ingestion, project scoping, and agent-facing interfaces out of the box, but also brings its own hierarchy and ingestion lifecycle. Against Mem0, Hindsight, or Zep, the useful comparison is whether agents recover the original passages they need, how well results are scoped, and what it takes to operate the integrations. The published benchmark figures do not establish a head-to-head ranking.

Embedded ChromaDB avoids a separate database service; opting into Milvus, Qdrant, or pgvector brings namespace support and more infrastructure to operate. Benchmark an exact-search backend at your expected corpus size rather than assuming native code guarantees lower latency. Local embeddings keep the core path independent of an API, but retaining verbatim data makes the palace and its backups sensitive. Model changes require re-embedding, and session retention still depends on configuring hooks or ingesting transcripts before they expire.

Hardware & Deployment Guide

For a workstation, install the Python CLI in an isolated environment with uv tool install mempalace or pipx install mempalace, then initialize and mine the source paths. The amd64 and arm64 Docker image persists the palace, configuration, and model cache under /data. Run the Compose MCP service interactively with docker compose run --rm mcp, not as a detached HTTP service: JSON-RPC travels over stdin and stdout without a TTY. The first embedding operation needs network access to fetch weights if they are not cached; subsequent local embedding does not require an API key.

For shared use, deploy/docker-compose.server.yml provides a team-server deployment; an OpenAI-compatible embedder can also run on the host or LAN. The GPU image must be built locally. Version 3.10 introduced a three-tool MCP option and optional native exact search; 3.11 added guided audit and repair and records which embedding model built each palace. Version 3.12 improves source text and byte preservation and recovery from interrupted re-mining. Check the existing palace's model and plan any necessary index rebuild before switching.

Storage: Wings and rooms scope retrieval; drawers hold verbatim content rather than generated summaries.
Backend portability: Embedded ChromaDB by default, exact search through NumPy or Rust, and opt-in Milvus, Qdrant, or pgvector.
Retrieval evaluation: LongMemEval reaches 96.6% raw R@5 across 500 questions and 98.4% hybrid R@5 on 450 held-out questions without an LLM.
Embedding lifecycle: Each palace records its embedding model; switching models requires re-embedding, but changing devices alone does not.
Session retention: Hooks support Claude Code, Codex CLI, and Cursor; an idempotent sweep can index one drawer per message.
Agent integration: JSON-RPC over stdio exposes memory and coordination tools; a separate SQLite graph tracks relationship validity windows.
Best For

Developers and teams that want coding agents to recall prior decisions and conversations from verbatim sources through MCP, with local embeddings and a choice of storage backends.

Skip If

You need a managed memory service, cannot retain raw transcripts, or primarily want generated summaries rather than retrievable source passages.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedMCPLocal AI
npx skills add MemPalace/mempalace

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
mempalace ★60.8k+120PythonMITLocal-first RAG memory for retrieving verbatim project and conversation history
Scrapling107.9k+1.8kPythonBSD-3-ClausePython HTTP and browser crawlers that turn websites into RAG-ready Markdown
mem070k+498PythonApache-2.0A vector-backed memory layer for AI agents that need to recall past conversation
hindsight64.7k+884PythonMITA bank-based memory service that turns agent interactions into durable knowledge

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/MemPalace/mempalace.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

MemPalace/mempalace Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about mempalace

How do I connect a coding agent to a containerized palace?

Configure it as a client-launched MCP subprocess. For Docker, use docker run -i, do not allocate a TTY, and persist /data in a named volume. If the container needs to mine host transcripts, bind-mount only the required directories read-only using absolute host paths, then use the container paths in mining commands. On Linux, UID 1000 must be able to read those mounts.

Do I need a GPU, and how should I size the host?

No GPU is required for the local embedding path. Apple Silicon normally uses CPU for MiniLM and EmbeddingGemma ONNX; experimental EmbeddingGemma 2 supports PyTorch MPS with health checks and CPU fallback. Allow disk space for the cached model, original content, and index. There is no fixed RAM or VRAM figure: test ingestion and query concurrency on a representative corpus with the model, device, and backend you intend to run.

Can we self-host it commercially and keep sensitive data in-house?

The MIT license permits commercial self-hosting and requires preservation of the copyright and license notices when redistributing covered copies. That does not settle rights to model weights or indexed material. Treat stored transcripts and project text as source data, define access and retention policies for the palace and its backups, and confirm where any configured embedding endpoint processes requests.

How should we compare it with other agent-memory systems?

Shortlist MemPalace if you want to retrieve original conversation or project passages through a local CLI and MCP, with explicit project and topic scopes. When comparing it with Mem0, Hindsight, Zep, or a custom vector-store pipeline, test the same transcripts and queries for retrieval granularity, agent integration effort, and the operational controls you need. The published benchmark results are not a head-to-head comparison.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining MemPalace/mempalace? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature MemPalace/mempalace on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare