clangd-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@clangd-mcpCheck my main.cpp for any compilation errors."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
clangd-mcp
MCP server for C/C++ code analysis using clangd and clang tools. Provides diagnostics, symbol search, include analysis, function listing, and code formatting.
Features
check_file — run clangd diagnostics on a C/C++ file (errors, warnings)
find_symbol — search for symbol definitions across source files (regex)
get_includes — list and analyze #include directives
list_functions — extract function/method declarations from a file
clang_format — format code using clang-format (dry-run or in-place)
Falls back to compiler syntax checking (clang++, g++, MSVC) if clangd is not available.
Related MCP server: C++ MCP Server
Requirements
Python 3.10+
Optional: clangd, clang-format, ctags (for full functionality)
Works with fallback even without clang tools installed
Installation
pip install clangd-mcpOr from source:
git clone https://github.com/ibuildrun/clangd-mcp.git
cd clangd-mcp
pip install -e .MCP Configuration
Add to your .kiro/settings/mcp.json:
{
"mcpServers": {
"clangd": {
"command": "clangd-mcp",
"disabled": false
}
}
}Or with uvx:
{
"mcpServers": {
"clangd": {
"command": "uvx",
"args": ["clangd-mcp"],
"disabled": false
}
}
}Usage Examples
> check_file "src/game/client/components/menus.cpp" "build"
> find_symbol "RenderBackground" "src"
> get_includes "src/game/client/ui.h"
> list_functions "src/game/client/components/menus.cpp"
> clang_format "src/game/client/ui.cpp" "file" trueLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceAn MCP server that exposes Language Server Protocol features to external clients, allowing access to hover information, definitions, completions, references, and rename functionalities.2039MIT
- Alicense-qualityFmaintenanceAn MCP server that provides semantic understanding of C++ codebases using libclang, allowing Claude to instantly find classes, functions, and their relationships without having to grep through thousands of files.32MIT
- Alicense-qualityAmaintenanceMCP server for the Cangjie programming language, providing documentation search and LSP-based code intelligence.4MIT
- AlicenseAqualityDmaintenanceMCP server for comprehensive code analysis, navigation, and quality assessment across 25+ programming languages.988MIT
Related MCP Connectors
MCP server for Klever blockchain smart contract development.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ibuildrun/clangd-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server