How to install the Clangd LSP plugin in Claude Code
Make clangd available to Claude Code and use the repository’s compilation database or build configuration for project-aware diagnostics.
- Install the language server separately and make sure clangd is available on your PATH.
- Start Claude Code once to register Anthropic’s official marketplace. Then run the install command in your terminal.
- Start a new Claude Code session in a project for the language and open a source file to confirm the server loads.
Claude Code · Install in Claude Code
claude plugin install clangd-lsp@claude-plugins-officialTry a first task
Trace a changed C++ declaration through its definitions and callers. Confirm the language server reports the deliberate type mismatch in a local test fixture and clears it after the repair.
Package components
- C and C++ language server