# locus [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/Nano-Nimbus/locus  
**GitHub Stars:** 0  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/locus-2

## Description
Hierarchical markdown memory palace for AI agents — structured palace navigation via MCP tools.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "locus": {
    "command": "uvx",
    "args": ["locus-mcp"],
    "env": {
      "LOCUS_PALACE": "",
      "FASTMCP_HOST": ""
    }
  }
}
```

**Requires environment variables:** `LOCUS_PALACE`, `FASTMCP_HOST` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/locus-2/readme_

