
Clangd MCP Server
by withoutblink
C/C++ code intelligence for AI agents powered by clangd, enabling symbol search, jump-to-definition, and diagnostics.
What it does
This server connects an AI assistant to the clangd language server, providing deep C and C++ code intelligence. It allows AI agents to navigate complex codebases, understand type hierarchies, and detect compiler errors in real-time.
Tools
find_definition: Jump-to-definition for a symbol at a given position.find_references: Find all references to a symbol across the codebase.get_hover: Retrieve type information and documentation for a symbol.get_diagnostics: Get compiler errors and warnings for a specific file.get_document_symbols: Extract a full symbol outline for a file.workspace_symbol_search: Search for symbols by name across the entire project.find_implementations: Find all implementations of a virtual method or interface.get_call_hierarchy: Analyze incoming callers or outgoing callees for a function.
Installation
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"clangd": {
"command": "/path/to/clangd-mcp-server",
"env": {
"PROJECT_ROOT": "/path/to/your/cpp/project"
}
}
}
}
Supported hosts
- Claude Desktop
Quick install
cargo build --releaseInformation
- Pricing
- free
- Published
- 5/6/2026





