Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Lightweight local RAG MCP server. 40x token reduction.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
作者はレジストリにインストール情報を載せていません。下にある作者のREADMEをご覧ください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント tomohiro-owada で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(1.2.0)がレジストリに届いたのは11 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
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:
tar -xzf devrag-*.tar.gz
chmod +x devrag-* sudo mv devrag-* /usr/local/bin/
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:
{
"mcpServers": { "devrag": { "type": "stdio", "command": "/usr/local/bin/devrag" } } }
Using a custom config file:
{
"mcpServers": { "devrag": { "type": "stdio", "command": "/usr/local/bin/devrag", "args": ["--config", "/path/to/custom-config.json"] } } }
mkdir documents
cp your-notes.md documents/
That's it! Documents are automatically indexed on startup.
In Claude Code:
"Search for JWT authentication methods"
Create config.json:
{
"document_patterns": [ "./documents", "./notes/**/*.md", "./projects/backend/**/*.md" ], "db_path": "./vectors.db", "chunk_size": 500, "search_top_k": 5, "compute": { "device": "auto", "fallback_to_cpu": true }, "model": { "name": "multilingual-e5-small", "dimensions": 384 } }
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 : Specify a custom configuration file path (default: config.json)Example:
devrag --config /path/to/custom-config.json
This is useful for:
{
"document_patterns": [ "./documents", // All .md files in documents/ "./notes/**/*.md", // Recursive search in notes/ "./projects/*/docs/*.md", // docs/ in each project "/path/to/external/docs" // Absolute path ] }
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:
// Basic search
search(query: "JWT authentication")
// Search only in docs/api directory search(query: "user endpoints", directory: "docs/api")
// Search only files matching pattern search(query: "deployment", file_pattern: "guide-*.md")
// Combined filters search(query: "authentication", directory: "docs/api", file_pattern: "auth*.md")
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.
# Start MCP server (default)
devrag devrag serve
devrag search "JWT authentication" devrag search "deployment" --top-k 10 --directory docs/api
devrag index ./docs/api-spec.md devrag index-code --directory ./src
devrag list devrag list --fields filename
devrag delete ./docs/old-spec.md --dry-run devrag reindex ./docs/updated-spec.md
devrag search-relations handleAuth --type calls
devrag build-dictionary
devrag schema
All commands output JSON by default. Use --output text for human-readable output.
# JSON (default, suitable for scripts and AI agents)
devrag search "authentication"
devrag search "authentication" --output text
CLI commands also accept MCP tool names with underscores:
devrag index_markdown ./docs/api.md # same as: devrag index
devrag list_documents # same as: devrag list devrag delete_document ./docs/old.md # same as: devrag delete devrag reindex_document ./docs/api.md # same as: devrag reindex
Flags must be placed before positional arguments:
# Correct
devrag delete --dry-run file.md
devrag delete file.md --dry-run
Perfect for teams with large documentation repositories:
git pull automatically updates the indexConfigure for your project's docs directory:
{
"document_patterns": [ "./docs", "./api-docs/**/*.md", "./wiki/**/*.md" ], "db_path": "./.devrag/vectors.db" }
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
# All tests
go test ./...
go test ./internal/config -v go test ./internal/indexer -v go test ./internal/embedder -v go test ./internal/vectordb -v
go test . -v -run TestEndToEnd
# Using build script
./build.sh
go build -o devrag cmd/main.go
./scripts/build-release.sh
# Create version tag
git tag v1.0.1
git push origin v1.0.1
GitHub Actions automatically:
devrag/
├── cmd/ │ └── main.go # Entry point ├── internal/ │ ├── cli/ # CLI commands │ ├── config/ # Configuration │ ├── embedder/ # Vector embeddings │ ├── indexer/ # Indexing logic │ ├── mcp/ # MCP server │ └── vectordb/ # Vector database ├── models/ # ONNX models ├── build.sh # Build script └── integration_test.go # Integration tests
Cause: Internet connection or Hugging Face server issues
Solutions:
export HTTP_PROXY=http://your-proxy:port
export HTTPS_PROXY=http://your-proxy:port
3. Manual download (see `models/DOWNLOAD.md`)
On macOS, DevRag uses Apple CoreML for GPU/Neural Engine acceleration. Requirements:
libonnxruntime.dylib must be in the same directory as the devrag binaryIf CoreML is not available, DevRag falls back to CPU automatically. To tune performance:
# Adjust CPU thread count (default: 4)
DEVRAG_THREADS=4 devrag
To explicitly force CPU mode:
{
"compute": { "device": "cpu", "fallback_to_cpu": true } }
go env CGO_ENABLEDchunk_size (default: 500)MIT License
Issues and Pull Requests are welcome!
Special thanks to all contributors who helped improve DevRag:
--config CLI flag (#3)Your contributions make DevRag better for everyone!
Claude Code用の無料ローカルRAG - トークン&時間を節約
DevRa
冒頭だけを表示しています。続きはリポジトリで読めます