CodeInteliMCP - Intelligent Code Analysis Server
LocalAbout CodeInteliMCP - Intelligent Code Analysis Server
CodeInteliMCP is an MCP server for analyzing code across multiple repositories. It combines syntax parsing, graph queries, and vector search for code navigation and impact analysis.
Key features
- 01Multi-repository indexing
- 02Symbol and usage search
- 03Semantic code search
- 04Dependency and impact analysis
- 05Incremental indexing
- 06Multi-language parsing
Use cases
- 01Find references to a function across repositories
- 02Search code using natural-language descriptions
- 03Inspect dependencies before changing a symbol
MCP support
The MCP server exposes repository management, indexing, and code-analysis tools to MCP clients, including symbol lookup, usage search, and semantic search.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMECodeInteliMCP - Intelligent Code Analysis Server
An advanced MCP (Model Context Protocol) server that combines Tree-sitter parsing with graph databases and vector search for lightning-fast code intelligence across multiple repositories.
🚀 Features
- Multi-Repository Support: Manage and analyze multiple codebases simultaneously
- Instant Usage Search: Find where functions/classes are used in milliseconds
- Semantic Code Search: Find similar code patterns using vector embeddings
- Dependency Analysis: Visualize and query code dependencies
- Impact Analysis: See what breaks when you change something
- Auto-indexing: Smart incremental updates as you code
- Multi-language Support: Python, JavaScript, TypeScript, Go, Rust, and more
🏗 Architecture
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Claude Code │────▶│ MCP Server │────▶│ Tree-sitter │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│ │
▼ ▼
┌──────────────┐ ┌────────────────┐
│ DuckDB │ │ ChromaDB │
│ (Graph) │ │ (Vectors) │
└──────────────┘ └────────────────┘
🎯 Core Capabilities
1. Graph Queries (via DuckDB)
- Function call relationships
- Import dependencies
- Class inheritance trees
- Variable usage tracking
2. Vector Search (via ChromaDB)
- Semantic code similarity
- Natural language code search
- Pattern detection
- Code duplication finding
3. Real-time Analysis (via Tree-sitter)
- On-demand parsing
- Syntax validation
- Code structure analysis
- AST manipulation
🚦 Quick Start
Automated Setup (Recommended)
# Clone the repository
git clone https://github.com/rahulvgmail/CodeInteliMCP.git
cd CodeInteliMCP
# Run the setup script
python setup_for_claude.py
The setup script will:
- Install all dependencies
- Configure Claude Desktop/Code
- Create data directories
- Set up environment variables
Manual Setup
# Install dependencies
pip install mcp duckdb chromadb sentence-transformers aiofiles
pip install tree-sitter tree-sitter-python tree-sitter-javascript
# Add to Claude Desktop config (~/.config/claude/claude_desktop_config.json):
{
"mcpServers": {
"code-intelligence": {
"command": "python",
"args": ["/path/to/CodeInteliMCP/code_intelligence_mcp/server_minimal.py"],
"env": {
"CODE_INTEL_PROJECT_ROOT": "/path/to/your/project"
}
}
}
}
🛠️ Available Tools
This MCP server provides the following tools:
Repository Management
-
add_repository- Add a new repository to trackname(string, required): Repository namepath(string, required): Path to repositorydescription(string, optional): Repository descriptionmake_active(boolean, optional): Set as active repository
-
list_repositories- List all tracked repositories -
set_active_repository- Set the active repository for operationsname(string, required): Repository name to make active
-
index_repository- Index an entire repositoryrepository_name(string, required): Name of repository to indexinclude_patterns(string, optional): Comma-separated file patterns to includeexclude_patterns(string, optional): Comma-separated file patterns to exclude
Code Analysis
-
index_file- Index a single file into the code graphfile_path(string, required): Path to the file to index
-
find_symbol- Find a symbol by namename(string, required): Symbol name to search forfile_path(string, optional): Limit search to specific file
-
find_usages- Find all usages of a symbolname(string, required): Symbol name to find usages forfile_path(string, optional): Limit search to specific file
-
semantic_search- Search for code using semantic similarityquery(string, required): Natural language search querylimit(integer, optional): Maximum number of results (default: 10)symbol_types(string, optional): Comma-separated list of symbol types to filter
-
find_similar_code- Find code similar to a given symbolsymbol_name(string, required): Reference symbol namefile_path(string, optional): File containing the reference symbol
System Tools
-
test_connection- Test that the server is working -
get_index_stats- Get current index statistics -
get_vector_stats- Get vector store statistics
📖 Usage Examples
Once configured, use these tools in Claude:
# Add a new repository
add_repository(name="my-app", path="/path/to/my-app", description="Main application")
# Index the repository
index_repository(repository_name="my-app", include_patterns="**/*.py,**/*.js")
# Search for authentication functions
semantic_search(query="authentication and login functions", limit=20)
# Find where a class is used
find_usages(name="UserService")
# Find similar implementations
find_similar_code(symbol_name="login_user")
📚 Documentation
- USER_GUIDE.md: Complete setup and usage guide
- ARCHITECTURE.md: Technical architecture details
- IMPLEMENTATION_PLAN.md: Development roadmap
📊 Performance Targets
- Initial indexing: < 1 minute for 100k LOC
- Incremental updates: < 1 second per file
- Usage queries: < 50ms
- Semantic search: < 200ms
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.