Locus
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Locus
Local persistent memory for AI coding tools. Built on MCP. Optimized for Codex CLI.

Quick links: Install · Why Locus · Competitive Snapshot · Full comparison
What Locus Does
AI coding agents forget project context between sessions. Locus gives them a local memory database they can query through MCP:
project structure: files, exports, imports
saved decisions: architecture choices, preferences, constraints
Codex conversation recall: recent work, errors, rejected alternatives, next steps
diagnostics: what is stored, what was imported, what capture mode is active
Locus is local-first. It stores data on your machine, uses SQLite, and does not require a cloud account, hosted database, embeddings provider, or LLM call to write memory.
Related MCP server: mcp-chest-memory
Install For Codex
npx -y locus-memory@latest install codex --yesRestart Codex, then verify:
npx -y locus-memory@latest doctor codexRemove the Codex MCP entry while keeping local memory data:
npx -y locus-memory@latest uninstall codex --yesThe installer adds the Locus MCP server, installs the Codex skill, sets practical redacted capture defaults, and pins the recurring MCP runtime to the installed package version.
Zero-Call Desktop Plugins (Codex, Antigravity, DeepSeek Harness)
For automatic SessionStart / prompt-turn memory briefs and background capture without explicit MCP calls on every turn:
# Codex CLI / Desktop zero-call hooks + local runtime under ~/.locus/bin/
npx -y locus-memory@latest install codex --with-hooks --yes
# Antigravity Desktop native plugin bundle (~/.gemini/config/plugins/locus-memory/)
npx -y locus-memory@latest install antigravity --yes
npx -y locus-memory@latest doctor antigravity
npx -y locus-memory@latest uninstall antigravity --yes
# DeepSeek Harness Desktop (`dsh`) in-process Cordis plugin (`locus-memory-dsh`)
npx -y locus-memory@latest install dsh --yes
npx -y locus-memory@latest doctor dsh
npx -y locus-memory@latest uninstall dsh --yesFor DeepSeek Harness Desktop UI, you can also install the standalone bundle directory (locus-memory-dsh) via Add plugin -> Install third-party plugin.
Strict Workspace Gate: Hooks ignore home/temp/agent-config directories and folders without project markers (add an empty
.locus.jsonto opt in a custom folder, or configure~/.locus/config.json).Daily Memory Journal: Turn capture automatically maintains
daily_summariesin SQLite plus Markdown notes underjournal/YYYY-MM-DD.mdandjournal/INDEX.md.Bounded Compaction:
memory_compactprunes old rawtool_userows after syncing daily summaries and runsPRAGMA wal_checkpoint(TRUNCATE)while keeping durable decisions and conversation history intact.
New In v4.0
New in v4.0 — Multi-Platform Zero-Call Desktop Plugins: Locus now ships automatic SessionStart Project Briefs, targeted prompt-turn recall injection, and background capture across Codex CLI/Desktop (install codex --with-hooks), Antigravity Desktop (install antigravity), and DeepSeek Harness Desktop (dsh) (install dsh, Cordis plugin locus-memory-dsh). Every surface shares the same SQLite core, Strict Workspace Gate (.locus.json / ~/.locus/config.json), self-injection echo filter, Markdown Daily Memory Journal (journal/YYYY-MM-DD.md + INDEX.md), and bounded memory_compact with PRAGMA wal_checkpoint(TRUNCATE).
Track C & Track D Codex memory reliability (memory_recall project isolation, date buckets, memory_calendar, memory_project_state, rejected alternatives, validation facts, candidateGroups) are all carried forward in v4.0.0.
Codex CLI and Codex Desktop zero-call hooks are live-verified. Codex Desktop uses the same MCP model where exposed by the upstream surface, and the Track D marker acceptance validates the desktop MCP path when LOCUS_CODEX_SURFACE=desktop is set. Extension parity still depends on target-surface testing.
Why Choose Locus
Need | Locus approach |
One-command Codex setup |
|
Local-only storage | SQLite under |
Low token cost | Writes happen locally; tokens are spent only when the agent recalls memory |
Privacy control |
|
Project-aware memory | Structural scan plus durable decisions and conversation events |
Inspectability |
|
Cross-client base | Any MCP client can use the server; Codex and Claude Code have the strongest adapters today |
Competitive Snapshot
Locus is not trying to be a full agent runtime or cloud memory platform. It is a small local memory layer for coding agents, with Codex as the first-class product path.
Project | Main strength | Trade-off vs Locus |
Very broad coding-agent memory stack with many tools, hooks, viewer, and benchmark claims | Larger system surface; Locus is smaller, simpler, Codex-first, and ships as one npm MCP runtime | |
Path-scoped local memory and very small context nudge | Locus focuses more on MCP tools, Codex JSONL import, diagnostics, and explicit recall UX | |
Popular general-purpose memory layer for AI agents with SDKs, hosted/self-hosted options, and benchmarks | Usually an application integration layer; Locus is ready-to-use for coding tools through MCP | |
Full stateful agent platform with advanced memory | More framework/runtime commitment; Locus plugs into existing tools instead of replacing them | |
Temporal knowledge graphs and production context infrastructure | Strong for app/enterprise memory; Locus is lighter and local by default for individual coding workflows |
Full comparison: docs/comparison.md
Capture Modes
Mode | Use it when | What to expect |
| You want safest diagnostics-first behavior | Minimal content recall |
| You want practical Codex memory | Bounded snippets and keyword extraction with best-effort secret redaction |
| You explicitly want maximum recall | More content stored locally after redaction; not risk-free |
Recommended Codex settings:
LOCUS_CODEX_CAPTURE=redacted
LOCUS_CAPTURE_LEVEL=redactedFor product claims: full is maximum recall and must be treated as explicit opt-in, not a safe default.
MCP Tools
Locus exposes 17 MCP tools:
Tool | Purpose |
| Summary-first recall for questions about past work |
| Discover day/week/month activity buckets for a project and time range |
| Summarize project identity, package/git state, memory freshness, and active next steps |
| Full-text search across structure, decisions, and conversation events |
| Save important decisions or preferences |
| Inspect durable memories, states, evidence, and topic keys |
| Manually import Codex rollout JSONL sessions |
| Chronological event feed |
| Index project structure |
| Browse indexed project structure |
| Runtime state and Codex diagnostics |
| Actionable health checks |
| Storage and privacy audit |
| Show effective configuration |
| Prune old episodic entries |
| Delete selected or all memory with safety confirmation |
For broad period questions, use memory_calendar first. It defaults to last_30d, so agents should pass this_month, last_month, or an explicit range for user period questions. Date-scoped memory_recall reports searched date buckets, and current-project recall must not mix other project memories unless the user asks for global recall.
Other Clients
Locus is an MCP server, so it can run in Claude Code, Cursor, Windsurf, Cline, Zed, Claude Desktop, and similar clients.
Current maturity:
Surface | Status |
Codex CLI / Desktop | Primary validated path (MCP + optional zero-call hooks live-verified) |
Antigravity Desktop | Native plugin bundle with zero-call hooks live-verified |
DeepSeek Harness Desktop ( | In-process Cordis plugin ( |
Claude Code | Supported through hooks and shared runtime |
Codex extension | Same MCP model; extension parity still requires target-surface testing |
Cursor / Windsurf / Cline / Zed | MCP tools work; passive conversation adapters are future work |
Manual MCP fallback:
codex mcp add locus -- node /path/to/locus/dist/server.jsDocs
Codex acceptance matrix: docs/codex-acceptance-matrix.md
Codex VS Code extension notes: docs/codex-vscode-extension.md
Multi-platform desktop plugins roadmap: docs/roadmap/v4-multi-platform-plugins.md
Future roadmap: docs/roadmap/codex-next.md
Release notes: docs/releases/v4.0.0.md
Full comparison: docs/comparison.md
Development
git clone https://github.com/Magnifico4625/locus.git
cd locus
npm install
npm run check
npm run buildLicense
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared AI memory. ChatGPT, Claude, Cursor and any MCP app read and write the same memory.
Persistent memory for AI assistants. Save once; recall from Claude, ChatGPT, or any MCP client.
Shared memory for your AI tools: tasks, notes and context every tool can read and write over MCP.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Related MCP Servers
- AlicenseCqualityBmaintenanceProvides persistent, local-first AI memory across sessions via MCP tools for storing, searching, and retrieving context from past interactions.31111 PyPI1MIT
- AlicenseNot gradedqualityBmaintenanceProvides a persistent, local-first memory for coding agents over MCP, enabling automatic recall and recording of past work, failures, and decisions to reduce repetition and token usage.MIT
- AlicenseNot gradedqualityDmaintenanceProvides long-term local memory for AI coding agents via MCP, enabling persistent recall of preferences and project facts across chat sessions.1MIT
- AlicenseNot gradedqualityBmaintenanceProvides a local-first persistent memory layer for coding assistants, enabling cross-project user preferences, per-project durable and working memory, session archives, and reflective recommendations through MCP tools.43 npmMIT