# tomohiro-owada/devrag [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/tomohiro-owada/devrag  
**GitHub Stars:** 64  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tomohiro-owada-devrag

## Description
Lightweight local RAG MCP server for semantic vector search over markdown documents. Reduces token consumption by 40x with sqlite-vec and multilingual-e5-small embeddings. Supports filtered search by directory and filename patterns.

## Tools
Capabilities this server exposes over MCP:

- **query**
- **top_k**
- **directory**
- **file_pattern**
- **filepath**

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/tomohiro-owada/devrag), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
tar -xzf devrag-*.tar.gz
```

2. Install:

```sh
chmod +x devrag-*
```

3. Install:

```sh
sudo mv devrag-* /usr/local/bin/
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/tomohiro-owada-devrag/readme_

