Locus logo

Locus

Hierarchical Markdown memory palace exposed through MCP tools for selective reading, search, writing, and batch loading.

Install Locus

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "locus-2": {
      "command": "uvx",
      "args": [
        "locus-mcp"
      ],
      "env": {
        "LOCUS_PALACE": "YOUR_VALUE_HERE",
        "FASTMCP_HOST": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env LOCUS_PALACE=YOUR_VALUE_HERE --env FASTMCP_HOST=YOUR_VALUE_HERE --transport stdio locus-2 -- uvx locus-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx locus-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The locus MCP server exposes a hierarchical Markdown memory palace through five MCP tools for listing, reading, writing, searching, and batch-loading files. It keeps an INDEX.md entry point and lets agents navigate into specific rooms instead of loading the entire knowledge base. Search uses a shared SQLite FTS5 index with ranked results and metadata such as status, type, verification, and staleness. Reach for it when an agent needs persistent, file-based memory with controlled context size and optional Ed25519 read verification.

Use cases

  • Store project conventions in focused Markdown rooms
  • Search prior agent knowledge before answering a prompt
  • Load several related memory files in one MCP call
  • Append or update permitted palace files
  • Audit and consolidate session-based memory

Key features

  • Hierarchical Markdown memory palace
  • Five MCP tools for file navigation and editing
  • SQLite FTS5 ranked full-text search
  • Batch reads for up to 20 files
  • Optional Ed25519 signature verification
  • Stdio and SSE transport options

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

25/27 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · locus-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit2mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Locus works

What the locus MCP server does

The locus MCP server turns a directory tree of Markdown files into a navigable memory palace. Each directory represents a room, while files hold focused knowledge such as project notes, tool conventions, or session records. Agents can start with INDEX.md, identify the relevant room, and load only the files needed for a task.

The palace is intended for persistent agent memory rather than a single monolithic context file. Session logs can accumulate separately and later be consolidated into canonical knowledge files. The same project also provides command-line workflows for recall, linting, and index generation, but the MCP interface focuses on operating on palace files.

How it works

The server provides five MCP tools: memory_list, memory_read, memory_write, memory_search, and memory_batch. Listing with no argument returns INDEX.md; supplying a room lists that room’s files. Reads access files in the palace, while writes perform atomic updates and reject protected paths such as _metrics/, sessions/, .sig/, and .security/.

memory_search uses the same SQLite FTS5 index as the locus recall command. Results are ranked with BM25, giving title and description more weight than body text. Frontmatter can contribute titles, descriptions, tags, types, modification dates, status, staleness, and verification information. memory_batch reads up to 20 files in one call, which supports multi-room context loading without issuing a separate request for every file.

The locus MCP server uses stdio for local client integrations. SSE transport is available for network deployments, but it requires --transport sse and an explicit FASTMCP_HOST=0.0.0.0; the default binding is loopback.

Setup and configuration

Install the Python package with pip install locus-mcp, or run it without a local installation through uvx locus-mcp --palace ~/.locus. Create an initial palace with locus init ~/.locus, edit its INDEX.md, and start the server with:

sh
locus-mcp --palace ~/.locus

LOCUS_PALACE can replace the --palace option for clients or shell-based launches. Claude Desktop, Cursor, and Zed configurations invoke locus-mcp with the palace path as an argument; uvx can be used as the command instead. The package requires Python 3.11 or newer.

Use --security to enable Ed25519 signature verification for reads and automatic signing for writes. The repository also includes Claude Code skills for recall, navigation, palace writing, consolidation, auditing, feedback, release verification, security workflows, and palace initialization. These skills are specific to Claude Code, while the palace format and MCP server are runtime-neutral.

Tools and capabilities

The locus MCP server supports:

  • Listing the palace index or files within a room.
  • Reading Markdown and other palace files.
  • Atomically writing permitted files.
  • Searching indexed content with ranked full-text results.
  • Reading up to 20 files in a single batch operation.
  • Optionally verifying signatures on reads and signing writes.

Limitations and notes

Writes are guarded for several internal directories, so those paths cannot be modified through memory_write. SSE is not the default transport and requires an explicit host setting for network use. Claude-specific skill files are shipped only for Claude Code; other runtimes must adapt their own skill instructions if needed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Locus

locus is an MCP server that connects AI agents to a hierarchical Markdown memory palace on the local filesystem. Its main tools list rooms and files, read and atomically write palace content, search indexed memory with ranked full-text results, and batch-read up to 20 files while keeping context selective.

Install it with `pip install locus-mcp`, or run it without installation using `uvx locus-mcp --palace ~/.locus`. Initialize a palace with `locus init ~/.locus`, then launch `locus-mcp --palace ~/.locus`.

Yes, locus works with Cursor through its standard local MCP configuration. Set the server command to `locus-mcp` and pass the palace path with `--palace`, or use `LOCUS_PALACE` instead.

Configure Claude Desktop with `locus-mcp` as the command and the palace directory as the `--palace` argument. You can also use `uvx` with `locus-mcp` as its argument, avoiding a separate package installation.

The `locus recall` command can search multiple roots by repeating `--root`, and its shared FTS5 index supports a palace, an OKF bundle, a Claude Code memory directory, or combinations of these. The MCP server’s `memory_search` uses the same index.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLocus AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/locus-2?style=directory)](https://allmcps.com/mcp/locus-2)
HTML Embed
<a href="https://allmcps.com/mcp/locus-2"><img src="https://allmcps.com/api/badge/locus-2?style=directory" alt="Locus on AllMCPs" /></a>