# rag-vault [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/RobThePCGuy/rag-vault  
**GitHub Stars:** 3  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/rag-vault

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

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "rag-vault": {
    "command": "npx",
    "args": ["-y","github:RobThePCGuy/rag-vault"],
    "env": {
      "BASE_DIR": ""
    }
  }
}
```

**Requires environment variables:** `BASE_DIR` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/rag-vault/readme_

