Skip to main content
Glama
Codebase RAG MCP Server

Codebase RAG MCP Server

Codebase RAG MCP Server

A Retrieval-Augmented Generation (RAG) Model-Controller-Provider (MCP) server designed to assist AI agents and developers in understanding and navigating codebases.

Related MCP server: codebase-mcp

Overview

This tool allows you to "chat" with your code. It indexes your local directories or GitHub repositories into a vector database (Qdrant), allowing Large Language Models to perform semantic searches and retrieve accurate code snippets.

Key Features

  • πŸ” Semantic Search: Find code by meaning, not just keywords.

  • 🎯 Two-Stage RAG: 22-31% accuracy improvement with cross-encoder reranking (Qwen3-Reranker).

  • 🧠 Intelligent Chunking: Parses code into functions and classes using Tree-sitter for better context.

  • ⚑ High Performance: Supports incremental indexing and MPS acceleration on macOS.

  • 🌐 Multi-Language: Supports Python, JavaScript, TypeScript, Go, Rust, Java, C++, and more.

  • πŸ“ File Logging: Optional centralized logging with automatic rotation for debugging.

Quick Start

  1. Setup:

    ./setup.sh
  2. Index Code:

    uv run python manual_indexing.py -d "." -m clear_existing
  3. Connect: Follow the instructions from setup.sh to add the server to your MCP client (e.g., Claude Desktop).

For detailed instructions, please visit Getting Started.

Documentation

Detailed documentation is available in the docs/ directory:

License

This project is licensed under the MIT License - see the LICENSE file for details.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to semantically search and navigate code repositories using natural language, with support for multiple repos, incremental indexing, and no local install needed.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides persistent memory and local retrieval-augmented generation for AI coding agents, enabling semantic code and documentation search, lesson recording and recall, GitHub issue and PR import, and cross-project knowledge sharing.
      8
      MIT