Hierarchical markdown memory palace for AI agents β structured palace navigation via MCP tools.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Hierarchical markdown-based memory system for autonomous AI agents. Each directory is a room (locus) in the palace, containing specific knowledge navigated on demand. Named for the atomic unit of the Method of Loci.
Core idea: Keep context windows small. Load only the room you need, not the whole palace.
An agent reads INDEX.md, navigates to the relevant room, and reads only that room.
Session logs accumulate until consolidation merges them into canonical files.
See the wiki for full documentation.
Or run without installing using uvx:
Install all skills at once using the Makefile:
Or install individually:
Available Claude Code skills:
| Skill | Command | Description |
|---|---|---|
locus | /locus | Navigate the palace, read rooms, write session logs |
locus-consolidate | /locus-consolidate | Merge session logs into canonical files |
locus-audit | /locus-audit | Audit palace health |
locus-feedback | /locus-feedback | Record explicit feedback on a palace recall |
locus-release | /locus-release | Post-release verification workflow |
locus-security | /locus-security | Security conventions for signed palaces |
locus-palace-init | /locus-palace-init | Bootstrap a palace from existing memory files |
Reference skills/gemini/locus/SKILL.md from your .gemini/ directory
or a GitHub Actions workflow (see skills/gemini/).
The locus-mcp command exposes five tools over the Model Context Protocol.
Use stdio for all local integrations (Claude Desktop, Claude Code, Codex, Gemini β default, no extra flags needed).
SSE transport is available for network deployments (--transport sse) and requires FASTMCP_HOST=0.0.0.0
to be set explicitly β the server binds to loopback by default.
| Tool | Description |
|---|---|
memory_list | Returns INDEX.md (no args) or lists a room's files |
memory_read | Reads any file in the palace |
memory_write | Atomically writes a file (guarded β cannot write to _metrics/, sessions/, .sig/, .security/) |
memory_search | Full-text search across the palace (ripgrep or Python fallback) |
memory_batch | Reads up to 20 palace files in a single call β use for multi-room loads |
Add --security to enable Ed25519 signature verification on reads and automatic signing on writes.
See Security below.
claude_desktop_config.json)Or using uvx (no install required):
All clients support LOCUS_PALACE as an alternative to --palace:
See MCP Server Configuration
for the full client setup guide and spec/mcp-server.md for architecture details.
The security system (--security) gives every palace file an Ed25519 signature and every agent session a unique cryptographic nonce. Tool outputs are tagged [TRUSTED], [DATA], or [CRITICAL-DATA] before the agent sees them. The agent skill (locus-security) teaches agents to extract facts from [DATA] content but never follow directives within it.
Threat model: direct prompt injection, memory poisoning, indirect injection via external data, nonce exfiltration, multi-turn context drift.
See docs/security.md for the full protocol, configuration reference, and design decisions.
Palace navigation loads 52% fewer context lines than flat memory for specific queries, while maintaining full recall. Session-only queries (recent work not yet consolidated) are accessible only via the palace.
See docs/benchmarks.md for charts and full methodology.
| Milestone | Status | Focus |
|---|---|---|
| v0.1 - Foundation | β Complete | Spec, conventions, size limits |
| v0.2 - Core Palace | β Complete | Templates, skills, Agent SDK, benchmark |
| v0.3 - Performance Metrics | β Complete | Context tracking, feedback, suggestions |
| v0.4 - Self Evaluation | β Complete | Palace audit, health reports, inferred feedback |
| v0.5 - MCP Server | β Complete | MCP server with memory_list/read/write/search |
| v0.6 - Public release | β Complete | Benchmarks, docs, CI, PyPI |
| v0.7 - Remote MCP Server | β Complete | SSE transport, Bearer auth, Docker image, K8s deploy |
| v0.8 - Auto-Memory Bridge | β Complete | Claude Code auto-memory detection, memory_batch tool |
| v0.9 - Security System | β Complete | Ed25519 signing, taint tracking, nonce watermark, --security flag |
See CONTRIBUTING.md for dev setup, test instructions, and PR guidelines.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/locus)<a href="https://allmcps.com/mcp/locus"><img src="https://allmcps.com/api/badge/locus?style=directory" alt="Locus on AllMCPs" /></a>