Rag Vault logo

Rag Vault

Indexes private documents locally and exposes hybrid search, ingestion, and document management through MCP.

Install Rag Vault

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "rag-vault": {
      "command": "npx",
      "args": [
        "-y",
        "github:RobThePCGuy/rag-vault"
      ],
      "env": {
        "BASE_DIR": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y github:RobThePCGuy/rag-vault

npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The rag-vault MCP server indexes private documents on your machine and exposes them to AI coding assistants for retrieval. It combines semantic and exact-term search with optional reranking, and supports PDF, DOCX, Markdown, TXT, JSON, JSONL, and NDJSON files. Use it when an agent needs grounded answers from local specifications, research, code documentation, or internal files without default cloud indexing. It runs through stdio or HTTP, with an optional web interface and REST API for document management.

Use cases

  • Search private API specifications during implementation
  • Ingest research papers and query their contents
  • Index internal Markdown documentation for coding assistants
  • Find related passages across multiple local documents
  • Manage local knowledge bases through the web interface

Key features

  • Hybrid semantic and keyword search
  • PDF, DOCX, Markdown, TXT, JSON, JSONL, and NDJSON ingestion
  • Optional cross-encoder reranking
  • Local stdio and remote HTTP MCP modes
  • Web interface and REST API
  • Optional API key, rate limiting, CORS, and security headers

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

21/25 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · github:RobThePCGuy/rag-vault (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.

How Rag Vault works

What rag-vault does

The rag-vault MCP server creates a local document vault that AI assistants can search during a conversation. It is intended for private material such as API specifications, research papers, internal documentation, and codebase documentation. Indexing and search run locally by default, so documents do not need to be sent to a hosted service.

Supported file types include PDF, DOCX, Markdown, TXT, JSON, JSONL, and NDJSON. The project can also ingest HTML obtained from a remote URL when that behavior is explicitly requested. A browser-based interface provides document upload, search, result previews, file deletion, database switching, status information, and settings export or import.

How it works

Documents are split into chunks and indexed for retrieval. Search uses a hybrid approach that combines semantic and keyword matching through reciprocal-rank fusion. An optional cross-encoder reranker can further reorder results. Configuration can adjust the hybrid weighting, grouping behavior, and embedding device; the example configuration uses CPU embeddings and a hybrid weight of 0.6.

The MCP process can run in stdio mode for local clients. A remote mode exposes MCP over Streamable HTTP at /mcp and also supports the legacy /sse transport. The web server includes REST endpoints for searching, listing, uploading, deleting, reading document chunks, finding related chunks, checking status, and performing health checks.

Setup and configuration

Run the server with Node.js 20 or newer and choose a directory that the AI client can read. Set BASE_DIR to that location, then add the server to the client’s MCP configuration. The documented stdio examples use npx -y github:RobThePCGuy/rag-vault, so Docker, Python, and a separately managed database are not required by the setup instructions.

Optional settings include DB_PATH for the local database, CACHE_DIR for cached data, RAG_EMBEDDING_DEVICE, RAG_HYBRID_WEIGHT, and RAG_GROUPING. The web interface starts with npx github:RobThePCGuy/rag-vault web and listens on port 3000 by default. Remote mode starts with --remote, using port 3001 unless another port is supplied.

Tools and capabilities

The rag-vault MCP server supports document ingestion and retrieval workflows. The project documentation specifically references ingest_file for file-based ingestion and ingest_data for data supplied directly to the server. Search can return relevance scores, while related-chunk operations help discover connections across documents.

Optional skills for Claude Code and Codex provide guidance on query expansion, score interpretation, ingestion tool selection, HTML and URL handling, and result use. These skills are installed separately and are not required to run the server.

Limitations and notes

BASE_DIR must point to a directory accessible by the AI tool process. The default web and remote bindings use loopback, so other devices cannot connect unless RAG_BIND_HOST is changed. If the service is exposed beyond the local machine, the documentation recommends setting RAG_API_KEY; API authentication is otherwise optional. Rate limiting, CORS restrictions, and security headers are available for the web service.

The system is local by default, but explicitly requested remote URL ingestion sends the server to retrieve that content. Remote MCP connections should also be protected when exposed through a network or tunnel.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Rag Vault

rag-vault is an MCP server that connects an AI coding assistant to a local document vault and provides search, ingest_file, and ingest_data tools. It supports local indexing and retrieval for private documents, with optional remote URL ingestion. Clients can connect through stdio or HTTP transports.

Install Node.js 20 or newer, set BASE_DIR to a readable documents directory, and add an MCP entry that runs npx -y github:RobThePCGuy/rag-vault. Restart the client after saving its configuration.

Yes, rag-vault works with Cursor through stdio. Add it to ~/.cursor/mcp.json with the npx command and a BASE_DIR environment variable, then restart Cursor.

Run npx github:RobThePCGuy/rag-vault --remote, then connect an HTTP-capable MCP client to the /mcp endpoint. The default port is 3001, and the server also supports legacy SSE at /sse.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRag Vault AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/rag-vault?style=directory)](https://allmcps.com/mcp/rag-vault)
HTML Embed
<a href="https://allmcps.com/mcp/rag-vault"><img src="https://allmcps.com/api/badge/rag-vault?style=directory" alt="Rag Vault on AllMCPs" /></a>