About
Code Index MCP is an intelligent code analysis engine that indexes and searches code repositories to help AI assistants understand project structure, find relevant files, and analyze code patterns. Key features of Code Index MCP: - Intelligent indexing of code repositories with automatic parsing of file structure and dependencies - Advanced text-based search across the entire codebase to locate functions, classes, variables, and patterns - File discovery by type or programming language (TypeScript, Python, etc.) - Detailed analysis of individual files to understand code structure, imports, and relationships - Easy integration with Claude Desktop, Codex CLI, and other MCP-compatible tools through Python 3.10+ and uv
README
Code Index MCP
[](https://modelcontextprotocol.io) [](https://www.python.org/) [](LICENSE)
Intelligent code indexing and analysis for Large Language Models
Transform how AI understands your codebase with advanced search, analysis, and navigation capabilities.
Overview
Code Index MCP is a Model Context Protocol server that bridges the gap between AI models and complex codebases. It provides intelligent indexing, advanced search capabilities, and detailed code analysis to help AI assistants understand and navigate your projects effectively.
Perfect for: Code review, refactoring, documentation generation, debugging assistance, and architectural analysis.
Quick Start
🚀 Recommended Setup (Most Users)
The easiest way to get started with any MCP-compatible application:
Prerequisites: Python 3.10+ and uv
1. Add to your MCP configuration (e.g., claude_desktop_config.json or ~/.claude.json):
{
"mcpServers": {
"code-index": {
"command": "uvx",
"args": ["code-index-mcp"]
}
}
}
> Optional: append --project-path /absolute/path/to/repo to the args array so the server
> initializes with that repository automatically (equivalent to calling set_project_path
> after startup).2. Restart your application – uvx automatically handles installation and execution
3. Start using (give these prompts to your AI assistant):
Set the project path to /Users/dev/my-react-app
Find all TypeScript files in this project
Search for "authentication" functions
Analyze the main App.tsx file
*If you launch with --project-path, you can skip the first command above - the server already
knows the project location.*Codex CLI Configuration
If you are using Anthropic's Codex CLI, add the server to ~/.codex/config.toml.
On Windows the file lives at C:\Users\\.codex\config.toml:
[mcp_servers.code-index]
type = "stdio"
command = "uvx"
args = ["code-index-mcp"]
> You can append --project-path C:/absolute/path/to/repo to the args list to set the project
> automatically on startup (same effect as running the set_project_path tool).On Windows, uvx needs the standard profile directories to be present.
Keep the environment override in the same block so the MCP starts reliably:
env = {
HOME = "C:\\Users\\",
APPDATA = "C:\\Users\\\\AppData\\Roaming",
LOCALAPPDATA = "C:\\Users\\\\AppData\\Local",
SystemRoot = "C:\\Windows"
}
Linux and macOS already expose the required XDG paths and HOME, so you can usually omit the env
table there.
Add overrides only if you run the CLI inside a restricted container.
FastMCP & Discovery Manifests
fastmcp run fastmcp.json to launch the server via FastMCP with--project-path (or call the
set_project_path tool after startup) so the index boots against the right repository.
.well-known/mcp.json to share a standards-compliant MCP manifest. Clients that.well-known convention (e.g., Claude Desktop, Codex CLI) can import this file
directly instead of crafting configs manually.
.well-known/mcp.llmfeed.json when you want to expose the richer LLM Feed metadata.code-index server definition plus documentation/source links, which
helps registries present descriptions, tags, and capabilities automatically.When sharing the manifests, remind consumers to supply --project-path (or to call
set_project_path) so the server indexes the intended repository.
Typical Use Cases
Code Review: "Find all places using the old API" Refactoring Help: "Where is this function called?" Learning Projects: "Show me the main components of this React project" Debugging: "Search for all error handling related code"
Key Features
🔍 Intelligent Search & Analysis
Related MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Linkup
LinkupPlatform
Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support