Locusのロゴ

Locus

コミュニティ
Magnifico4625

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

公開者Magnifico4625
リポジトリlocus
言語TypeScript
フォーク
2
スター
14
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Locusは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 利用可能なツール(0個)

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースプロジェクトの注目度

    リンク先のリポジトリには14件のスターと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.

インストール

TypingMind
前提条件:

Node.js 18+

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

LocusのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Locusに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」→「詳細設定」→「Model Context Protocol」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「Model Context Protocol」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Locusをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. LocusのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタのステータスが「準備完了」のままか確認するには、画面を更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "magnifico4625-locus": {
      "command": "npx",
      "args": [
        "-y",
        "locus-memory"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてLocusのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. LocusのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Locusを使ってこのタスクを手伝ってもらえますか?
Locus
はい、読みました。
Locusで調べた結果をお伝えします。

よくある質問

Locus MCPサーバーは何に使いますか?

Locusは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでは、複数のAIモデルでLocus MCPを利用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでLocusを利用できます。

TypingMindでLocus MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けのトップクラスのフロントエンドです。Locusを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Locus MCPをTypingMindに接続するにはどうすればよいですか?

LocusはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでLocus MCPのどのようなツールを利用できますか?

LocusはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Locus MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Locusで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇