Skip to main content
Glama
bluewings1211

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: PAMPA

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.

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    Provides semantic code search and retrieval capabilities for AI agents, enabling them to query codebases using natural language with automatic learning, hybrid search, and intelligent chunking of functions and classes.
    Last updated
    39
    29
    ISC
  • F
    license
    -
    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.
    Last updated

View all related MCP servers

Related MCP Connectors

  • Give your AI agent a persistent map of your project's structure, dependencies, and bugs.

  • Persistent memory for AI agents. Search, store, and recall across sessions.

  • Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bluewings1211/codebase-RAG'

If you have feedback or need assistance with the MCP directory API, please join our Discord server