プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

loci

作者:IvenKooLabバージョン 0.4.0i★ –iパソコンで動く
レジストリ名io.github.IvenKooLab/loci

インストール

概要

作者による説明(英語の原文)

Cross-session memory and hybrid RAG over your notes and docs. Local-first, with cited answers.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 検索・AIの記憶

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • PyPIPythonのuvのインストール(uvxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "loci": {
      "command": "uvx",
      "args": [
        "loci-rag"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add loci -- uvx loci-rag

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "loci": {
      "command": "uvx",
      "args": [
        "loci-rag"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "loci": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "loci-rag"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント IvenKooLab で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

検索・AIの記憶のほかのサーバーとの比較i

  • このカテゴリのほかの7249件のうち0%よりスターが多い
  • このカテゴリのほかの7249件のうち42%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの7249件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

lociは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.4.0)がレジストリに届いたのは2 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:Context7, Codebase Memory, Exa

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Context7

作者:upstash

Up-to-date docs for AI agents

パソコンでもクラウドでも★ 64,224MIT今日更新
インストール

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

パソコンで動く★ 48,148MIT20 日前更新
インストール

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

クラウドで動く★ 5,213MIT先月更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

English · 简体中文 · 繁體中文 · 日本語 · 한국어

Turn scattered notes, project docs and agent memories into a knowledge base you can search and ask questions about — as an MCP server, from your terminal, or in the browser.

loci combines vector search with BM25 and returns answers with file > section citations. Your files and index stay on your machine. Embedding and chat requests go to the providers you configure; local endpoints can keep the entire workflow offline.

MCP is the point. Mount loci-mcp in Claude Desktop, Cursor, Cline or any other MCP host and your assistant gets the whole knowledge base as tools. The console and a desktop shell are alternate front-ends to the same index — you never need them.

Quick start · MCP setup · Web console · Usage guide · 中文说明

*Actual console UI with fictional demo data. No personal knowledge base, account or API key is connected; counts are illustrative.*

Dark theme preview

What you can do

NeedHow loci helps
Find a decision buried in your notesHybrid search across directories, with tag, path and date filters
Ask a question and check the evidenceAnswers cite source sections; optional claim-by-claim verification
Carry context between AI toolsMCP tools share one instance; durable memories are Markdown files
See what each coding agent remembersHarness discovery, file browsing, per-tool stats and digest notes
Manage the knowledge base visuallyBuilt-in Web console for search, Q&A, memories, indexing and audit
Resume a task exactly where it left offStructured state by exact key (brain_state_save / brain_state_get) — no ranking in the way
Prune memory with evidence instead of vibesMemory health: citations, corrections and age per note (loci memory-health)

Markdown, text, HTML, org-mode and chat exports work out of the box. Optional extras add PDF, Word and OCR support. Keep using your existing note editor or Obsidian vault.

What belongs where

Three kinds of "memory" fail differently, and mixing them is the classic misuse:

KindLives inRetrieved byRight forWrong for
Free-text knowledgememory notes (brain_remember)hybrid retrieval"what do we know about X"exact resume of a task
Structured statestate/ / .json (brain_state_save)exact key, no rankingtask snapshots, entity records, slot state worth persistingprose you might want to fuzzy-find
Live dialogue slotsthe host agent's sessionthe host's own contextthis turn's variablesanything you expect to survive the session

Rules of thumb:

  • If retrieval returning a *similar but wrong* record would be a bug, it is state — key it and fetch exactly (brain_state_get type=task key=8f3c).
  • Real-time slot values change every turn; do not put them in the vector store. Persist the ones worth keeping across sessions as state records.
  • Prose that a future question might phrase differently is knowledge — brain_remember it, and let ranking do the work.

State records are plain JSON, hand-editable, and deliberately not indexed into vectors: that is the boundary, not an omission.

Memory health

Every search or answer that uses a memory note is ledgered (citations.jsonl in the instance directory). loci memory-health joins that with feedback (loci feedback bad — which also sinks the rated chunks in later retrieval) and age, and flags notes worth looking at:

$ loci memory-health

12 memory note(s), most-cited first cited corr age(d) last-cited flags file 17 0 41.2 0.3 - 20260920-103000-deploy-policy.md 0 2 63.8 - corrected 20260830-090000-old-strategy.md 0 0 51.4 - never-cited 20260901-120000-random-idea.md

corrected = rated bad after being used; never-cited = old and unused. Both are candidates for brain_forget — with evidence, not vibes. loci sees tool calls, not your conversation, so corrections reach it only through explicit feedback; the report never silently rewrites retrieval.

Quick start

Try it first, with nothing configured
pip install loci-rag

loci demo

loci demo copies six fictional notes into ./loci-demo-notes, chunks them and answers three example questions — cited down to file > section — with no config.toml, no API key and no network. It is keyword-only (BM25, the same ranking hybrid search fuses with vector hits), which is exactly the point: something runs before you commit a key. Add [embed] later and the same index goes hybrid.

*Actual loci demo output on the bundled sample notes; paths shortened, timings vary.*

Index your own notes

Requires Python 3.11+. Start from source so the example configuration is available:

git clone https://github.com/IvenKooLab/loci.git

cd loci python -m pip install -e . cp config.example.toml config.toml

Edit config.toml: fill in [llm] and [embed], and change [[sources]].path to your notes directory. The embedding endpoint must support /embeddings; chat and embeddings may use different providers.

loci ingest

loci search "deployment decisions" loci ask "What did we decide about deployment, and why?"

Already have a configuration? Install the package with python -m pip install loci-rag and set LOCI_HOME to your instance directory. For optional document support, use python -m pip install 'loci-rag[pdf,docx]'.

API keys can be supplied through BRAIN_LLM_API_KEY and BRAIN_EMBED_API_KEY. After changing the embedding model, rebuild with loci ingest --force.

Using Obsidian? See the vault setup, privacy and compatibility guide.

Web console

loci serve-http

Open [127.0.0.1:8765/ui](http://127.0.0.1:8765/ui) to browse harness memories, search, ask questions, edit shared notes and inspect indexing activity. Clicking a search result opens an evidence pane with the passage it was cut from — the file > section citation, checkable without leaving the console. The console includes Chinese/English and light/dark switches; no frontend build is required.

By default, anonymous loopback clients have admin access. Behind a reverse proxy or SSH tunnel, set [http] local_admin = false and configure role-based tokens. See access control.

For DeepSeek Harness, loci-dsh brings search, Q&A and memory capture into the Harness workbench through the same HTTP backend.

Connect your AI tools

Point each MCP client at the same `LOCI_HOME` so they share the same config, index and memory files:

{

"mcpServers": { "loci": { "command": "loci-mcp", "env": { "LOCI_HOME": "/absolute/path/to/your/loci-instance" } } } }

Use an absolute executable path if your client cannot find loci-mcp. The instance directory must contain your config.toml.

MCP toolsPurpose
brain_search · brain_askRetrieve excerpts or get cited answers
brain_remember · brain_forgetStore or retract durable memories
brain_links · brain_graphExplore note links and extracted relations
brain_wiki · brain_harnessConsolidate knowledge and inspect agent memories
brain_stats · brain_ingestInspect and refresh the index

The server also exposes note resources and briefing, study-plan and contradiction-check prompts. See the MCP guide for details.

*Actual loci-mcp output: initialize, tools/list and prompts/list on the real binary.*

Native build (Rust)

The same retrieval pipeline and MCP surface, with no Python runtime to install — one binary, and the index is a single SQLite file instead of a database directory:

cargo build --release -p loci-cli     # in native/

./target/release/loci-mcp --config ~/.loci/config.toml ./target/release/loci gui # the same console, served natively

Status: retrieval, a subset of MCP tools, harness discovery, migration and the console are ported. Harness file browsing and digest generation remain Python-only. See native/ for what is ported and the fidelity tests that pin it (chunking, the frozen default tokenizer, the CJK bigram decoy case, RRF, and incremental ingest).

The two builds keep separate store formats (SQLite vs ChromaDB directory), but they exchange data: export from Python with loci export, import in the native build with loci import, which refuses to mix embedding spaces unless you pass --force.

A small daily workflow

loci watch                            # keep changed documents indexed

loci remember "Use staging for demos" --title "Demo environment" loci search "demo environment" --tag memory loci ask "How should I prepare a demo?" --verify loci harness # inspect detected agent memories

Indexing is incremental. Notes stay readable as Markdown. For multiple machines, sync source files and memory notes, then rebuild each local index; keep credentials out of the repository.

See a retrieval session

The usage guide includes the original bilingual retrieval example and a small evaluation you can rerun against your own corpus.

Documentation

GuideCovers
Usage guide / 中文指南Commands, filters, harness setup, access control and local models
Configuration exampleProvider settings, source directories and runtime options
ArchitectureModules and the retrieval pipeline
Changelog · RoadmapReleased changes and planned work
ContributingDevelopment conventions and offline testing

loci uses the OpenAI-compatible SDK and ChromaDB, with no LangChain or LlamaIndex dependency. BM25, loaders and the MCP transport are implemented in the project.

python -m pip install -e '.[dev,pdf]'

pytest # offline tests; no API keys required

Find loci on Glama, ModelScope and [awesome-mcp-servers](https://github.com/punkpeye/awesome-mcp-server

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く