Skip to content
PluginStats

mcp-local-rag weekly downloads statistics

By shinpr (2 listings) · npm · Claude Code

Local RAG MCP Server - Easy-to-setup document search with minimal configuration

View on npm Stale · Nov 30, 2026

mcp-local-rag has 3,115 recorded weekly downloads on npm, a decrease of 23.9% over the past 30 days, ranking #1723 of 3,247 tracked listings.

Weekly downloads
3,115
Official API · Dec 5, 2026
7-day growth
+48.5%
+1K weekly downloads
30-day growth
-23.9%
-976 weekly downloads
90-day growth
-6.5%
-216 weekly downloads
Rank
#1723
▲ 53 in 7 days

About mcp-local-rag

<p align="center"> <img src="assets/banner.jpg" alt="MCP Local RAG: Search below the surface." width="600" /> </p>

MCP Local RAG

GitHub
stars npm
version License:
MIT MCP
Registry

<p align="center"> <strong>English</strong> | <a href="README.zh-CN.md">简体中文</a> | <a href="README.de.md">Deutsch</a> | <a href="README.es.md">Español</a> | <a href="README.pt-BR.md">Português (Brasil)</a> | <a href="README.fr.md">Français</a> </p>

Search private documents from an MCP client or the terminal without sending them to an embedding API.

mcp-local-rag indexes PDF, DOCX, Markdown, and text files on your machine. Search combines semantic similarity with keyword matching, so queries can match both intent and exact technical terms such as API names, class names, and error codes. Results include source passages and, where available, headings, line numbers, or page numbers so you can check and cite the original document.

No API key, Docker, Python, or external database is required. After the initial model download, text ingestion and search work offline.

Quick Start

Requirements
  • Node.js 22.20 or later
  • Internet access on first use to download the npm package and embedding model
  • A directory containing the documents you want to search

Set BASE_DIR to that directory. It is also the security boundary for file operations. Replace /absolute/path/to/your/documents below with the directory's absolute path.

Use one of the examples below, or register npx -y mcp-local-rag and set BASE_DIR using your client's MCP configuration format.

Set DB_PATH and CACHE_DIR to absolute paths as well. Relative paths resolve from the server's working directory, so starting the server from different projects creates a separate index and model cache in each.

<details> <summary>Claude Code</summary>

Run this command:

claude mcp add local-rag --scope user --env BASE_DIR=/absolute/path/to/your/documents -- npx -y mcp-local-rag
</details> <details> <summary>Codex</summary>

Add to ~/.codex/config.toml:

[mcp_servers.local-rag]
command = "npx"
args = ["-y", "mcp-local-rag"]

[mcp_servers.local-rag.env]
BASE_DIR = "/absolute/path/to/your/documents"
</details> <details> <summary>OpenCode</summary>

Add to ~/.config/opencode/opencode.json (or opencode.jsonc):

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "local-rag": {
      "type": "local",
      "command": ["npx", "-y", "mcp-local-rag"],
      "environment": {
        "BASE_DIR": "/absolute/path/to/your/documents"
      }
    }
  }
}
</details> <details> <summary>Cursor</summary>

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "local-rag": {
      "command": "npx",
      "args": ["-y", "mcp-local-rag"],
      "env": {
        "BASE_DIR": "/absolute/path/to/your/documents"
      }
    }
  }
}
</details>

Restart the client, then ask it to build the index:

Sync all documents in the configured root and wait until it finishes.

The first sync downloads the default embedding model (about 90 MB) and may take 1–2 minutes before ingestion starts. Later runs use the local cache.

Once the sync completes:

What does the API documentation say about authentication?
CLI Quick Start

To use the CLI without an MCP client:

npx mcp-local-rag ingest ./docs/
npx mcp-local-rag query "authentication API"

The CLI uses the current directory as its document root by default. Run both commands from the same directory so they use the same default index, or set BASE_DIR and DB_PATH explicitly.

Supported Content

InputHow to ingest
PDF, DOCX, TXT, MarkdownFile ingestion or directory sync
HTML already fetched by the clientingest_data
Plain text or Markdown held in memoryingest_data with a stable source identifier

HTML fetching is not built into the server. An MCP client can fetch a page and pass its HTML to ingest_data.

Excel, PowerPoint, standalone images, and source-code file extensions are not supported by file ingestion. PDFs can optionally use a local vision model to describe figures, but this is not OCR or image search.

Using the Index

Sync after adding, editing, or removing documents. For searches and follow-up reading, ask your MCP client:

Find the documented behavior of ERR_CONNECTION_REFUSED.
Read the surrounding chunks for that result.

You can also ingest a single file or HTML already fetched by the client. To refresh an existing entry, ingest the document again using the same path or source identifier. sync skips unchanged files. MCP file paths must be absolute and inside a configured document root.

PDF section headings may be inaccurate. Check the original page when you need the exact heading.

<details> <summary>MCP Tools</summary>
ToolPurpose
sync_startReconcile the index with all configured roots or one path
sync_statusPoll a running sync job
ingest_fileIngest or replace one file
ingest_dataIngest text, Markdown, or HTML already held by the client
query_documentsSearch with semantic matching and keyword boost
read_chunk_neighborsRead surrounding chunks from a search result
list_filesShow supported files and their ingestion state
delete_fileDelete an indexed file or an ingest_data item
statusShow index and search status
</details>

CLI

Use the CLI to update the index, narrow searches, or remove indexed content:…

Description from the npm listing.

  • typescript
  • mcp
  • mcp-server
  • model-context-protocol
  • rag
  • vector-search
  • semantic-search
  • embeddings
  • lancedb
  • transformers
  • huggingface
  • local-ai
  • offline
  • privacy
  • document-search
  • pdf
  • claude-code
  • cursor
  • codex
  • skills

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

mcp-local-rag weekly downloads on npm, last 90 days: 3,115 weekly downloads as of Dec 5, 2026, -6.5% over 90 days.mcp-local-ragWeekly downloads on npm · Last 90 days3,115downloads / week-6.5% over 90 days02K4K6K8K10KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
mcp-local-rag weekly downloads on npm, last 90 days: 3,115 weekly downloads as of Dec 5, 2026, -6.5% over 90 days.

7/30/90-day growth

mcp-local-rag weekly downloads growth on npm: +48.5% over 7 days, -23.9% over 30 days, -6.5% over 90 days.mcp-local-ragWeekly downloads growth on npm3,115downloads / week now7-day growth+1,017 weekly downloads+48.5%30-day growth-976 weekly downloads-23.9%90-day growth-216 weekly downloads-6.5%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
mcp-local-rag weekly downloads growth on npm: +48.5% over 7 days, -23.9% over 30 days, -6.5% over 90 days.

Ranking history

mcp-local-rag npm ranking history: currently #1723 (by weekly downloads).mcp-local-ragnpm ranking · by weekly downloads · Last 90 days#1723current rank#1200#1300#1400#1500#1600#1700#1800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 41 observations · Updated Dec 5, 2026pluginstats.com
mcp-local-rag npm ranking history: currently #1723 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 87, #3 (overall #1,723)
All npm: every listing in weekly downloads order

Listing placement

Claude Code614 listings · 31 pages · page 14, #6 (overall #266)
Claude Code: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for mcp-local-rag
Date (UTC)Weekly downloadsChange vs. previous
3,115-339
3,454+75
3,379+217
3,162+551
2,611+99
2,512+192
2,320+222
2,098+134
1,964+177
1,787-36
1,823-47
1,870+24
1,846-154
2,000—

Similar npm Claude Code plugins

All 20 mcp-local-rag alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/mcp-local-rag. First seen Oct 16, 2026; last successful collection Nov 30, 2026. See the methodology.