Codebase RAG MCP Server
Allows indexing and searching GitHub repositories for code semantic search.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Quick Links
Getting Started: Installation and Basic Usage.
User Manual: Tutorials, Features, and Advanced Usage.
Configuration: Environment variables and performance tuning.
Architecture: System design and high-level overview.
Contributing: Developer setup and guidelines.
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
Setup:
./setup.shIndex Code:
uv run python manual_indexing.py -d "." -m clear_existingConnect: Follow the instructions from
setup.shto 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β¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Codebase memory for AI coding agents: files, lines, callers and tests for any public GitHub repo.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to index and search codebases using semantic search powered by multiple embedding providers (OpenAI, VoyageAI, Gemini, Ollama) and vector database storage.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to semantically search and navigate code repositories using natural language, with support for multiple repos, incremental indexing, and no local install needed.-
- AlicenseNot gradedqualityDmaintenanceEnables semantic code search and AI-powered chat for local codebases, with support for multiple AI providers and a plugin system.35 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides 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.8MIT