Quillrag logo

Quillrag

Local Rust RAG server with MiniLM embeddings, hybrid search, incremental indexing, and MCP tools for document retrieval.

Install Quillrag

Run the project’s own setup commands, in order.

Setup steps from the project

quillrag installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    gh release download --repo Ayush-yadav11/quillrag -p '*linux*'
    
  2. 2. Install
    tar xzf quillrag-x86_64-linux.tar.gz && chmod +x quillrag
    
  3. 3. Install
    gh release download --repo Ayush-yadav11/quillrag -p '*linux*' | tar xz
    
  4. 4. Install
    cargo install --path .
    
  5. 5. Start the server
    ./quillrag serve
    

Overview

The quillrag MCP server indexes local notes, documentation, and source code, then retrieves relevant chunks through MCP tools. It combines MiniLM cosine similarity with BM25 keyword matching using Reciprocal Rank Fusion, while skipping unchanged files during incremental updates. Run it as a single binary over stdio and configure an MCP client to search a local corpus during conversations. Reach for it when you need private, local retrieval without Node, Python, or a separate model download.

Use cases

  • Index local notes for conversational search
  • Search source code and project documentation
  • Refresh changed files without re-embedding unchanged content
  • Inspect corpus size and file-type coverage
  • Run private retrieval without network access

Key features

  • Incremental file and directory indexing
  • MiniLM dense embeddings
  • BM25 and Reciprocal Rank Fusion retrieval
  • Local single-file storage
  • MCP and CLI interfaces
  • Status and full-clear tools

Tools4

What Quillrag lets your agent do. Expand a tool for its parameters.

Self-reported~112 tokens of context

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.

15/15 checks healthy over the last 90d

Adoption & maintenance

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

GitHub stars3Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Quillrag works

What quillrag MCP server does

The quillrag MCP server turns local files into a searchable retrieval-augmented generation store. It is distributed as a static Rust binary with the MiniLM embedding model included, so normal operation does not require Node, Python, pip, npm, or downloading a model. Processing, storage, and search remain on the local machine; the project states that it has no network code path after installation.

The default indexer handles common text and code formats, including Markdown, plain text, JSON, YAML, TOML, CSV, HTML, XML, logs, and many programming-language files. It skips dot-directories and several build or dependency directories such as node_modules, target, dist, venv, and __pycache__. Paragraphs are split into chunks with a 1000-character cap and 120-character overlap.

How it works

rag_index walks a file or directory and records document content, metadata, and embeddings. Content hashes let it skip unchanged files and re-embed only modified content. Pruning applies only to the root being indexed, so indexing one directory does not remove documents previously added from another root. Symlinked files and directories are followed, while cycles, broken links, and unreadable directories stop the walk before the store is changed.

rag_search combines dense retrieval from MiniLM embeddings with BM25 keyword retrieval. Reciprocal Rank Fusion merges the two rankings and returns ranked chunks with their source paths. Dense retrieval uses an exact, single-threaded scan of the stored vectors rather than an approximate nearest-neighbor index, so query time grows with corpus size.

The data is stored in one redb file, with a BM25 sidecar index rebuilt during indexing. The model loads lazily on the first indexing or search operation; the MCP handshake and rag_status do not load it. The project reports roughly 20 ms for startup and MCP initialization, about 25 ms for later searches on a small corpus, and higher latency as the number of vectors increases.

Setup and configuration

Download a release binary for Linux x86_64, macOS Apple Silicon, or Windows x86_64, or build it with cargo install --path .. Linux release binaries from version 0.1.6 require glibc 2.39 or newer; older Linux distributions should build from source with a local toolchain.

Start the MCP process with quillrag serve. A client configuration can pass the data directory through QUILLRAG_DATA:

config.json
{
  "mcpServers": {
    "quillrag": {
      "command": "/usr/local/bin/quillrag",
      "args": ["serve"],
      "env": { "QUILLRAG_DATA": "~/.local/share/quillrag" }
    }
  }
}

The same engine is available from the CLI with index, search, status, and clear commands. File extensions can be extended with the CLI -e option or the corresponding extensions setting.

Tools and capabilities

The quillrag MCP server exposes four tools:

  • rag_index incrementally indexes a file or directory, with optional behavior to avoid pruning or force re-embedding for the selected root.
  • rag_search performs hybrid semantic and keyword retrieval and returns ranked chunks with source paths.
  • rag_status reports document and chunk totals, indexed bytes, and file-type counts.
  • rag_clear removes the complete store.

Optional PDF and OCR extraction is available to applications embedding the library with those features.

Limitations and notes

Retrieval is an exact linear scan, not ANN search. The README estimates roughly 25 ms for 1,000 chunks, 250 ms for 10,000, and 2–5 seconds for 100,000; the latter figures are extrapolated. The binary is about 105 MB, with approximately 120 MB idle RAM usage and up to about 250 MB during batch embedding.

Older indexes affected by a historical chunk-path association issue should be rebuilt in a new data directory and verified before switching clients. Explicitly use rag_clear or the CLI clear when the whole store must be removed; indexing another root does not wipe unrelated roots.

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 Quillrag

quillrag is an MCP server that connects AI clients to a local indexed corpus of notes, documents, and code. Its main tools index files incrementally, search with MiniLM dense retrieval plus BM25, report index status, and clear the store. It runs as a single Rust binary with local storage and no post-installation network path.

Install it by downloading a release binary or running `cargo install --path .` from the repository. Release builds target Linux x86_64, macOS Apple Silicon, and Windows x86_64. Linux version 0.1.6 binaries require glibc 2.39 or newer.

Configure the client to start the binary with the `serve` argument and set `QUILLRAG_DATA` to the data directory.

Yes, Cursor is named as a supported MCP client in the setup instructions. Add a server entry that uses the quillrag executable, passes `serve`, and optionally sets `QUILLRAG_DATA` for the index location.

It can store millions of chunks, but search latency increases because dense retrieval scans every vector in a single thread. The README estimates about 25 ms for 1,000 chunks and 2–5 seconds for 100,000 chunks, with the larger estimate marked as extrapolated.

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