Plugin Official

clangd LSP

C/C++ language server for Claude Code: code intelligence and diagnostics for .c files.

Author
Anthropic
Works with
Claude Code
License
Apache-2.0
Documented
Oct 2, 2026

What clangd LSP is

clangd-lsp connects the C/C++ language server to Claude Code, giving it code intelligence and diagnostics for c, .h, .cpp, .cc, .cxx, .hpp, .hxx, .C, .H files. The plugin only wires up the server; the server binary must be installed separately.

What it does

How clangd LSP plugs in: which agents run it and what it addsRUNS INYour agentClaude Codeone host documentedPLUGIN · OFFICIALclangd LSPBundles of skills, commands, hook…5 install steps1 permission notelicense: Apache-2.0WHAT IT ADDSWhat it doesRegisters the clangd language ser…Maps file extensions to the langu…Gives Claude Code code intelligen…agent → extension → new capability · from the official repository or docs
Where clangd LSP runs and what it adds, from its documentation
  • Registers the clangd language server (command: clangd --background-index) via the marketplace lspServers entry
  • Maps file extensions to the language: .c, ..h, ..cpp, ..cc, ..cxx, ..hpp, ..hxx, ..C, ..H
  • Gives Claude Code code intelligence and diagnostics for C/C++ projects

When to use it

Good fit

  • Working in a C/C++ codebase where Claude Code should use real language-server analysis
  • Wanting diagnostics and navigation from clangd without leaving Claude Code

Not for

  • Projects in other languages (it only maps the extensions listed)
  • Setups where you cannot install the clangd binary on PATH

How to install clangd LSP

You need: Claude Code; clangd binary on PATH

Install in one click

Paste the copied command into the Claude Code terminal and confirm the prompt.

  1. Install the language server binary first (the plugin does not bundle it):
  2. macOS: brew install llvm, then add /opt/homebrew/opt/llvm/bin to PATH
  3. Ubuntu/Debian: sudo apt install clangd (Fedora: sudo dnf install clang-tools-extra; Arch: sudo pacman -S clang)
  4. Windows: winget install LLVM.LLVM or download from LLVM releases
  5. Install the plugin: /plugin install clangd-lsp@claude-plugins-official

Permissions and security

What it can access

  • Launches the clangd process locally and reads the project files it analyzes

Security notes from the maintainers

  • Marketplace README: make sure you trust a plugin before installing, updating, or using it

Review the source before granting an agent access to credentials or production systems. We document what the maintainers state; we do not audit code.

Limitations

  • Requires the language server to be installed separately; the plugin does not install it

Tools it extends

Frequently asked questions

How do I install the clangd-lsp plugin for Claude Code?

Install the language server first, then run /plugin install clangd-lsp@claude-plugins-official. source

Which file extensions does the clangd-lsp plugin support?

.c, ..h, ..cpp, ..cc, ..cxx, ..hpp, ..hxx, ..C, ..H. source

Does the clangd-lsp plugin install clangd for me?

No. The README lists install commands for the server itself; the plugin only registers it with Claude Code. source

Related guides

Sources and gaps

Not stated by the maintainers: last_release not visible.

More extensions to look at