A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
A Model Context Protocol server for code indexing, searching, and analysis.
Code Index MCP is a specialized MCP server that provides intelligent code indexing and analysis capabilities. It enables Large Language Models to interact with your code repositories, offering real-time insights and navigation through complex codebases.
This server integrates with the Model Context Protocol (MCP), a standardized way for AI models to interact with external tools and data sources.
The server supports multiple programming languages and file extensions including:
The easiest way to install and use code-index-mcp is with uvx:
uvx code-index-mcp
Alternatively, you can install via pip:
pip install code-index-mcp
After installation, you can run it as a module:
python -m code_index_mcp
Add this to your Claude settings (~/Library/Application Support/Claude/claude_desktop_config.json
):
{ "mcpServers": { "code-index": { "command": "uvx", "args": [ "code-index-mcp" ] } } }
After adding the configuration, restart Claude Desktop and the Code Index MCP tools will be available.
Here are some examples of how to use Code Index MCP with Claude:
Please set the project path to C:\Users\username\projects\my-python-project
Search the code for all occurrences of "def process_data" in Python files
Give me a summary of the main.py file in the project
Find all JavaScript files in the project
git clone https://github.com/username/code-index-mcp.git cd code-index-mcp
uv sync
uv run code_index_mcp
You can use the MCP inspector to debug the server:
npx @modelcontextprotocol/inspector uvx code-index-mcp
Contributions are welcome! Please feel free to submit a Pull Request.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!