Logo von Locus

Locus

Community
Magnifico4625

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

HerausgeberMagnifico4625
Repositorylocus
SpracheTypeScript
Forks
2
Sterne
14
Verfügbare Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    Locus stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • Verfügbare Tools: 0

    Unten finden Sie die aufrufbaren Aktionen. Namen und Beschreibungen werden angezeigt, sofern der Server sie bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    Kennzahlen des verlinkten Repositorys: Sterne (14) und Forks (2).

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

Node.js 18+

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

Locus MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Locus verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor einrichten“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Einstellungen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor einrichten“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie „Terminal“ (macOS) bzw. „Windows Terminal“ (Windows).
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Locus als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server bearbeiten“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server bearbeiten“.
  3. Fügen Sie die MCP-Server-Konfiguration für Locus ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server bearbeiten“
{
  "mcpServers": {
    "magnifico4625-locus": {
      "command": "npx",
      "args": [
        "-y",
        "locus-memory"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Locus. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Locus.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Locus bei dieser Aufgabe helfen?
Locus
Gerne. Ich habe es gelesen.
Das habe ich mit Locus gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Locus verwendet?

Locus ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich den MCP-Server Locus mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Locus mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum den MCP-Server Locus mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Locus verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich den MCP-Server Locus mit TypingMind?

Locus wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt der MCP-Server Locus in TypingMind bereit?

Locus stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um den MCP-Server Locus zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal. Sie wählen Ihre Modellanbieter selbst und behalten die Kontrolle über Ihre API-Schlüssel, Prompts und MCP-Konfiguration. Falls Locus eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇