1. Conduid
  2. Developer Tools
  3. Coderag
MCP server · Developer Tools

Coderag

Intelligent codebase context engine for AI coding agents. Semantic RAG from source code via MCP tools.

Unclaimed MIT last commit 7 months ago code-analysismcp-serverneo4jrag
59Fair

Scored 7 days ago · breakdown

About Coderag

Coderag is an MCP server published by maciek-O-digiaidev in the Developer Tools category: intelligent codebase context engine for AI coding agents. Semantic RAG from source code via MCP tools.

The repository has 5 stars and 0 forks, with the last commit 7 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

Claude Code
claude mcp add coderag -- npx -y @sylphx/coderag-mcp
npx
npx -y @sylphx/coderag-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (6)

coderag_backlogQuery project backlog items (ADO, Jira, ClickUp)

Parameters not published.

coderag_contextAssemble relevant context within a token budget

Parameters not published.

coderag_docsSearch indexed documentation (Markdown, Confluence, SharePoint)

Parameters not published.

coderag_explainExplain a code symbol with full surrounding context

Parameters not published.

coderag_searchSemantic + keyword hybrid search across the codebase

Parameters not published.

coderag_statusCheck index health and statistics

Parameters not published.

Ask AI

✦

Ask AI about Coderag

Powered by Claude · Grounded in docs

I know everything about Coderag. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 9 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !No dynamic code executionSource scan found eval or shell execution. Review how tool inputs reach it before granting credentials.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.1.10v0.1.10 · 26 Feb 2026Fix docker test assertions for ollama:latest and github.repository IMAGE_NAME (1f6794f) Bump all packages to 0.1.10 (46c1dfa) Fix ghcr.io image name to use github.repository (b1c06d6) Add ollama-init service for auto model pull in docker…
v0.1.9v0.1.9 · 25 Feb 2026Bump all packages to 0.1.9 (baef4c8) Enhance coderag benchmark CLI with grep and token analysis, fix BM25 duplicate ID bug (9710047) Full Changelog: https://github.com/maciek-O-digiaidev/CodeRAG/compare/v0.1.8...v0.1.9
v0.1.8v0.1.8 · 25 Feb 2026Bump all packages to 0.1.8 (0a43f34) AB#144 Add benchmark CI integration and regression detection (6e52fd0) AB#142 Add RepoBench cross-file retrieval adapter with similarity metrics (3ef34ce) AB#141 Add CodeSearchNet dataset adapter for…
v0.1.7v0.1.7 · 25 Feb 2026AB#129 AB#97 Fix multi-repo search and add .gitignore handling (bd904af) AB#103 Convert docs from Obsidian to GitHub-compatible markdown (3b55c46) AB#103 Add viewer documentation and README section (a5112ad) Full Changelog:…
v0.1.6v0.1.6 · 25 Feb 2026AB#103 Move ADO backlog config to .coderag.local.yaml (690e23b) Full Changelog: https://github.com/maciek-O-digiaidev/CodeRAG/compare/v0.1.5...v0.1.6

README

CodeRAG

Intelligent codebase context engine for AI coding agents.

CI npm Node.js TypeScript Tests

CodeRAG creates a semantic vector database (RAG) from your source code, documentation, and project backlog, then exposes it as MCP tools that give AI agents deep understanding of your entire codebase.


Features

  • AST-based code parsing -- Tree-sitter parses source code into semantically meaningful chunks (functions, classes, methods), not arbitrary line splits
  • Natural language enrichment -- Each code chunk is summarized in plain English before embedding, improving search quality by up to 10x
  • Hybrid search -- Combines vector similarity (semantic) with BM25 (keyword) using Reciprocal Rank Fusion
  • Dependency graph expansion -- After finding relevant chunks, expands results using the code dependency graph (tests, interfaces, callers)
  • Token budget optimization -- Assembles context within an agent's token budget, prioritized by relevance
  • MCP server with 6 tools -- coderag_search, coderag_context, coderag_explain, coderag_status, coderag_docs, coderag_backlog
  • Incremental indexing -- Only changed files are re-processed on subsequent runs
  • Multi-repo support -- Index and search across multiple repositories seamlessly
  • Backlog integration -- Azure DevOps, Jira, and ClickUp support
  • Documentation indexing -- Markdown, Confluence, and SharePoint
  • Multiple embedding providers -- Auto (default, manages Ollama lifecycle), Ollama, OpenAI-compatible, Voyage, OpenAI
  • Multiple vector stores -- LanceDB (embedded, zero-infra), Qdrant
  • Web viewer -- Dashboard, search playground, dependency graph, UMAP embedding explorer
  • VS Code extension -- Search panel and auto-MCP configuration
  • REST API server -- Team/cloud deployment with auth, RBAC, and audit logging
  • Local-first, privacy-first -- Everything works offline; code never leaves your machine without explicit opt-in

Architecture

flowchart LR
    subgraph Sources
        S1[Git Repos]
        S2[Backlog\nADO / Jira / ClickUp]
        S3[Docs\nConfluence / SharePoint / MD]
    end

    subgraph Ingestion["Ingestion Pipeline"]
        P[Tree-sitter\nAST Parser]
        C[AST Chunker]
        E[NL Enrichment\nOllama]
    end

    subgraph Storage["Storage Layer"]
        V[LanceDB / Qdrant\nVector Store]
        B[MiniSearch\nBM25 Index]
        G[Dependency\nGraph]
    end

    subgraph Retrieval["Retrieval Engine"]
        H[Hybrid Search\n+ RRF]
        X[Graph Expansion\n+ Re-ranking]
        T[Token Budget\nOptimizer]
    end

    subgraph Interface["Agent Interface"]
        M[MCP Server\n6 Tools]
        R[REST API]
        VS[VS Code\nExtension]
        VW[Web Viewer]
    end

    S1 & S2 & S3 --> P --> C --> E --> V & B & G
    V & B & G --> H --> X --> T
    T --> M & R & VS & VW

Quick Start

Prerequisites: Node.js >= 20, Ollama running with nomic-embed-text and qwen2.5-coder:7b models pulled.

# 1. Install
npm install -g @code-rag/cli

# 2. Initialize in your project directory
coderag init

# 3. Index your codebase
coderag index

# 4. Search
coderag search "how does authentication work"

That is it. CodeRAG will parse your code into AST chunks, enrich them with natural language summaries, create embeddings, and build a hybrid search index. Subsequent coderag index runs are incremental -- only changed files are re-processed.

Start the MCP server for AI agents

# stdio transport (default, for direct agent integration)
coderag serve

# SSE transport (for network access)
coderag serve --port 3000

Connect to Claude Desktop

Add to your Claude Desktop MCP config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "coderag": {
      "command": "npx",
      "args": ["coderag", "serve"],
      "cwd": "/path/to/your/project"
    }
  }
}

Packages

Package npm Description
@code-rag/core @code-rag/core Core library -- ingestion, embedding, retrieval, auth
@code-rag/cli @code-rag/cli CLI tool -- coderag init/index/search/serve/status/viewer
@code-rag/mcp-server @code-rag/mcp-server MCP server -- stdio + SSE transport
@code-rag/api-server @code-rag/api-server Express REST API -- team/cloud deployment
@code-rag/viewer (private) Vite SPA -- dashboard, search, graph, UMAP
code-rag-vscode (private) VS Code extension -- search panel, auto-config
@code-rag/benchmarks (private) Benchmark suite -- precision, recall, MRR

CLI Commands

Command Description
coderag init Initialize a new project (creates .coderag.yaml and .coderag/ storage)
coderag index Index the codebase (incremental by default, --full for rebuild)
coderag search <query> Hybrid search with --language, --type, --file, --top-k filters
coderag serve Start MCP server (stdio default, --port for SSE)
coderag status Show index health and statistics (--json for machine output)
coderag viewer Launch the web-based viewer UI (--port, --no-open)

Web Viewer

CodeRAG includes a built-in web viewer for visually exploring your indexed codebase.

coderag viewer

Opens http://localhost:3333 with five views:

View Description
Dashboard Index stats -- chunks, files, languages, last indexed
Chunk Browser Browse and filter all indexed chunks with source preview
Search Playground Interactive hybrid search with relevance scores
Dependency Graph Visual import/export/call graph across modules
Embedding Explorer 2D/3D UMAP scatter plot of chunk embeddings

See packages/viewer/ for details.

MCP Tools

Tool Description
coderag_search Semantic + keyword hybrid search across the codebase
coderag_context Assemble relevant context within a token budget
coderag_explain Explain a code symbol with full surrounding context
coderag_status Check index health and statistics
coderag_docs Search indexed documentation (Markdown, Confluence, SharePoint)
coderag_backlog Query project backlog items (ADO, Jira, ClickUp)

Tech Stack

Category Technology
Language TypeScript (Node.js, ESM, strict mode)
Code parsing Tree-sitter (WASM bindings)
Embedding (local) Ollama + nomic-embed-text
Embedding (API) Voyage voyage-code-3, OpenAI text-embedding-3-small
Vector DB LanceDB (embedded), Qdrant (external)
Keyword search MiniSearch (BM25)
NL enrichment Ollama (qwen2.5-coder, llama3.2)
MCP @modelcontextprotocol/sdk
CLI Commander.js
Testing Vitest (2,037 tests)
Package manager pnpm workspaces

Benchmarks

Evaluated on 55 curated queries against the CodeRAG codebase itself (easy/medium/hard, function lookups to cross-file reasoning). Grep uses keyword extraction as a baseline.

Metric grep CodeRAG Improvement
Precision@5 0.055 0.138 2.5x
Recall@10 0.485 0.636 1.3x
MRR 0.161 0.395 2.4x
nDCG@10 0.221 0.437 2.0x

Run pnpm benchmark to reproduce. See packages/benchmarks/ for the full dataset and methodology.

Documentation

Page Description
Installation Prerequisites, three installation methods
Configuration Full .coderag.yaml reference
Troubleshooting Common issues and solutions
Viewer Web viewer -- dashboard, search, graph, embeddings

See the docs/ directory for additional documentation.

Development

# Clone and install
git clone https://github.com/maciek-O-digiaidev/CodeRAG.git
cd CodeRAG
pnpm install

# Build all packages
pnpm build

# Run tests
pnpm test

# Run benchmarks
pnpm benchmark

License

MIT

README fetched from the repository 9 hours ago. The original is authoritative.

Questions

About Coderag

How do I install Coderag?

Run claude mcp add coderag -- npx -y @sylphx/coderag-mcp, then add the server to your MCP client's configuration.

Is Coderag safe to use with an AI agent?

Its trust score is 59 out of 100 (fair). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Coderag still maintained?

The last commit was 7 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.