Locus logo

Locus

Community
Magnifico4625

Persistent project-aware memory for AI coding tools. Built on MCP. Works with Codex, Claude Code, and other MCP-compatible clients.

PublisherMagnifico4625
Repositorylocus
LanguageTypeScript
Forks
2
Stars
14
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Locus exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    14 stars and 2 forks from the linked repository.

Locus

Local persistent memory for AI coding tools. Built on MCP. Optimized for Codex CLI.

Locus hero image

npm version Node.js License: MIT MCP Compare

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.

Install For Codex

bash
npx -y locus-memory@latest install codex --yes

Restart Codex, then verify:

bash
npx -y locus-memory@latest doctor codex

Remove the Codex MCP entry while keeping local memory data:

bash
npx -y locus-memory@latest uninstall codex --yes

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

New In v3.7

New in v3.7 / Track D: Codex memory reliability. memory_recall, memory_search, and memory_timeline are scoped to the current project, date-aware recall reports searched buckets, memory_calendar gives day/week/month activity discovery, and memory_project_state summarizes current package/git/memory state before the agent relies on old context.

Track C richer recall is still carried forward: memory_recall can summarize imported redacted Codex sessions, durable decisions, explicit memory_remember entries, rejected alternatives, validation facts, user style, and dated questions such as "what did we do yesterday?". If several matches are plausible, Locus returns candidateGroups so the agent can ask a focused clarification instead of guessing.

Codex CLI is the primary validated path. 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

NeedLocus approach
One-command Codex setupnpx -y locus-memory@latest install codex --yes
Local-only storageSQLite under $CODEX_HOME/memory/, ~/.claude/memory/, or ~/.locus/memory/
Low token costWrites happen locally; tokens are spent only when the agent recalls memory
Privacy controlmetadata, redacted, and full capture modes; full is explicit warning territory
Project-aware memoryStructural scan plus durable decisions and conversation events
Inspectabilitymemory_status, memory_project_state, memory_doctor, memory_audit, memory_review
Cross-client baseAny 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.

ProjectMain strengthTrade-off vs Locus
agentmemoryVery broad coding-agent memory stack with many tools, hooks, viewer, and benchmark claimsLarger system surface; Locus is smaller, simpler, Codex-first, and ships as one npm MCP runtime
AIDE MemoryPath-scoped local memory and very small context nudgeLocus focuses more on MCP tools, Codex JSONL import, diagnostics, and explicit recall UX
Mem0Popular general-purpose memory layer for AI agents with SDKs, hosted/self-hosted options, and benchmarksUsually an application integration layer; Locus is ready-to-use for coding tools through MCP
LettaFull stateful agent platform with advanced memoryMore framework/runtime commitment; Locus plugs into existing tools instead of replacing them
Zep / GraphitiTemporal knowledge graphs and production context infrastructureStrong for app/enterprise memory; Locus is lighter and local by default for individual coding workflows

Full comparison: docs/comparison.md

Capture Modes

ModeUse it whenWhat to expect
metadataYou want safest diagnostics-first behaviorMinimal content recall
redactedYou want practical Codex memoryBounded snippets and keyword extraction with best-effort secret redaction
fullYou explicitly want maximum recallMore content stored locally after redaction; not risk-free

Recommended Codex settings:

bash
LOCUS_CODEX_CAPTURE=redacted
LOCUS_CAPTURE_LEVEL=redacted

For 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:

ToolPurpose
memory_recallSummary-first recall for questions about past work
memory_calendarDiscover day/week/month activity buckets for a project and time range
memory_project_stateSummarize project identity, package/git state, memory freshness, and active next steps
memory_searchFull-text search across structure, decisions, and conversation events
memory_rememberSave important decisions or preferences
memory_reviewInspect durable memories, states, evidence, and topic keys
memory_import_codexManually import Codex rollout JSONL sessions
memory_timelineChronological event feed
memory_scanIndex project structure
memory_exploreBrowse indexed project structure
memory_statusRuntime state and Codex diagnostics
memory_doctorActionable health checks
memory_auditStorage and privacy audit
memory_configShow effective configuration
memory_compactPrune old episodic entries
memory_forget / memory_purgeDelete 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:

SurfaceStatus
Codex CLIPrimary validated path
Claude CodeSupported through hooks and shared runtime
Codex desktop / extensionDesktop MCP marker path validated with LOCUS_CODEX_SURFACE=desktop; extension still requires target-surface validation
Cursor / Windsurf / Cline / ZedMCP tools work; passive conversation adapters are future work

Manual MCP fallback:

bash
codex mcp add locus -- node /path/to/locus/dist/server.js

Docs

Development

bash
git clone https://github.com/Magnifico4625/locus.git
cd locus
npm install

npm run check
npm run build

License

MIT — see LICENSE.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "magnifico4625-locus": {
      "command": "npx",
      "args": [
        "-y",
        "locus-memory"
      ]
    }
  }
}

Use Locus MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Locus is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Locus as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Locus MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "magnifico4625-locus": {
      "command": "npx",
      "args": [
        "-y",
        "locus-memory"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Locus MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Locus MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Locus to help me with this task?
Locus
Sure. I read it.
Here is what I found using Locus.

Frequently asked questions

What is the Locus MCP server used for?

Locus is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Locus MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Locus with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Locus MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Locus connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Locus MCP to TypingMind?

Locus runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Locus MCP provide in TypingMind?

Locus exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Locus MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Locus requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇