Codebase Index

v1.0.0Developer Toolsstable

Enables semantic search across your codebase using Google's Gemini embeddings and Qdrant Cloud vector storage. Supports 15+ programming languages with smart code chunking and real-time file change monitoring.

ai-codingast-parserclaude-codecode-analysiscode-navigation
Share:
52
Stars
0
Downloads
0
Weekly
0/5

What is Codebase Index?

Codebase Index is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables semantic search across your codebase using google's gemini embeddings and qdrant cloud vector storage. supports 15+ programming languages with smart code chunking and real-time file change mon...

Enables semantic search across your codebase using Google's Gemini embeddings and Qdrant Cloud vector storage. Supports 15+ programming languages with smart code chunking and real-time file change monitoring.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables semantic search across your codebase using Google's

Use Cases

Search your codebase semantically using Gemini embeddings. Support 15+ languages with smart chunking and real-time file monitoring.
NgoTaiCo

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-codebase-index

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Codebase Index

MCP Codebase Index is a semantic search server that indexes your entire codebase using Google Gemini embeddings stored in a Qdrant Cloud vector database. It supports 15+ programming languages through AST-aware chunking, monitors files for changes in real time, and provides ~90% faster incremental re-indexing compared to full scans. Developers use it to ask natural-language questions like 'find the authentication logic' and receive semantically relevant code segments, or to generate interactive 2D/3D visualizations of codebase structure.

Prerequisites

  • Python 3.9+ or Node.js for running the server via npx
  • A Google AI Studio account and Gemini API key (GEMINI_API_KEY)
  • A Qdrant Cloud account with a cluster URL and API key
  • An MCP-compatible client such as Claude Desktop or VS Code with Copilot
1

Obtain required API keys

Create a Gemini API key at Google AI Studio (aistudio.google.com) and create a free Qdrant Cloud cluster at cloud.qdrant.io. Note the cluster URL and API key from the Qdrant dashboard.

2

Install the MCP server

Install the package globally or run it directly via npx. The official package is published under the @ngotaico scope.

npx -y @ngotaico/mcp-codebase-index
3

Configure environment variables

Set the four required environment variables: your repository path, Gemini API key, Qdrant cluster URL, and Qdrant API key. Optional variables let you customize the collection name, batch size, and embedding model.

4

Add the server to your MCP client

Edit claude_desktop_config.json to add the server entry with all required environment variables.

5

Trigger initial indexing

After connecting, ask the assistant to index your project. The server will chunk code using AST parsing, generate embeddings via Gemini, and store them in Qdrant. Subsequent runs use incremental updates.

Codebase Index Examples

Client configuration

Add this to your claude_desktop_config.json. Replace the placeholder values with your actual paths and API keys.

{
  "mcpServers": {
    "codebase-index": {
      "command": "npx",
      "args": ["-y", "@ngotaico/mcp-codebase-index"],
      "env": {
        "REPO_PATH": "/absolute/path/to/your/project",
        "GEMINI_API_KEY": "AIzaSyC...",
        "QDRANT_URL": "https://your-cluster.gcp.cloud.qdrant.io:6333",
        "QDRANT_API_KEY": "your-qdrant-api-key",
        "WATCH_MODE": "true",
        "BATCH_SIZE": "50"
      }
    }
  }
}

Prompts to try

Semantic search and visualization prompts you can use after indexing your codebase.

- "Find the authentication and JWT validation logic in the codebase"
- "Where is database connection pooling configured?"
- "Show me all error handling patterns used across the project"
- "Visualize my codebase to see how modules are clustered"
- "Check the indexing status and tell me how many files have been processed"

Troubleshooting Codebase Index

Indexing stalls or produces no results

Verify REPO_PATH is an absolute path and that the directory exists. Check that GEMINI_API_KEY is valid by testing it in Google AI Studio. Qdrant connection errors will appear in the server logs—confirm the QDRANT_URL includes the port (6333).

Search returns irrelevant results

Enable PROMPT_ENHANCEMENT=true to let the server improve your queries before embedding. Also ensure the initial index is complete by checking indexing status before running searches.

File changes are not picked up automatically

Set WATCH_MODE=true in your environment variables to enable real-time file monitoring. Without this, the index reflects only the state at the last manual indexing run.

Frequently Asked Questions about Codebase Index

What is Codebase Index?

Codebase Index is a Model Context Protocol (MCP) server that enables semantic search across your codebase using google's gemini embeddings and qdrant cloud vector storage. supports 15+ programming languages with smart code chunking and real-time file change monitoring. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Codebase Index?

Follow the installation instructions on the Codebase Index GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Codebase Index?

Codebase Index works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Codebase Index free to use?

Yes, Codebase Index is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-codebase-index": { "command": "npx", "args": ["-y", "mcp-codebase-index"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Codebase Index?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides