Velocirag logo

Velocirag

Local four-layer RAG search exposed through MCP, with indexing, document updates, diagnostics, and source listing.

Install Velocirag

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "velocirag": {
      "command": "uvx",
      "args": [
        "velocirag"
      ],
      "env": {
        "VELOCIRAG_DB": "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 installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

uvx velocirag

No response to initialize.

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 velocirag MCP server exposes local document retrieval and indexing through five MCP tools: search, index, add_document, health, and list_sources. It combines FAISS vector search, SQLite FTS5 BM25 matching, knowledge-graph traversal, and metadata filters, then applies reciprocal rank fusion and cross-encoder reranking. Install it when an MCP-compatible agent needs CPU-based search over an indexed document collection without API keys or external services. The server supports stdio and SSE transports and can keep its process alive so models and indexes remain loaded between requests.

Use cases

  • Search local Markdown documentation from an MCP agent
  • Index a directory and update changed files incrementally
  • Filter retrieved documents by tags, status, or project
  • Insert individual documents into an existing knowledge base
  • Check index health and list indexed sources

Key features

  • Four-layer retrieval with vector, BM25, graph, and metadata search
  • Reciprocal rank fusion with ONNX cross-encoder reranking
  • Five MCP tools for search, indexing, diagnostics, and source listing
  • Incremental indexing with provenance and cascading deletions
  • CPU-only local operation without API keys or external services
  • Stdio and SSE MCP transports

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.

23/23 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 · velocirag (PyPI)

Adoption & maintenance

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

GitHub stars12Stargazers on the source repository.
Last commit7mo agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.

How Velocirag works

What velocirag does

The velocirag MCP server gives an MCP-compatible agent access to a local document knowledge base. Its main search tool accepts a query and returns results from multiple retrieval layers rather than relying only on embeddings. The available layers are FAISS cosine similarity for conceptual matches, SQLite FTS5 with BM25 for exact terms, knowledge-graph traversal for related entities and concepts, and structured metadata filtering for fields such as tags, status, and project.

Five MCP tools are exposed:

  • search runs the combined retrieval pipeline and reranks the results.
  • index adds documents from a path to the knowledge base.
  • add_document inserts one document.
  • health returns system diagnostics.
  • list_sources shows indexed document sources.

The package also provides a CLI and Python API, so the MCP interface can be used alongside direct indexing and search workflows.

How it works

A query can be expanded with acronym, casing, spacing, and underscore-aware variants before retrieval. Results from the vector, keyword, graph, and metadata layers are merged with reciprocal rank fusion. A TinyBERT cross-encoder then reranks the combined results. Embeddings and reranking run through ONNX Runtime, using local models rather than an external model API. The README identifies MiniLM-L6-v2 for 384-dimensional embeddings and TinyBERT for reranking.

Documents can be split with header-aware chunking that preserves document structure and parent context. Graph processing can create entity, temporal, topic, and explicit-link edges from Markdown. File provenance supports incremental updates: later indexing runs can process changed files, remove deleted-file data across the vector, FTS5, graph, and metadata stores, and keep multiple sources isolated by source name.

The velocirag MCP server stays alive between requests. Its long-running process can keep the ONNX model and FAISS index loaded, avoiding repeated initialization for successive searches. A separate Unix-socket daemon provides a similar warm-query path for CLI users.

Setup and configuration

Install the MCP extra and create an index before starting the server:

Terminal
pip install "velocirag[mcp]"
velocirag index ./my-docs
velocirag mcp

The database can be supplied with --db PATH, or through the VELOCIRAG_DB environment variable in configurations such as Claude Code. The server supports --transport stdio|sse. Claude Desktop and Cursor configurations start the velocirag mcp command and pass the database path as an argument. Claude Code uses a project-level .mcp.json file.

Indexing supports options to skip graph or metadata construction, force a rebuild, assign a source name, or enable GLiNER entity recognition. GLiNER requires the optional velocirag[ner] installation.

Tools and capabilities

Use search for semantic, exact-term, connected-concept, or filtered retrieval. Use index for directory-level ingestion and add_document when an agent needs to insert one item. health helps inspect system status, while list_sources identifies the document collections currently indexed.

The underlying CLI also supports JSON or text search output, result limits, thresholds, metadata queries, daemon status checks, and daemon control. The Python API exposes lower-level stores and unified search configuration, including graph enrichment and metadata filters.

Limitations and notes

The implementation is designed for CPU use and does not require a GPU, API key, PyTorch, or an external service. The optional full graph mode adds approximately 2 GB of RAM usage, and the cross-encoder downloads a roughly 17 MB model on first use. The first request can be slower while models load; a warm daemon or persistent MCP process is intended to reduce that initialization cost. GLiNER entity extraction is optional rather than part of the base installation.

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 Velocirag

velocirag is an MCP server that connects AI agents to a local indexed document knowledge base through search, index, add_document, health, and list_sources tools. It combines vector, BM25 keyword, knowledge-graph, and metadata retrieval, then fuses and reranks results locally with ONNX Runtime for CPU-based use without API keys.

Install it with `pip install "velocirag[mcp]"`, index a directory with `velocirag index ./my-docs`, and start it with `velocirag mcp`. Pass the database location with `--db PATH` or configure `VELOCIRAG_DB` where supported.

Yes, velocirag works with Cursor through its MCP configuration. Add a server entry to `.cursor/mcp.json` that runs `velocirag` with the `mcp` argument and supplies the indexed database path with `--db`.

It provides `search`, `index`, `add_document`, `health`, and `list_sources`. These cover combined retrieval, directory indexing, single-document insertion, diagnostics, and inspection of indexed sources.

Yes, its graph pipeline supports incremental updates. Later indexing runs detect changed files, reprocess affected data, and cascade deleted-file cleanup across vector, FTS5, graph, and metadata stores.

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 PreviewVelocirag AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/velocirag?style=directory)](https://allmcps.com/mcp/velocirag)
HTML Embed
<a href="https://allmcps.com/mcp/velocirag"><img src="https://allmcps.com/api/badge/velocirag?style=directory" alt="Velocirag on AllMCPs" /></a>