clangd-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| check_file | Run clangd diagnostics on a C/C++ file. Reports errors, warnings, and suggestions. Args: file_path: Path to the C/C++ source file. build_dir: Path to build directory with compile_commands.json. |
| find_symbolA | Search for a symbol (function, class, variable) definition across C/C++ files. Args: symbol: Symbol name to search for (supports regex). directory: Directory to search in. extensions: Comma-separated file extensions to search. |
| get_includesB | List all #include directives in a C/C++ file and check if they resolve. Args: file_path: Path to the C/C++ source file. |
| list_functionsB | Extract function/method declarations and definitions from a C/C++ file. Args: file_path: Path to the C/C++ source file. |
| clang_formatA | Format a C/C++ file using clang-format. Args: file_path: Path to the C/C++ source file. style: Formatting style (file, llvm, google, chromium, mozilla, webkit). dry_run: If True, show diff without modifying file. If False, format in place. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: symbol search, include resolution, function listing, and formatting. There is no overlap or ambiguity.
Most tools follow verb_noun pattern (find_symbol, get_includes, list_functions), but clang_format deviates slightly by starting with a noun. Overall, names are clear and predictable.
Four tools is a small but reasonable set for a focused C/C++ analysis server. It covers essential tasks without being overly thin.
The tool surface covers basic code analysis and formatting, but lacks expected features like diagnostics, code completion, or refactoring. There are notable gaps for a clangd-based server.