A clangd-based MCP server that performs C/C++ diagnostics, symbol lookup, include checks, function listing, and formatting.
Copy the install command and let the AI configure it · recommended for beginners
No copy-paste install info for "clangd-mcp" yet — see the docs or source repo.
Use clangd-mcp to analyze the following C/C++ code snippet and return errors and warnings from diagnostics, including line numbers, severity, and fix suggestions. cpp // your code
Returns detailed errors and warnings with locations and concise fix guidance for quick triage.
Use clangd-mcp to find the definition, declaration, and references of function `foo()` in the current project, and return related symbol details.
Outputs the function’s definition, declaration, and reference locations to help confirm impact scope.
Use clangd-mcp to perform include analysis first, then format the following source code, and return include issues plus the formatted output. cpp // your code
Returns include-related findings and a code file formatted to the configured style.
Developers can use this tool when many errors appear to quickly surface diagnostics and pinpoint lines plus suggested fixes, shortening debugging time.
Before renaming or refactoring functions and classes, teams can check symbol relations and function lists to avoid missing references that may cause regressions.
Before commit, teams can standardize C/C++ code style through formatting and reduce unnecessary header/include issues using include analysis.
clangd-mcp is an MCP server that uses clangd and clang tools to analyze C/C++ code, including diagnostics, symbol search, include analysis, function listing, and formatting.
The description only states dependency on clangd and clang tools. For installation, runtime, and configuration details, see the source repository.
It exposes analysis functions as an MCP server for structured calls in AI workflows; specific integration details should be checked in the source repository.
Give AI agents C++ code navigation, type inspection, and diagnostics tools.
Analyze code structure and Git history while drastically reducing AI token usage.
Search code semantically and answer questions about a codebase.
Debug C++ programs with GDB and clangd for runtime and static issues.
Delegate coding tasks to Codex via MCP with security and result checks.
Analyze, match, and transform code structures across multiple programming languages.