MCP Catalogs
Home

mcp-codebase-index

by MikeRecognex·51·Score 47

Zero-dependency MCP server indexing 17 tools for codebase navigation with persistent caching and incremental updates.

developer-toolsai-llmfile-system
7
Forks
6
Open issues
3 mo ago
Last commit
2d ago
Indexed

Overview

mcp-codebase-index is a structural codebase indexer that parses source files into metadata and exposes 18 query tools via MCP. It supports Python, TypeScript/JS, Go, Rust, and C# files with automatic incremental re-indexing in git repositories. The server uses persistent disk caching to eliminate cold-start penalties and can handle large codebases efficiently (tested on CPython with 1.1M lines).

Try asking AI

After installing, here are 6 things you can ask your AI assistant:

you:AI-assisted code navigation in large codebases without reading entire files
you:Dependency impact analysis before making changes
you:Finding symbol definitions and cross-references across files
you:Understanding code structure and relationships between components
you:How does it handle large codebases efficiently?
you:Which languages are supported?

When to choose this

Developers working with medium-to-large Python/TypeScript/Go/Rust/C# codebases who need efficient code navigation and impact analysis without paying token costs for entire file reads.

When NOT to choose this

Projects using languages not supported by this indexer, or when you need write access to codebases (this tool is read-only).

Tools this server exposes

12 tools extracted from the README
  • get_project_summary

    Get file count, packages, top classes/functions

  • list_files

    List indexed files with optional glob filter

  • get_structure_summary

    Get structure of a file or the whole project

  • get_functions

    List functions with name, lines, params

  • get_classes

    List classes with name, lines, methods, bases

  • get_imports

    List imports with module, names, line

  • get_function_source

    Get full source of a function/method

  • get_class_source

    Get full source of a class

  • find_symbol

    Find where a symbol is defined (file, line, type)

  • get_dependencies

    Get what a symbol calls/uses

  • get_dependents

    Get what calls/uses a symbol

  • get_change_impact

    Get direct + transitive dependents of a symbol

Comparable tools

mcp-symbolsmcp-ctagsmcp-grepmcp-fs

Installation

pip install "mcp-codebase-index[mcp]"

**Claude Desktop Configuration:** Add to claude_desktop_config.json:

{
  "mcpServers": {
    "codebase-index": {
      "command": "mcp-codebase-index",
      "env": {
        "PROJECT_ROOT": "/path/to/project"
      }
    }
  }
}

FAQ

How does it handle large codebases efficiently?
It uses persistent disk caching and incremental updates based on git diff, only re-parsing changed files (~1-2ms). On CPython (1.1M lines), index build takes 56s initially but loads from cache in under 1s on subsequent starts.
Which languages are supported?
Python (AST parsing), TypeScript/JS, Go, Rust, C# (regex-based), and Markdown/Text files. Other files only provide line counts.

On Hacker News

Recent discussion from the developer community.

Compare mcp-codebase-index with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.