Lightweight local RAG server for fast semantic vector search over markdown files with token-efficient retrieval.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Devrag.
queryCallable MCP tool function
top_kCallable MCP tool function
directoryCallable MCP tool function
file_patternCallable MCP tool function
filepathCallable MCP tool function
Free Local RAG for Claude Code - Save Tokens & Time
ζ₯ζ¬θͺηγ―γγ‘γ | Japanese Version
DevRag is a lightweight RAG (Retrieval-Augmented Generation) system designed specifically for developers using Claude Code. Stop wasting tokens by reading entire documents - let vector search find exactly what you need.
When using Claude Code, reading documents with the Read tool consumes massive amounts of tokens:
With DevRag:
Get the appropriate binary from Releases:
| Platform | File |
|---|---|
| macOS (Apple Silicon) | devrag-macos-apple-silicon.tar.gz |
| macOS (Intel) | devrag-macos-intel.tar.gz |
| Linux (x64) | devrag-linux-x64.tar.gz |
| Linux (ARM64) | devrag-linux-arm64.tar.gz |
| Windows (x64) | devrag-windows-x64.zip |
macOS/Linux:
Note: macOS releases include
libonnxruntime.dylibfor CoreML GPU acceleration. Keep it in the same directory as thedevragbinary.
Windows:
C:\Program Files\devrag\)Add to ~/.claude.json or .mcp.json:
Using a custom config file:
That's it! Documents are automatically indexed on startup.
In Claude Code:
Create config.json:
document_patterns: Array of document paths and glob patterns
"./documents""./docs/**/*.md" (recursive)documents_dir field is still supported (automatically migrated)db_path: Vector database file pathchunk_size: Document chunk size in characterssearch_top_k: Number of search results to returncompute.device: Compute device (auto, cpu, gpu)compute.fallback_to_cpu: Fallback to CPU if GPU unavailablemodel.name: Embedding model namemodel.dimensions: Vector dimensions--config <path>: Specify a custom configuration file path (default: config.json)Example:
This is useful for:
DevRag provides the following tools via Model Context Protocol:
Perform semantic vector search with optional filtering
Parameters:
query (string, required): Search query in natural languagetop_k (number, optional): Maximum number of results (default: 5)directory (string, optional): Filter to specific directory (e.g., "docs/api")file_pattern (string, optional): Glob pattern for filename (e.g., "api-.md", ".md")Returns: Array of search results with filename, chunk content, and similarity score
Examples:
Index a markdown file
Parameters:
filepath (string): Path to the file to indexList all indexed documents
Returns: Document list with filenames and timestamps
Remove a document from the index
Parameters:
filepath (string): Path to the file to deleteRe-index a document
Parameters:
filepath (string): Path to the file to re-indexDevRag can also be used as a standalone CLI tool. All MCP tools are available as CLI commands.
All commands output JSON by default. Use --output text for human-readable output.
CLI commands also accept MCP tool names with underscores:
Flags must be placed before positional arguments:
Perfect for teams with large documentation repositories:
git pull automatically updates the indexConfigure for your project's docs directory:
Environment: MacBook Pro M2, 100 files (1MB total)
| Operation | Time | Tokens |
|---|---|---|
| Startup | 2.3s | - |
| Indexing | 8.5s | - |
| Search (1 query) | 95ms | ~300 |
| Traditional Read | 25s | ~12,000 |
260x faster search, 40x fewer tokens
GitHub Actions automatically:
Cause: Internet connection or Hugging Face server issues
Solutions:
models/DOWNLOAD.md)Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/tomohiro-owada-devrag)<a href="https://allmcps.com/mcp/tomohiro-owada-devrag"><img src="https://allmcps.com/api/badge/tomohiro-owada-devrag?style=directory" alt="Devrag on AllMCPs" /></a>