# devrag

This local RAG server indexes Markdown files and retrieves relevant passages from natural-language queries. Use it when an agent needs to search project docs without reading whole files.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 64
- Author: tomohiro-owada
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/tomohiro-owada/devrag
- Updated: 2026-04-15
- HTML: https://affpapa.org/en/nevibecode/mcp/devrag

## What it does

devrag creates a vector index from Markdown documents and exposes semantic search through MCP. An agent can narrow results by directory or filename pattern, then index, re-index, or remove documents. A separate CLI provides search and index-management commands.

Set file locations with `document_patterns` and choose the database location with `db_path`. Documents are indexed when the server starts, and `list_documents` returns the indexed files. The app is distributed as a single binary; it downloads its models on the first run, so that step needs network access. The macOS package includes `libonnxruntime.dylib` for CoreML acceleration, which must stay beside the `devrag` binary.

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- find an API description in Markdown documentation
- limit document search by folder or filename pattern
- add a Markdown file to the index
- refresh the index for an edited document
- remove an outdated file from the index

## Example prompts
- Find the JWT authentication approach in the project docs.
- Search for user endpoint details in `docs/api` only.
- Add `./docs/api-spec.md` to the index.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
