ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Rag Vault

โดย RobThePCGuyรุ่น 1.5.3i★ –iรันบนเครื่อง
ชื่อใน registryio.github.RobThePCGuy/rag-vault

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Local RAG MCP server with hybrid search, PDF/DOCX support, and zero-config setup

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: ค้นข้อมูลและความจำของ AI

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "rag-vault": {
      "command": "npx",
      "args": [
        "-y",
        "@robthepcguy/rag-vault"
      ],
      "env": {
        "BASE_DIR": "ใส่ค่าของคุณ",
        "DB_PATH": "ใส่ค่าของคุณ",
        "CACHE_DIR": "ใส่ค่าของคุณ",
        "MODEL_NAME": "ใส่ค่าของคุณ",
        "RAG_HYBRID_WEIGHT": "ใส่ค่าของคุณ",
        "RAG_GROUPING": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add rag-vault --env BASE_DIR='ใส่ค่าของคุณ' --env DB_PATH='ใส่ค่าของคุณ' --env CACHE_DIR='ใส่ค่าของคุณ' --env MODEL_NAME='ใส่ค่าของคุณ' --env RAG_HYBRID_WEIGHT='ใส่ค่าของคุณ' --env RAG_GROUPING='ใส่ค่าของคุณ' -- npx -y @robthepcguy/rag-vault

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "rag-vault": {
      "command": "npx",
      "args": [
        "-y",
        "@robthepcguy/rag-vault"
      ],
      "env": {
        "BASE_DIR": "ใส่ค่าของคุณ",
        "DB_PATH": "ใส่ค่าของคุณ",
        "CACHE_DIR": "ใส่ค่าของคุณ",
        "MODEL_NAME": "ใส่ค่าของคุณ",
        "RAG_HYBRID_WEIGHT": "ใส่ค่าของคุณ",
        "RAG_GROUPING": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "rag-vault": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@robthepcguy/rag-vault"
      ],
      "env": {
        "BASE_DIR": "ใส่ค่าของคุณ",
        "DB_PATH": "ใส่ค่าของคุณ",
        "CACHE_DIR": "ใส่ค่าของคุณ",
        "MODEL_NAME": "ใส่ค่าของคุณ",
        "RAG_HYBRID_WEIGHT": "ใส่ค่าของคุณ",
        "RAG_GROUPING": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • BASE_DIR env
    Base directory for document storage (defaults to current working directory)
  • DB_PATH env
    Path to LanceDB database directory (defaults to ./lancedb/)
  • CACHE_DIR env
    Directory where Transformers.js models are cached (defaults to ./models/)
  • MODEL_NAME env
    Embedding model name (defaults to Xenova/all-MiniLM-L6-v2)
  • RAG_HYBRID_WEIGHT env
    Keyword boost strength for hybrid search. 0.0 = semantic only, 1.0 = keyword only. Default 0.6
  • RAG_GROUPING env
    Grouping mode: 'similar' (top group only) or 'related' (top 2 groups)

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub RobThePCGuy ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ค้นข้อมูลและความจำของ AIi

  • ดาวมากกว่า 0% ของอีก 7243 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 2% ของอีก 7243 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 7243 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Rag Vault ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.5.3) เข้า registry 9 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Context7, Codebase Memory, Exa

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Context7

โดย upstash

ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว

บนเครื่องหรือคลาวด์★ 64,224MITอัปเดต 3 วันที่ผ่านมา
ติดตั้ง

Codebase Memory

โดย DeusData

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

รันบนเครื่อง★ 48,148MITอัปเดต 20 วันที่ผ่านมา
ติดตั้ง

Exa

โดย exa-labs

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

รันบนคลาวด์★ 5,213MITอัปเดต 44 วันที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

RAG Vault

Your documents. Your machine. Your control.

RAG Vault lets your AI coding assistant search your private documents, things like API specs, research papers, and internal docs. Everything runs locally and your data stays on your machine unless you choose to pull in content from a remote URL.

One command to run, minimal setup, privacy by default.

Why RAG Vault?

Pain PointRAG Vault Solution
"I don't want my docs on someone else's server"Everything stays local by default. No background cloud calls for indexing or search.
"Semantic search misses exact code terms"Hybrid search with RRF fusion, optional cross-encoder reranking
"Setup requires Docker, Python, databases..."One npx command plus a small MCP config block.
"Cloud APIs charge per query"Free forever. No subscriptions.

Security

RAG Vault comes with security built in:

  • API Authentication: Optional API key via RAG_API_KEY
  • Rate Limiting: You can throttle requests
  • CORS Control: Restrict allowed origins
  • Security Headers: Helmet.js protection

See SECURITY.md for complete documentation.

First-Time Setup Checklist

Before adding MCP config:

  1. Install Node.js 20 or newer.
  2. Pick a documents directory and set BASE_DIR to that path.
  3. Make sure your AI tool process can read BASE_DIR.
  4. Restart your AI tool after editing config.

Get Started Quickly

For Cursor

Add to ~/.cursor/mcp.json:

{

"mcpServers": { "local-rag": { "type": "stdio", "command": "npx", "args": ["-y", "github:RobThePCGuy/rag-vault"], "env": { "BASE_DIR": "/path/to/your/documents" } } } }

Replace /path/to/your/documents with your real absolute path.

For Claude Code

Add to .mcp.json in your project directory:

{

"mcpServers": { "local-rag": { "type": "stdio", "command": "npx", "args": ["-y", "github:RobThePCGuy/rag-vault"], "env": { "BASE_DIR": "./documents", "DB_PATH": "./documents/.rag-db", "CACHE_DIR": "./.cache", "RAG_EMBEDDING_DEVICE": "cpu", "RAG_HYBRID_WEIGHT": "0.6", "RAG_GROUPING": "related" } } } }

Or add inline via CLI:

claude mcp add local-rag --scope user --env BASE_DIR=/path/to/your/documents -- npx -y github:RobThePCGuy/rag-vault
For Codex

Add to ~/.codex/config.toml:

[mcp_servers.local-rag]

command = "npx" args = ["-y", "github:RobThePCGuy/rag-vault"]

[mcp_servers.local-rag.env] BASE_DIR = "/path/to/your/documents"

Install Skills (Optional)

If you want your AI to write better queries and make more sense of results, install the RAG Vault skills:

# Claude Code (project-level - recommended for team projects)

npx github:RobThePCGuy/rag-vault skills install --claude-code

Claude Code (user-level - available in all projects)

npx github:RobThePCGuy/rag-vault skills install --claude-code --global

Codex (user-level)

npx github:RobThePCGuy/rag-vault skills install --codex

Custom location

npx github:RobThePCGuy/rag-vault skills install --path /your/custom/path

Skills teach Claude best practices for:

  • Query formulation and expansion strategies
  • Score interpretation. In boost mode, under 0.3 is a good match and over 0.5 is worth skipping. RRF mode scores by rank instead.
  • When to use ingest_file vs ingest_data
  • HTML ingestion and URL handling

Restart your AI tool, and start talking:

You: "Ingest api-spec.pdf"

AI: Successfully ingested api-spec.pdf (47 chunks)

You: "How does authentication work?" AI: Based on section 3.2, authentication uses OAuth 2.0 with JWT tokens...

That's it. No Docker. No Python. No server infrastructure to manage.

Web Interface

RAG Vault has a web UI so you can manage your documents without touching the command line.

Launch the Web UI
npx github:RobThePCGuy/rag-vault web

Open http://localhost:3000 in your browser.

By default the web server binds to 127.0.0.1 (loopback), so it is reachable only from this machine. To use it from another device on your network, set RAG_BIND_HOST=0.0.0.0 — and set RAG_API_KEY as well, since the API is otherwise unauthenticated.

What You Can Do
  • Upload documents: Drag and drop PDF, DOCX, Markdown, TXT, JSON, JSONL, and NDJSON files
  • Search instantly: Type queries and see results with relevance scores
  • Preview content: Click any result to see the full chunk in context
  • Manage files: View all indexed documents and delete what you don't need
  • Switch databases: Create and switch between multiple knowledge bases
  • Monitor status: See document counts, memory usage, and search mode
  • Export/Import settings: Back up and restore your vault configuration
  • Theme preferences: Switch between light, dark, or system theme
  • Folder browser: Navigate directories to select documents
REST API

The web server has a REST API you can hit directly. Set RAG_API_KEY to require authentication:

# With authentication (when RAG_API_KEY is set)

curl -X POST "http://localhost:3000/api/v1/search" \ -H "Authorization: Bearer your-api-key" \ -H "Content-Type: application/json" \ -d '{"query": "authentication", "limit": 5}'

Search documents (no auth needed if RAG_API_KEY isn't set)

curl -X POST "http://localhost:3000/api/v1/search" \ -H "Content-Type: application/json" \ -d '{"query": "authentication", "limit": 5}'

List all files

curl "http://localhost:3000/api/v1/files"

Upload a document

curl -X POST "http://localhost:3000/api/v1/files/upload" \ -F "file=@spec.pdf"

Delete a file

curl -X DELETE "http://localhost:3000/api/v1/files" \ -H "Content-Type: application/json" \ -d '{"filePath": "/path/to/spec.pdf"}'

Get system status

curl "http://localhost:3000/api/v1/status"

Health check (for load balancers)

curl "http://localhost:3000/api/v1/health"

Reader API Endpoints

These endpoints let you read documents and find connections across them:

# Get all chunks for a document (ordered by index)

curl "http://localhost:3000/api/v1/documents/chunks?filePath=/path/to/doc.pdf"

Find related chunks for cross-document discovery

curl "http://localhost:3000/api/v1/chunks/related?filePath=/path/to/doc.pdf&chunkIndex=0&limit=5"

Batch request for multiple chunks (efficient for UIs)

curl -X POST "http://localhost:3000/api/v1/chunks/batch-related" \ -H "Content-Type: application/json" \ -d '{"chunks": [{"filePath": "/path/to/doc.pdf", "chunkIndex": 0}], "limit": 3}'

Remote Mode

RAG Vault can also run as an HTTP server so remote MCP clients like Claude.ai, Claude Desktop, or anything that supports Streamable HTTP or SSE can connect to it.

# Start remote server (default port 3001)

npx github:RobThePCGuy/rag-vault --remote

Custom port

npx github:RobThePCGuy/rag-vault --remote --port 8080

Stdio mode is unchanged. Just leave off --remote and everything works as before with Cursor, Claude Code, and Codex.

Connecting from Claude Desktop

Add to your Claude Desktop config:

{

"mcpServers": { "rag-vault-remote": { "type": "url", "url": "http://localhost:3001/mcp" } } }

Or via Claude Code CLI:

claude mcp add --transport http rag-vault http://localhost:3001/mcp
Connecting from Claude.ai

For Claude.ai (Pro/Max/Team/Enterprise), add as a custom connector with URL https://your-host:3001/mcp. For local development, expose your server with a tunnel:

cloudflared tunnel --url http://localhost:3001

The remote server also binds to 127.0.0.1 (loopback) by default. To accept connections from other machines directly, set RAG_BIND_HOST=0.0.0.0. Set RAG_API_KEY for authentication whenever you expose the server beyond loopback (including via a tunnel). The server supports both Streamable HTTP (/mcp) and legacy SSE (/sse) transports, plus a health check at /health.

Real-World Examples

Search Your Codebase Documentation
You: "Ingest all the markdown files in /docs"

AI: Ingested 23 files (847 chunks total)

You: "What's the retry policy for failed API calls?" AI: According to error-handling.md, failed requests retry 3 times with exponential backoff: 1s, 2s, 4s...

Index Web Documentation
You: "Fetch https://docs.example.com/api and ingest the HTML"

AI: Ingested "docs.example.com/api" (156 chunks)

You: "What rate limits apply to the /users endpoint?" AI: The API limits /users to 100 requests per minute per API key...

Build a Personal Knowledge Base
You: "Ingest my research papers folder"

AI: Ingested 12 PDFs (2,341 chunks)

You: "What do recent studies say about transformer attention mechanisms?" AI: Based on attention-mechanisms-2024.pdf, the key finding is...

Search Exact Technical Terms

RAG Vault's hybrid search catches both meaning and exact matches:

You: "Search for ERR_CONNECTION_REFUSED"

AI: Found 3 results mentioning ERR_CONNECTION_REFUSED:

  1. troubleshooting.md - "When you see ERR_CONNECTION_REFUSED..."
  2. network-errors.pdf - "Common causes include..."

Pure semantic search would miss this. RAG Vault finds it.

How It Works

Document → Parse → Chunk by meaning → Embed locally → Store in LanceDB

↓ Query → Embed → Vector search + BM25 → Fusion → Optional reranking → Results

Smart chunking: Splits by meaning, not character count. Keeps code blocks intact.

Hybrid search: Two fusion modes that combine vector similarity with BM25 keyword matching:

  • Boost mode (default): BM25 boosts vector search distances multiplicatively. Simple and predictable.
  • RRF mode (opt-in via RAG_SEARCH_MODE=rrf): Reciprocal Rank Fusion treats vector and BM25 as independent voters. This can surface documents that vector search alone would miss.

Cross-encoder reranking (opt-in): After the first pass, a cross-encoder model (Xenova/ms-marco-MiniLM-L-6-v2, ~23MB) scores each (query, passage) pair together for tighter relevance ranking. Turn it on with RAG_RERANKER_ENABLED=true.

Query expansion (opt-in): Generates reformulated queries to improve recall when searches are paraphrased or conceptual. Two backends: local template-based expansion (default, fully offline) or LLM-based HyDE through an external API. Turn it on with RAG_HYDE_ENABLED=true.

Quality filtering: Groups results by relevance gaps instead of arbitrary top-K cutoffs.

Local by default: Embeddings via Transformers.js. Storage via LanceDB. Network is only needed for initial model download or if you explicitly ingest remote URLs.

MCP tools included: query_documents, ingest_file, ingest_data, delete_file, list_files, status, feedback_pin, feedback_dismiss, and feedback_stats.

Supported Formats

FormatExtensionNotes
PDF.pdfFull text extraction, header/footer filtering
Word.docxTables, lists, formatting preserved
Markdown.mdCode blocks kept intact
Text.txtPlain text
JSON.jsonConverted to searchable key-value text
JSONL / NDJSON.jsonl, .ndjsonParsed line-by-line for logs and structured records
HTMLvia ingest_dataAuto-cleaned with Readability

Configura

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx