MCP server for git lifecycle management, Zoekt-based code search, and cross-repo dependency analysis
Project description
code-intel-mcp
MCP server that gives AI agents deep code understanding across multiple git repositories. Combines git lifecycle management, Zoekt-based trigram code search, and cross-repo dependency analysis.
Quick Start
1. Install & Setup
# Install
pip install code-intel-mcp
# Setup (creates directories, installs Zoekt binaries)
code-intel-mcp setup --zoekt-url "https://github.com/arunveersingh/code-intel-mcp/releases/download/v0.1.0"
Or with uvx (no install needed):
uvx code-intel-mcp setup --zoekt-url "https://github.com/arunveersingh/code-intel-mcp/releases/download/v0.1.0"
2. Add to your MCP client
Kiro — add to ~/.kiro/settings/mcp.json:
{
"mcpServers": {
"code-intel-mcp": {
"command": "uvx",
"args": ["code-intel-mcp", "serve"],
"env": {
"GITLAB_URL": "https://your-gitlab.com",
"GITLAB_TOKEN": "<your-token>",
"PATH": "~/.code-intel-mcp/bin:/usr/local/bin:/usr/bin:/bin"
}
}
}
}
Claude Desktop — add to claude_desktop_config.json:
{
"mcpServers": {
"code-intel-mcp": {
"command": "uvx",
"args": ["code-intel-mcp", "serve"],
"env": {
"GITLAB_URL": "https://your-gitlab.com",
"GITLAB_TOKEN": "<your-token>",
"PATH": "~/.code-intel-mcp/bin:/usr/local/bin:/usr/bin:/bin"
}
}
}
}
3. Use it
Your AI agent now has access to 15 tools for code intelligence.
Features
- Git lifecycle — clone, pull, checkout, sync, and remove repositories
- GitLab integration — bulk-clone entire GitLab groups
- Code search — fast trigram-based search powered by Zoekt
- File browsing — read files, list directories, get repo overviews
- Dependency analysis — parse Maven, Gradle, and npm build configs
- Symbol references — word-boundary search across repos
Available Tools
| Tool | Description |
|---|---|
repo_add |
Clone and register a git repository |
repo_add_gitlab_group |
Bulk-clone all projects from a GitLab group |
repo_list |
List all managed repositories |
repo_info |
Detailed repo info (branches, tags, commits, size) |
repo_checkout |
Switch to a branch, tag, or commit SHA |
repo_pull |
Pull latest changes |
repo_sync_all |
Pull all managed repositories |
repo_remove |
Remove a repository and its index |
search_code |
Search code with language/file filters |
search_files |
Search for files by name pattern |
search_references |
Find symbol references across repos |
read_file |
Read file contents |
list_directory |
List directory contents |
get_repo_overview |
Repo summary (README, structure, build info) |
find_dependencies |
Analyze build config dependencies |
Environment Variables
| Variable | Required | Description |
|---|---|---|
GITLAB_URL |
For GitLab features | Base URL of your GitLab instance |
GITLAB_TOKEN |
For GitLab features | Personal access token with read_api scope |
ZOEKT_BINARY_URL |
For auto-install | URL prefix for Zoekt binary downloads |
How It Works
The server manages a local repository store at ~/.code-intel-mcp/:
~/.code-intel-mcp/
├── repos/ # Cloned git repositories
├── index/ # Zoekt search index
├── bin/ # Zoekt binaries (auto-installed)
└── config.json # Registry of managed repos
Every git mutation (clone, pull, checkout) automatically triggers Zoekt re-indexing, keeping search results current.
Development
git clone https://github.com/arunveersingh/code-intel-mcp.git
cd code-intel-mcp
python3 -m venv .venv && source .venv/bin/activate
pip install hatchling && python3 -m hatchling build -t wheel
pip install dist/*.whl && pip install pytest pytest-asyncio hypothesis
pytest
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file code_intel_mcp-0.1.0.tar.gz.
File metadata
- Download URL: code_intel_mcp-0.1.0.tar.gz
- Upload date:
- Size: 43.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b722dd63dd0db75b8f69e54ec280103fce3cdfa76e1146d5b4246e54a61187f
|
|
| MD5 |
c2bdf59cb72ddb1a8d160daa80fd9519
|
|
| BLAKE2b-256 |
90d36340bc7a2046d9054382abcbfc397b21c8b2cbc240fd696aa47bf3eb6036
|
File details
Details for the file code_intel_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: code_intel_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 29.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6262b916d06e9d7bb55be4ff1614db8534e97429d321471cd5d0aa534bfd1d25
|
|
| MD5 |
93be0bfffb5998764069a3b3e726e721
|
|
| BLAKE2b-256 |
9758b2b14277366bebcd3dd0fa71e65048495d9745ad03c2c4dabe9c2de9457b
|