CodeInteliMCP - Intelligent Code Analysis Server

by rahulvgmail

341 downloads Not rated yet

About

Advanced MCP server for code intelligence with multi-repository support, Tree-sitter parsing, DuckDB graph database, and ChromaDB vector search

Explore

- 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name CodeInteliMCP - Intelligent Code Analysis Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository


python setup_for_claude.py

The setup script will:
- Install all dependencies
- Configure Claude Desktop/Code
- Create data directories
- Set up environment variables


pip install mcp duckdb chromadb sentence-transformers aiofiles
pip install tree-sitter tree-sitter-python tree-sitter-javascript

{
"mcpServers": {
"code-intelligence": {
"command": "python",
"args": ["/path/to/CodeInteliMCP/code_intelligence_mcp/server_minimal.py"],
"env": {
"CODE_INTEL_PROJECT_ROOT": "/path/to/your/project"
}
}
}
}

Once configured, use these tools in Claude:

```

semantic_search(query="authentication and login functions", limit=20)

This MCP server provides the following tools:

- test_connection - Test that the server is working

- get_index_stats - Get current index statistics

- get_vector_stats - Get vector store statistics

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "codeintelimcp - intelligent code analysis server": {
            "CodeInteliMCP": {
                "command": "python",
                "args": [
                    "setup_for_claude.py"
                ]
            }
        }
    }
}

McpServers

{
    "CodeInteliMCP": {
        "command": "python",
        "args": [
            "setup_for_claude.py"
        ]
    }
}

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)

```bash

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.