code-index-mcp

code-index-mcp

16

Code Index MCP is a specialized server that facilitates code indexing, searching, and analysis using the Model Context Protocol. It supports multiple programming languages and allows developers to integrate seamlessly with tools like Claude Desktop to access advanced code insights.

Code Index MCP

A Model Context Protocol server for code indexing, searching, and analysis.

What is Code Index MCP?

Code Index MCP enables intelligent code indexing and analysis, integrating with the Model Context Protocol for AI model interactions with code repositories.

Key Features

  • Project Indexing: Builds a searchable index of code files
  • Code Search: Finds patterns and references
  • File Analysis: Provides insights on file structure
  • Smart Filtering: Ignores build directories
  • Persistent Storage: Caches indexes for performance

Supported File Types

Supports Python, JavaScript, Java, C/C++, C#, Go, Ruby, PHP, Swift, Kotlin, Rust, Scala, Shell scripts, Web files, and Documentation/Config formats.

Installation

  • Prerequisites: Python 3.8+ and uv package manager
  • With uvx: Use uvx code-index-mcp
  • With pip: Use pip install code-index-mcp, then run python -m code_index_mcp

Integration with Claude Desktop

Add configuration in claude_desktop_config.json and restart Claude Desktop for Code Index MCP tools.

Available Tools

  • Core Tools: set_project_path, search_code, find_files, get_file_summary, refresh_index, get_settings_info
  • Utility Tools: create_temp_directory, check_temp_directory, clear_settings

Example Usage with Claude

Examples include setting project paths, searching code, getting file summaries, and finding files.