Code Intelligence MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Code Intelligence MCP Server
Hybrid ctags + clangd code intelligence for C/C++ projects, exposed as an MCP server. Gives AI coding assistants (Claude, Copilot, Gemini) instant symbol lookup and precision type information.
Architecture
Two tiers of intelligence, automatically selected:
Tier | Backend | Speed | Tools |
Tier 1 | Universal Ctags | Instant (~0.1s) |
|
Tier 2 | clangd LSP | Slower (~1-5s) |
|
Tier 1 builds a JSON symbol index from ctags output and keeps it cached. Tier 2 launches clangd as a subprocess and communicates via LSP protocol. Both tiers are optional — the server works with just ctags, just clangd, or both.
Related MCP server: Sigil MCP Server
Quick Start
# Install
pip install -e .
# Run (from your project root)
code-intel
# Or configure as an MCP serverMCP Configuration
Add to your MCP client config (Claude Code, Antigravity, etc.):
{
"mcpServers": {
"codeintel": {
"command": "python",
"args": ["-m", "code_intel_server"],
"cwd": "/path/to/your/project",
"env": {
"PROJECT_ROOT": "/path/to/your/project",
"SOURCE_DIR": "src",
"PYTHONUTF8": "1"
}
}
}
}Environment Variables
Variable | Default | Purpose |
|
| Root of the C/C++ project |
|
| Subdirectory containing source files (ctags scans here) |
|
| Directory containing |
|
| Path to the clangd binary |
|
| Path to the Universal Ctags binary |
Tools
Tier 1 (ctags — instant)
find_definition— Find where a symbol is defined. Supports qualified names (MyNamespace::MyClass), optional kind filter.find_references— Find all references to a symbol across the codebase. Uses ctags scope/signature matching.list_symbols— List all symbols in a specific file, optionally filtered by kind.search_symbol— Fuzzy search for symbols by name pattern (substring or glob).rebuild_index— Force a full ctags re-scan (normally auto-detects staleness).
Tier 2 (clangd — precision)
hover_info— Get full type information, documentation, and value for a symbol at a specific file:line location.class_hierarchy— Show base classes and derived classes for a type.call_hierarchy— Show what calls a function and what it calls.
Requirements
Python 3.10+
Universal Ctags — for Tier 1 (install via package manager or from source)
clangd — for Tier 2 (optional, usually bundled with LLVM/Clang)
FastMCP — Python MCP framework
How It Works
On first run, ctags scans
SOURCE_DIR/recursively and builds a JSON symbol indexThe index is cached at
.cache/code_intel/tags.jsonfor instant restartsStaleness is auto-detected by comparing file mtimes against cache age
clangd is launched on-demand when Tier 2 tools are called, using
compile_commands.jsonfor accurate type resolutionAll results are returned as structured JSON via MCP tool responses
Performance
Tested on a 15,000-commit C++ project (~500K lines):
Index build: ~3 seconds (cached restart: instant)
Symbol lookup: <100ms
clangd hover: 1-5 seconds (depends on TU complexity)
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Ask a codebase what calls what: search, blast radius, paths between symbols, and diffs.
AI-powered codebase analysis — call graphs, security, dead code, complexity. 150+ tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides fast C++ code intelligence for LLMs by combining Tree-sitter parsing with clangd LSP for efficient symbol lookup, navigation, and hierarchy analysis. It optionally integrates Google Gemini AI to deliver deeper architectural insights and automated documentation summaries.24MIT
- AlicenseNot gradedqualityDmaintenanceProvides IDE-like code navigation and search for local repositories, enabling AI assistants to perform symbol search, trigram indexing, and semantic navigation.AGPL 3.0
- AlicenseAqualityDmaintenanceProvides C++ code intelligence tools for AI agents via the Model Context Protocol, enabling symbol navigation, type information, and diagnostics.951Mozilla Public 2.0
- AlicenseNot gradedqualityCmaintenanceBridges AI assistants to clangd for C/C++ code intelligence, providing tools for symbol search, definitions, references, type info, and more.2MIT