jakubstuglik

Hybrid Code RAG MCP — AI skill for Claude Code

AI community

Local code search engine for AI agents: incremental indexer, hybrid retrieval (BM25 + dense embeddings in Qdrant, RSF, per-language reranker) and an MCP server.

How to install Hybrid Code RAG MCP

This entry records only its repository, not the path inside it, so there is no exact command to give. Open jakubstuglik/hybrid-code-rag-mcp and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Hybrid Code RAG MCP does

Local code search engine for AI agents: incremental indexer, hybrid retrieval (BM25 + dense embeddings in Qdrant, RSF, per-language reranker) and an MCP server. Tree-sitter chunking, git branch/tag overlays. Java, Kotlin, Groovy, C#, Go, PHP, Python, JS/TS, C/C++, Delphi/Pascal, SQL and more.

Alternatives in AI

  • Xerj — Local-first search engine and MCP server for AI agents 12.5k ★
  • LLM Aided OCR — Enhances Tesseract OCR output using LLMs (local or API) for error correction, smart chunking, and markdown for 3k ★
  • Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★

README

hybrid-code-rag-mcp: local code search engine for AI agents: indexer, hybrid exact + semantic retrieval and MCP server

License: Apache-2.0 Python 3.12 MCP server Qdrant 13 languages parsed by syntax

**A local code search engine for AI agents: an incremental indexer, hybrid (dense + BM25) retrieval and an MCP server.** Code is chunked along its syntax and indexed in Qdrant with BM25 and dense vectors; after the first build, each refresh re-embeds only the files changed since the last indexed commit. The MCP server is one interface on top of the indexer and the retrieval engine: it serves search to Claude Code, Cursor, Cline, OpenCode, Grok Build or any MCP client as a tool.

Quickstart

A Docker Compose stack (CPU by default, optional NVIDIA GPU) indexes a sample repo and serves MCP at `http://localhost:8125/mcp` in a few minutes. Only the MCP port is published.

[![Quickstart: start the stack and run a first search](docs/media/quickstart-cpu.gif)](QUICKSTART.md)

See [QUICKSTART.md](QUICKSTART.md) for CPU and GPU start, indexing your own repository, and connecting a client.

At a glance

Search BM25 + dense embeddings in one query, fused with min-max score fusion (default), Reciprocal Rank Fusion or distribution-based score fusion (hybrid fusion, `HYBRID_FUSIO