Hindsight Mempalace
About
Self-hosted long-term memory for AI agents. An MCP server that gives agents persistent, hierarchical recall (L0–L3) over pgvector — retain preferences, decisions and observations, then recall them by topic across sessions. MIT, clone-and-run, requires Postgres + pgvector.
Details
- Author
- holetron
- Downloads
- 451
- Categories
- AI, Other, Knowledge Base
Jump to
- Vector store with hierarchical taxonomy (rooms, halls, layers)
- Keyword-based auto-classification (<1ms, zero LLM cost)
- L0–L3 priority tiers (always loaded to archive)
- Cross-bank tunnels for multi-agent memory sharing
- Closet compression: summaries with source pointers
- 5 MCP tools: retain, recall, reflect, compress, bridge
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Hindsight MempalaceCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Clone the repository, copy .env.example to .env, edit configuration, then run docker compose -f docker-compose.mempalace.yml up -d. API available at http://localhost:5100. For the MCP server, install npm dependencies in mcp-server/ and run with environment variables.
memory_retain
Save a fact, observation, or document to long-term memory with automatic room/hall classification. Rooms: auth, pipeline, schema, infrastructure, ui, api, deployment, monitoring, agent, general. Halls: fact, event, decision, preference, discovery, procedure, warning. Layers: L0=Identity (always loaded), L1=Critical, L2=Session (default), L3=Deep.
memory_recall
Search long-term memory for relevant facts. Uses semantic search with optional room/hall scoping for significantly improved retrieval accuracy. Supports layer cascade (L0 results always prioritized).
memory_reflect
Deep reasoning over memory — synthesizes facts, finds patterns, answers complex questions with citations. Use for analysis: "What patterns emerge from recent events?" or "Summarize everything about X."
memory_compress
Create compressed memory summaries (closets) from stored facts. Groups memories by room+hall and creates AI-generated summaries with source pointers. Use when a topic has accumulated many facts.
memory_bridge
Create a cross-bank memory bridge (tunnel) between two related memories in different banks. Relations: same_concept, depends_on, contradicts, extends. Use when concepts in separate banks are related.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"hindsight mempalace": {
"hindsight-mempalace": {
"command": "npx",
"args": [
"-y",
"hindsight-mempalace-mcp"
],
"env": {
"HINDSIGHT_URL": "http://127.0.0.1:5100",
"MEMPALACE_BANK": "mempalace-main"
}
}
}
}
}
McpServers
{
"hindsight-mempalace": {
"command": "npx",
"args": [
"-y",
"hindsight-mempalace-mcp"
],
"env": {
"HINDSIGHT_URL": "http://127.0.0.1:5100",
"MEMPALACE_BANK": "mempalace-main"
}
}
}
Hindsight MemPalace
Hierarchical memory for AI agents. Storage + taxonomy in one system. A hybrid of two open-source projects: | Project | What it does | What it lacks | |---|---|---| | Hindsight by vectorize-io | Long-term vector memory for AI agents. Stores, embeds, recalls. | No structure — all memories in one flat pile | | MemPalace by milla-jovovich | Hierarchical taxonomy: rooms, halls, layers — the method of loci for AI | No storage engine — a spec without a database | This fork connects them. Hindsight's vector store + MemPalace's taxonomy = structured memory with semantic search. ---How it works
``
┌──────────────────────────────────────────────────────┐
│ MEMPALACE │
│ │
│ ┌─── Room: auth ──┐ ┌─── Room: pipeline ──┐ │
│ │ Hall: facts │ │ Hall: decisions │ │
│ │ Hall: procedures │ │ Hall: events │ │
│ │ Hall: warnings │ │ Hall: facts │ │
│ │ │ │ │ │
│ │ L0 ████ always │ │ L0 ████ always │ │
│ │ L1 ███░ warm │ │ L1 ███░ warm │ │
│ │ L2 ██░░ cold │ │ L2 ██░░ cold │ │
│ │ L3 █░░░ archive │ │ L3 █░░░ archive │ │
│ └──────────────────┘ └─────────────────────┘ │
│ │ │ │
│ └──── Tunnel ──────────┘ │
│ (cross-bank bridge) │
│ │
│ Closets: compressed summaries + source pointers │
└──────────────────────┬───────────────────────────────┘
│
Hindsight vector store
(embeddings + semantic search)
`
Rooms — topic isolation. Auth, pipeline, infrastructure, schema — each topic in its own room. An agent searching for auth facts won't wade through 500 deploy memories.
Halls — knowledge typing within a room. Fact, event, decision, procedure, warning. The system knows what it's looking at before reading — like Content-Type for memory.
Layers L0–L3 — four priority tiers. L0 (core) is always loaded. L3 (archive) is deep-search only. Same idea as CPU cache hierarchy: L1 is fast and small, RAM is slow but holds everything.
Closets — AI-compressed summaries with source pointers. Deduplication at the knowledge level: 10 related facts → 1 paragraph + references.
Tunnels — cross-bank bridges between agents. Agent A discovers an insight — Agent B sees it through a tunnel without data duplication.
Comparison
| | Hindsight | MemPalace | This fork |
|---|---|---|---|
| What it is | Long-term memory store | Hierarchical taxonomy spec | Storage + taxonomy hybrid |
| Storage | Vector store + embeddings | None (spec only) | Vector store + embeddings |
| Memory structure | Flat (all memories equal) | Rooms → Halls → Layers | Rooms → Halls → Layers + embeddings |
| Retrieval | Semantic search | No retrieval engine | Room-scoped semantic search |
| Classification | None | Defined in spec | Keyword-based, <1ms, zero LLM cost |
| Priority tiers | All memories equal | L0–L3 (spec) | L0–L3 (implemented) |
| Compression | None | Closets (spec) | Closets with source pointers |
| Multi-agent | Shared bank | Tunnels (spec) | Tunnels (cross-bank bridges) |
| MCP integration | API only | None | 5 tools via MCP protocol |
| Setup | Docker | Manual config | Docker (drop-in upgrade) |
Quick start
``bash
git clone https://github.com/holetron/hindsight-mempalace.git
cd hindsight-mempalace
cp .env.example .envSign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





