mempalace

v1.4.0

MemPalace — Local AI memory with 96.6% recall. Semantic search over past conversations, knowledge graph with temporal facts, palace architecture (wings/rooms...

3· 820·3 current·4 all-time
byboluobobo@wanikua

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for wanikua/mempalace.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "mempalace" (wanikua/mempalace) from ClawHub.
Skill page: https://clawhub.ai/wanikua/mempalace
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install mempalace

ClawHub CLI

Package manager switcher

npx clawhub@latest install mempalace
Security Scan
Capability signals
CryptoCan make purchases
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description, required binaries (mempalace or python3), and the install spec (Python package 'mempalace') all align with a local-memory integration. There are no unrelated credentials or services requested.
Instruction Scope
SKILL.md instructs the agent to query and write verbatim conversation history and a knowledge graph, run a local MCP server (python -m mempalace.mcp_server), and initialize/mine a user-specified directory (~/my-convos). This is coherent with the stated purpose, but mining/indexing could capture any files the user points it at — the instructions rely on the user choosing the correct directory and do not explicitly warn about indexing sensitive system paths.
Install Mechanism
Install spec is a Python package ('mempalace') which matches the README examples (pip install mempalace). This is a standard install pattern, not a direct download from an untrusted URL. Verify the package source (PyPI/GitHub) and maintainers before installing.
Credentials
No environment variables, credentials, or unrelated config paths are requested. The skill requires only local filesystem access to the user's chosen palace directory and the ability to run a local MCP server — these are proportional to a local memory tool.
Persistence & Privilege
The skill writes persistent local data (drawers, diary entries, a knowledge graph) to disk and runs a persistent local service (MCP server) when configured. It does not request always:true or elevated platform-wide privileges, but persistent storage and a local server have privacy implications the user should consider.
Assessment
This skill appears internally consistent, but before installing you should: 1) confirm the 'mempalace' Python package and its authors (GitHub/PyPI) are trustworthy; 2) install in a controlled environment (virtualenv/container) and inspect the package source if possible; 3) choose and limit the directory you 'mine' so you don't accidentally index sensitive system or personal files; 4) avoid exposing the MCP server to untrusted networks (run it locally and restrict ports); 5) be aware the agent will store verbatim conversation text and diary entries on disk — treat that data as sensitive. If you want higher assurance, request the package's repository/tag/commit hash and a brief changelog before installing.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

🏛️ Clawdis
Any binmempalace, python3

Install

Install MemPalace (Python, local ChromaDB)
Bins: mempalace
uv tool install mempalace
latestvk97484wtmt4aa4etgtx83q8gf984enhp
820downloads
3stars
5versions
Updated 2w ago
v1.4.0
MIT-0

MemPalace — Local AI Memory System

You have access to a local memory palace via MCP tools. The palace stores verbatim conversation history and a temporal knowledge graph — all on the user's machine, zero cloud, zero API calls.

Architecture

  • Wings = people or projects (e.g. wing_alice, wing_myproject)
  • Halls = categories (facts, events, preferences, advice)
  • Rooms = specific topics (e.g. chromadb-setup, riley-school)
  • Drawers = individual memory chunks (verbatim text)
  • Knowledge Graph = entity-relationship facts with time validity

Protocol — FOLLOW THIS EVERY SESSION

  1. ON WAKE-UP: Call mempalace_status to load palace overview.
  2. BEFORE RESPONDING about any person, project, or past event: call mempalace_search or mempalace_kg_query FIRST. Never guess from memory — verify from the palace.
  3. IF UNSURE about a fact (name, age, relationship, preference): say "let me check" and query. Wrong is worse than slow.
  4. AFTER EACH SESSION: Call mempalace_diary_write to record what happened, what you learned, what matters.
  5. WHEN FACTS CHANGE: Call mempalace_kg_invalidate on the old fact, then mempalace_kg_add for the new one.

Available Tools

Search & Browse

  • mempalace_search — Semantic search across all memories. Always start here.
    • query (required): natural language search
    • wing: filter by wing
    • room: filter by room
    • limit: max results (default 5)
  • mempalace_status — Palace overview: total drawers, wings, rooms
  • mempalace_list_wings — All wings with drawer counts
  • mempalace_list_rooms — Rooms within a wing
  • mempalace_get_taxonomy — Full wing/room/count tree

Knowledge Graph (Temporal Facts)

  • mempalace_kg_query — Query entity relationships. Supports time filtering.
    • entity (required): e.g. "Max", "MyProject"
    • as_of: date filter (YYYY-MM-DD) — what was true at that time
    • direction: "outgoing", "incoming", or "both"
  • mempalace_kg_add — Add a fact: subject -> predicate -> object
    • subject, predicate, object (required)
    • valid_from: when this became true
  • mempalace_kg_invalidate — Mark a fact as no longer true
    • subject, predicate, object (required)
    • ended: when it stopped being true (default: today)
  • mempalace_kg_timeline — Chronological story of an entity
  • mempalace_kg_stats — Graph overview: entities, triples, relationship types

Palace Graph (Cross-Domain Connections)

  • mempalace_traverse — Walk from a room, find connected ideas across wings
    • start_room (required): room to start from
    • max_hops: connection depth (default 2)
  • mempalace_find_tunnels — Rooms that bridge two wings
  • mempalace_graph_stats — Graph connectivity overview

Write

  • mempalace_add_drawer — Store verbatim content into a wing/room
    • wing, room, content (required)
    • Checks for duplicates automatically
  • mempalace_delete_drawer — Remove a drawer by ID
  • mempalace_diary_write — Write a session diary entry
    • agent_name (required): your name
    • entry (required): what happened, what you learned
    • topic: category tag
  • mempalace_diary_read — Read recent diary entries

Setup

The user needs to initialize and populate the palace first:

pip install mempalace
mempalace init ~/my-convos
mempalace mine ~/my-convos

Then connect via MCP (for Claude Code, Cursor, etc.):

claude mcp add mempalace -- python -m mempalace.mcp_server

For OpenClaw, add to your MCP config:

{
  "mcpServers": {
    "mempalace": {
      "command": "python3",
      "args": ["-m", "mempalace.mcp_server"]
    }
  }
}

Tips

  • Search is semantic (meaning-based), not keyword. "What did we discuss about database performance?" works better than "database".
  • The knowledge graph stores typed relationships with time windows. Use it for facts about people and projects — it knows WHEN things were true.
  • Diary entries accumulate across sessions. Write one at the end of each conversation to build continuity.
  • Wings auto-detect from directory names during mining. You can also create custom wings via mempalace_add_drawer.

License & Attribution

This skill is an integration for MemPalace, created by Ben Sigman (@bensig), Igor Lins e Silva (@igorls), Milla Jovovich (@milla-jovovich), and adv3nt3 (@adv3nt3), licensed under the MIT License.

MIT License

Copyright (c) 2026 MemPalace Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Comments

Loading comments...