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

Rag

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

インストール

概要

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

MCP RAG server with hybrid search, multi-KB support, and AI-powered chunk contextualization.

PopNx MCPの3つの柱

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

できること

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

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

インストール

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

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, VOYAGE_API_KEY, GROQ_API_KEY

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

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

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

{
  "mcpServers": {
    "rag": {
      "command": "dnx",
      "args": [
        "FieldCure.Mcp.Rag",
        "--yes"
      ],
      "env": {
        "OPENAI_API_KEY": "your-value",
        "ANTHROPIC_API_KEY": "your-value",
        "GEMINI_API_KEY": "your-value",
        "VOYAGE_API_KEY": "your-value",
        "GROQ_API_KEY": "your-value"
      }
    }
  }
}

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

claude mcp add rag --env OPENAI_API_KEY=your-value --env ANTHROPIC_API_KEY=your-value --env GEMINI_API_KEY=your-value --env VOYAGE_API_KEY=your-value --env GROQ_API_KEY=your-value -- dnx FieldCure.Mcp.Rag --yes

動かす前に、空欄の値を入力してください。

Cursorで開く

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

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

{
  "mcpServers": {
    "rag": {
      "command": "dnx",
      "args": [
        "FieldCure.Mcp.Rag",
        "--yes"
      ],
      "env": {
        "OPENAI_API_KEY": "your-value",
        "ANTHROPIC_API_KEY": "your-value",
        "GEMINI_API_KEY": "your-value",
        "VOYAGE_API_KEY": "your-value",
        "GROQ_API_KEY": "your-value"
      }
    }
  }
}

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

VS Codeで開く

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

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

{
  "servers": {
    "rag": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "FieldCure.Mcp.Rag",
        "--yes"
      ],
      "env": {
        "OPENAI_API_KEY": "your-value",
        "ANTHROPIC_API_KEY": "your-value",
        "GEMINI_API_KEY": "your-value",
        "VOYAGE_API_KEY": "your-value",
        "GROQ_API_KEY": "your-value"
      }
    }
  }
}

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

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

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

自分で入力する値

  • OPENAI_API_KEY env
  • ANTHROPIC_API_KEY env
  • GEMINI_API_KEY env
  • VOYAGE_API_KEY env
  • GROQ_API_KEY env

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

できること

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

基本チェックi

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

  • ✓ 合格

    作者とリポジトリが一致

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

  • … 未チェック

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

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

  • … 未チェック

    ライセンスがある

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

  • – 対象外

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

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

  • – 対象外

    OAuthでサインイン

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

  • … 未チェック

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

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

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

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

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

よくある質問

Ragは安全ですか?

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

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

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

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

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

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

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

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

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

代わりに使えるものは?

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

代わりの候補

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

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

Context7

作者:upstash

Up-to-date docs for AI agents

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

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,213MIT44 日前更新
インストール

作者のREADME

READMEを開く

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

FieldCure MCP RAG Server

A Model Context Protocol (MCP) server for indexing and searching local document collections. Supports DOCX, HWPX, PDF (with OCR), Excel, PowerPoint, and audio (Whisper transcription, Windows-only), with hybrid keyword + semantic search optimized for Korean and English.

Built with C# and the official MCP C# SDK.

Commands

fieldcure-mcp-rag

├── serve --base-path # Multi-KB MCP search server (stdio) ├── exec --path [--force] [--partial ...] # Headless indexing for a single KB ├── exec-queue --queue-file [--sweep-all] # Process deferred indexing queue ├── prune-orphans --base-path # Delete orphan KB folders └── smoke-ocr --pdf # Self-test: OCR a scanned PDF (Windows)

  • serve — read-only MCP server serving all knowledge bases under the base path. Single process handles multiple KBs via kb_id parameter. Can run while exec is indexing (SQLite WAL).
  • exec — scans source folders, chunks documents, contextualizes with AI, embeds, stores in SQLite. --partial re-runs only downstream stages when models change, preserving OCR output.
  • exec-queue — sequential orchestrator consuming a deferred indexing queue. One entry at a time, no GPU contention. --sweep-all processes deferred entries too (used at app shutdown).
  • prune-orphans — deletes orphan KB folders (GUID-named, no config.json). Protected folders (., _ prefix, -backup-) are never touched.
  • smoke-ocr — diagnostic mode. Loads a scanned PDF through the OCR fallback parser, prints recognized text to stdout, and exits 0 on a non-empty result. Surfaces DllNotFoundException / BadImageFormatException distinctly so a missing or arch-mismatched native is immediately visible. Useful for verifying that the OCR native path is wired correctly on a given host (notably win-arm64 dnx installs).

Features

Search
  • Hybrid BM25 + vector search with Reciprocal Rank Fusion (RRF)
  • BM25-only fallback when no embedding provider is configured
  • Korean-optimized chunking (sentence boundary, decimal protection, parenthesis-aware)
  • SIMD-accelerated cosine similarity via System.Numerics.Vector
  • FTS5 trigram index for substring and CJK-friendly keyword matching
Indexing
  • Incremental indexing with SHA256 change detection
  • AI-powered chunk contextualization with bilingual keyword enrichment (see Chunk Contextualization)
  • 2-commit pipeline preserves expensive upstream work across embedding failures (see How Indexing Works)
  • Math equation extraction from DOCX/HWPX as [math: LaTeX] blocks
  • PDF with OCR fallback (Tesseract eng+kor) for scanned pages
  • Audio transcription (.mp3, .wav, .m4a, .ogg, .flac, .webm) via Whisper.net — Windows-only. Model size (Tiny→Large) is auto-selected from detected GPU/RAM/cores at startup; each transcript chunk records audio.model_size and audio.transcribed_at for future reindex auditing
  • Cross-process indexing lock with stale PID auto-cleanup
  • Orphan cleanup for deleted files
Queue Orchestrator
  • All indexing requests flow through start_reindex MCP tool — no direct exec spawn
  • Scope merge rules: full ⊃ contextualization ⊃ embedding (duplicate requests upgrade, not duplicate)
  • PID-based orchestrator lock with reuse defense (orchestrator.lock)
  • Logical KB deletion (config.json removal) + prune-orphans physical cleanup
  • Deferred indexing for app-shutdown batch processing (--sweep-all)
Operations
  • Multi-KB serve: single process serves all knowledge bases under a base path, lazy-loaded per KB
  • SQLite WAL mode allows search during indexing
  • Graceful shutdown via cancel file
  • Per-KB config.json with provider configuration
Integration
  • Ollama native — embedding via /api/embed, contextualization via /api/chat with keep_alive and num_ctx support. Requires Ollama 0.4.0+.
  • OpenAI-compatible — embedding via /v1/embeddings, contextualization via /v1/chat/completions. Works with OpenAI, Azure OpenAI, Groq, LM Studio, Together AI.
  • Gemini native — embedding via /v1beta/models/{model}:embedContent with task_type asymmetric retrieval (RETRIEVAL_DOCUMENT / RETRIEVAL_QUERY) and Matryoshka dimension truncation (768 / 1536 / 3072). gemini-embedding-2, multilingual, 8k token input.
  • Anthropic — contextualization via /v1/messages.
  • API keys via environment variables — OPENAI_API_KEY, ANTHROPIC_API_KEY, etc. Batch indexing commands (exec, exec-queue) are env-var-only. Interactive MCP search can fall back to MCP elicitation when the client supports it.
  • Standard MCP stdio transport (JSON-RPC over stdin/stdout)

Chunk Contextualization

Standard RAG chunking loses context — a sentence about "the protocol" becomes ambiguous when ripped from its surrounding paragraphs. This server addresses that with Unified Chunk Contextualization: a single LLM call per chunk that produces both contextual framing and bilingual (Korean + English) keywords in one pass.

The result is stored alongside the original chunk text:

  • Original text is preserved for accurate retrieval display
  • Contextualized text is what gets embedded and indexed in BM25
  • Bilingual keywords enable cross-lingual search — a Korean query can retrieve English documents and vice versa

This is enabled by setting contextualizer in config.json. It can be disabled (set provider/model to empty) if you prefer raw chunk indexing.

How Indexing Works

The exec command runs a 5-stage pipeline per file:

  1. Extract — text from document (DOCX, PDF OCR, audio transcription, etc.)
  2. Chunk — split into ~1000 char windows
  3. Contextualize — LLM enrichment (optional, see above)
  4. Embed — vector embedding via API
  5. Persist — save to SQLite

For large files, Stage 1 alone can take 20+ minutes — OCR on a 596-page scanned PDF, or Whisper transcription of a multi-hour audio recording. The first audio file in any KB also pays a one-time ggml model download (cached under {UserProfile}/.fieldcure/whisper-models/). To prevent expensive upstream work from being lost when later stages fail, the pipeline uses a 2-commit model:

Stages 1-3 (Extract → Chunk → Contextualize)

↓ [Commit 1] chunks saved as PendingEmbedding ↓ Stage 4 (Embed) ├─ success → [Commit 2a] promote chunks to Indexed └─ failure → chunks remain PendingEmbedding (retry next exec)

Why this matters: A 25-minute OCR result is persisted on disk before any embedding API call. If Stage 4 fails (network error, rate limit, token limit, process crash, even power loss), the chunks survive. The next exec hash-skips the file (no OCR re-run) and the deferred retry pass attempts only Stage 4.

Per-Chunk Failure Isolation (Binary Split)

If a single chunk in a file exceeds the embedding model's token limit (e.g., a math-dense page in a textbook), the binary split algorithm isolates that one chunk:

EmbedBatch([0..1249])         → 400 "input[846] too long"

├─ EmbedBatch([0..624]) → OK (promote 625) └─ EmbedBatch([625..1249]) → 400 ├─ EmbedBatch([625..937]) → 400 │ ... (binary search narrows toward chunk 846) │ └─ EmbedBatch([846..846]) → 400 (mark chunk 846 Failed) └─ EmbedBatch([938..1249]) → OK (promote 312)

Result: 1249 chunks indexed, only chunk 846 marked Failed. The file's status becomes Degraded — partially searchable instead of completely missing.

Deferred Retry Pass

Each exec ends with a retry pass over any chunks left in PendingEmbedding state from previous runs:

  • Reads enriched text from DB — no OCR or contextualization re-run
  • Calls the embedding API only — typically seconds, not minutes
  • Up to 3 retries per chunk; on exhaustion, the chunk is marked Failed
  • Auth errors (401/403) flag the provider as unavailable and skip the rest of the pass
File States
StatusMeaningHash-skip behavior
ReadyFully indexedSkip if hash matches
DegradedSome chunks failed (binary-split isolated)Skip if hash matches
PartiallyDeferredChunks pending embedding retryMain loop skips; deferred pass picks up
FailedExtraction or repeated embedding failureSkip; requires --force to retry
NeedsActionUser intervention requiredSkip with separate counter
Schema Versioning

Each KB DB carries a PRAGMA user_version tag. The exec command migrates older schemas automatically as part of InitializeSchema(). The serve command opens DBs read-only and never triggers migration — older-schema KBs continue to serve search queries correctly while their new-feature columns remain unused.

Installation

dotnet tool (recommended)
dotnet tool install -g FieldCure.Mcp.Rag
From source
git clone https://github.com/fieldcure/fieldcure-mcp-rag.git

cd fieldcure-mcp-rag dotnet build

Requirements

  • .NET 8.0 Runtime or later
  • OCR: Windows x64 only — Tesseract OCR for scanned PDFs loads lazily on first use (Windows only). On other platforms, PDFs with embedded text work normally; scanned pages without a text layer are silently skipped.
  • An embedding provider (Ollama, OpenAI, etc.) — optional, BM25 search works without it
  • Ollama 0.4.0 or later (if using Ollama for embedding or contextualization)

Quick Start

Index a folder and search it without any embedding setup (BM25 only):

# 1. Install

dotnet tool install -g FieldCure.Mcp.Rag

2. Create a minimal config

$kbPath = "$env:LOCALAPPDATA\FieldCure\Mcp.Rag\demo" New-Item -ItemType Directory -Force -Path $kbPath @' { "id": "demo", "name": "Demo KB", "sourcePaths": ["C:\\my-docs"] } '@ | Set-Content "$kbPath\config.json"

3. Index

fieldcure-mcp-rag exec --path $kbPath

4. Start the search server

fieldcure-mcp-rag serve --base-path "$env:LOCALAPPDATA\FieldCure\Mcp.Rag"

For full retrieval quality with semantic search and contextualization, add embedding and contextualizer blocks to config.json — see Usage below.

Usage

1. Create a knowledge base folder
%LOCALAPPDATA%\FieldCure\Mcp.Rag\{kb-id}\config.json
{

"id": "my-kb-001", "name": "Project Docs", "created": "2026-04-03T00:00:00Z", "sourcePaths": ["C:\\Users\\me\\Documents\\project-docs"], "contextualizer": { "provider": "anthropic", "model": "claude-haiku-4-5-20251001", "apiKeyPreset": "Claude" }, "embedding": { "provider": "openai", "model": "text-embedding-3-small", "apiKeyPreset": "OpenAI" } }

API keys are resolved from environment variables: apiKeyPreset: "OpenAI" → OPENAI_API_KEY, "Claude" → ANTHROPIC_API_KEY, "Gemini" (or "Google") → GEMINI_API_KEY.

Gemini embedding example — asymmetric retrieval with 1536-dim Matryoshka truncation (50% storage of full 3072 with identical MTEB score):

"embedding": {

"provider": "gemini", "model": "gemini-embedding-2", "apiKeyPreset": "Gemini", "dimension": 1536 }

DimensionMTEBStorageUse case
76867.9925%Storage-constrained
153668.1750%Recommended default
307268.17100%Maximum quality (pre-normalized)

In serve mode, `search_d

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

PopNxに聞く