Devrag logo

Devrag

by tomohiro-owada

Local MCP RAG server for semantic search across indexed Markdown files with directory and filename filters.

Install Devrag

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

Setup steps from the project

tomohiro-owada/devrag 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
    tar -xzf devrag-*.tar.gz
    
  2. 2. Install
    chmod +x devrag-*
    
  3. 3. Install
    sudo mv devrag-* /usr/local/bin/
    

Overview

The tomohiro-owada/devrag MCP server indexes local Markdown files and retrieves relevant chunks through semantic vector search. It uses multilingual-e5-small embeddings with sqlite-vec, supports directory and filename-pattern filters, and stores vectors locally. Reach for it when an agent needs targeted access to project documentation without loading complete files into context. It runs as a stdio MCP server or as a standalone CLI on macOS, Linux, and Windows.

Use cases

  • Search project Markdown documentation by natural-language question
  • Filter API documentation by directory and filename pattern
  • Index local notes for use with Claude Code
  • Refresh or remove individual documents from a local index

Key features

  • Semantic search over indexed Markdown files
  • Directory and filename glob filtering
  • Local sqlite-vec vector storage
  • Multilingual-e5-small embeddings
  • Incremental document synchronization
  • Standalone CLI and stdio MCP modes

Tools5

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

Self-reported~10 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.

25/26 checks healthy over the last 112d

Adoption & maintenance

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

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

How Devrag works

What tomohiro-owada/devrag MCP server does

The tomohiro-owada/devrag MCP server provides local retrieval-augmented generation for Markdown documentation. It finds relevant passages from indexed files using natural-language queries instead of requiring an agent to read each document in full. Results include the matching filename, chunk content, and similarity score.

The server is suited to project notes, API documentation, guides, and other Markdown collections stored on the local filesystem. It can index documents from directories, recursive glob patterns, multiple locations, or individual file paths. The repository also describes multilingual support for more than 100 languages, including Japanese and English.

How it works

At startup, DevRag reads the configured document patterns and indexes matching Markdown files. Documents are divided into chunks, embedded with the configured model, and stored in a local sqlite-vec database. Incremental synchronization updates the index as source files change rather than requiring a complete rebuild each time.

The primary retrieval operation accepts a natural-language query and an optional result limit. Searches can be narrowed by directory or by a filename glob such as api-*.md. The default embedding configuration uses multilingual-e5-small with 384 dimensions, while the default search result count is five. Compute selection can be automatic, CPU-only, or GPU-enabled, with optional CPU fallback.

Setup and configuration

Download the release binary for the target operating system, extract it, and make it available on the system path. macOS releases include libonnxruntime.dylib for CoreML acceleration; that library should remain beside the executable. Windows users can extract the provided ZIP archive to a chosen directory.

Register the executable as a stdio MCP server in ~/.claude.json or .mcp.json. A custom configuration file can be passed through the server arguments with --config. Without that argument, the application uses config.json.

A configuration can define document_patterns, db_path, chunk_size, and search_top_k, plus compute and model settings. Patterns may identify directories, recursive Markdown globs, project-specific paths, or absolute paths. Once configured, documents are indexed when the server starts.

Tools and capabilities

The tomohiro-owada/devrag MCP server exposes these documented operations:

  • query: Run semantic search over indexed content.
  • top_k: Control the maximum number of returned matches.
  • directory: Restrict a query to a directory.
  • file_pattern: Restrict matching files with a glob pattern.
  • filepath: Identify a file for indexing or document operations.

Equivalent functionality is available through the standalone CLI, which outputs JSON by default and can emit human-readable text with --output text.

Limitations and notes

The documented workflow is local and focused on Markdown files. It requires downloading the release binary and embedding model assets on first use; no hosted retrieval service is described. Search quality and index contents depend on the configured document patterns and chunk size.

CLI flags must appear before positional arguments. For example, devrag delete --dry-run file.md is valid, while placing --dry-run after the filename is documented as ineffective. The stated performance figures are measurements from a MacBook Pro M2 using 100 files totaling 1 MB, so they should not be treated as universal benchmarks.

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 Devrag

tomohiro-owada/devrag is an MCP server that connects AI agents to local Markdown documentation through semantic vector search. Its main tools query indexed content, limit result counts, filter by directory or filename pattern, and accept file paths for document operations. It uses local sqlite-vec storage and multilingual-e5-small embeddings.

Download the release binary for macOS, Linux, or Windows, extract it, and configure its path as a stdio MCP command in ~/.claude.json or .mcp.json. On macOS, keep libonnxruntime.dylib beside the binary. Documents are indexed after you configure document paths and start the server.

Set document_patterns in config.json to directory paths, recursive Markdown globs, multiple locations, or absolute paths. You can also set db_path, chunk_size, search_top_k, compute options, and model settings. Pass another configuration file with --config when running separate instances.

Yes, tomohiro-owada/devrag is documented for Claude Code through a stdio MCP configuration. Add the executable command to ~/.claude.json or .mcp.json, then place Markdown files under configured paths. Claude Code can issue natural-language searches against the resulting local index.

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 PreviewDevrag AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tomohiro-owada-devrag?style=directory)](https://allmcps.com/mcp/tomohiro-owada-devrag)
HTML Embed
<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>