Claude Code LSP Plugins: Set Up Code Intelligence for Your Team

David IyaDavid Iya November 24, 2026 9 min read
A brass magnifying glass on an unfolded street map with colored pins joined by red thread, a brass compass beside it, on a dark walnut desk in moody side light
Original image, Claude Code Club

What a Claude Code LSP plugin does

A Claude Code LSP plugin connects Claude to a language server through the Language Server Protocol, the same thing that gives your editor red squiggles and go-to-definition. With one installed, Claude sees the type errors, missing imports and syntax errors its own edits introduce, right after each edit and before you run a build. It also stops hunting for a function by searching text and looks it up by symbol instead.

Without one, Claude finds out a change broke the types when the build or the tests fail, which costs an extra round trip and a pile of error output in context. With one, the error comes back attached to the edit that caused it. For any typed codebase, I would install this before any other plugin.

What Claude gains: diagnostics and the LSP tool

Two things switch on once the language server is running.

  • Diagnostics after edits. Each time Claude edits or writes a file the server handles, it gets the errors and warnings the server reports. In the conversation you see a one-line summary under the edit. Press Ctrl+O to expand it and read the issues yourself.
  • The LSP tool. Claude can jump to a symbol's definition, find every reference to it, get type information at a position, list the symbols in a file, search for a symbol by name across the workspace, find implementations of an interface and trace call hierarchies. The tool is read-only, so it never changes a file.

The LSP tool stays inactive until a code intelligence plugin for your language is installed. If the language server for a file cannot start, each LSP call on that file returns an error instead of a result.

Install a Claude Code LSP plugin in three steps

The plugin only tells Claude Code which command starts the language server and which file extensions it handles. It does not ship the server. So the order matters: binary, then plugin, then a check.

Official code intelligence plugins and the binary each one needs

LanguagePluginBinary to install
C/C++clangd-lspclangd
C#csharp-lspcsharp-ls
Gogopls-lspgopls
Javajdtls-lspjdtls
Kotlinkotlin-lspkotlin-lsp
Liquidliquid-lspshopify, from the Shopify CLI
Lualua-lsplua-language-server
PHPphp-lspintelephense
Pythonpyright-lsppyright-langserver
Rubyruby-lspruby-lsp
Rustrust-analyzer-lsprust-analyzer
Swiftswift-lspsourcekit-lsp
TypeScript and JavaScripttypescript-lsptypescript-language-server
  • Install the binary from the table. For TypeScript that is npm install -g typescript-language-server typescript. Then check it is on your PATH, for example with which typescript-language-server, or Get-Command typescript-language-server in PowerShell.
  • Install the plugin. In the desktop app, open a local session in the Code tab, click the + button next to the prompt box, choose Add plugins, pick the plugin and choose a scope. In a terminal session, run /plugin install typescript-lsp@claude-plugins-official, swapping in the plugin for your language.
  • Confirm the server starts. It launches the first time Claude edits a file with a matching extension. Ask Claude to introduce a type error in that language and then fix it, and look for Found N new diagnostic issues in M files under the edit.

Every plugin in that table comes from the official marketplace. All of them are maintained by Anthropic except liquid-lsp, which Shopify maintains. A plugin installed at user scope in the desktop app is also available in the terminal and the VS Code extension on the same computer, because all three read the same settings files.

When the diagnostics line never appears

The usual cause is a binary that is missing or not on the PATH of the process that started Claude Code. Open /plugin and go to the Errors tab.

Code intelligence problems and the fix

What you seeWhat it meansFix
Executable not found in $PATH: "<binary>" in the Errors tabThe plugin is installed but the language server binary is not reachableInstall the binary, confirm it is on PATH, then start a new session
No diagnostics and no Errors rowThe server may have failed for another reasonStart with claude --debug and look for LSP server <name> failed to start: <reason>
Memory climbs while you workServers such as rust-analyzer and pyright index the whole projectDisable the plugin with /plugin disable <plugin> and let Claude use its built-in search
Unresolved imports for internal packages in a monorepoThe language server is not configured for the workspaceNothing to fix on the Claude Code side. The diagnostics do not stop Claude from editing

One detail catches people: if you install the binary into a directory that is not on the PATH of the shell or app that started Claude Code, the server still will not start. Open a new session from somewhere that can see it.

Answer the LSP plugin recommendation dialog

If a language server binary is already on your PATH and the matching plugin is not installed, Claude Code offers to install it in a dialog titled LSP plugin recommendation, after Claude edits a matching file. It appears at most once per session, prefers the official marketplace's plugin when several marketplaces offer one, and never appears in cloud sessions.

The four choices and what they do

ChoiceResult
Yes, installInstalls the plugin for your user account. Start a new session to load the server
Not now, or EscCloses the dialog. A later session can offer it again
Never for this pluginStops offering that plugin, still offers others
Disable all LSP recommendationsStops the dialog for every language

Leave it alone for 30 seconds and it closes and counts as ignored. The count carries across sessions, and after five ignored dialogs Claude Code stops recommending plugins altogether. To turn recommendations back on, remove the lspRecommendationDisabled and lspRecommendationIgnoredCount keys from ~/.claude.json. To get one plugin offered again, remove its name@marketplace id from the lspRecommendationNeverPlugins list in the same file.

Write your own LSP plugin for an unsupported language

If your language is not in the table, write a small plugin with a .lsp.json file at the plugin root. The file maps each server name straight to its config, with no wrapper object.

A minimal Go example is an object with one key, gopls, whose value sets command to gopls, args to ["serve"] and extensionToLanguage to { ".go": "go" }. That is the whole file.

The fields that matter most

FieldRequiredWhat to know
commandYesThe binary name. Put arguments in args, not in this string
extensionToLanguageYesAt least one entry, and each key starts with a dot, such as ".go"
requestTimeoutNoDefaults to 60000 milliseconds. Needs Claude Code v2.1.288 or later
restartOnCrashNoDefaults to true. Set false to leave a crashed server stopped
diagnosticsNoDefaults to true. Set false to keep navigation but stop pushing diagnostics into context
  • claude plugin validate does not read .lsp.json. If any entry is invalid, the whole file is skipped at load and the Errors tab shows Invalid LSP server config for ".lsp.json". Check that tab after every change.
  • Every config is a strict object. An unknown key fails validation, so a typo in a field name takes the server down rather than being ignored.
  • Each file extension gets one server. If two enabled servers claim the same extension, the first one registered wins and the Errors tab warns that the other is not used for those files.
  • The server's stdout is read as protocol messages only. Send its logs to stderr.
  • Load it for one session while you test with claude --plugin-dir ./my-lsp-plugin, then publish it to your marketplace.

My rule here is simple: if an official plugin covers the language, install that and do not write your own. The official ones are maintained, and yours becomes one more thing someone on your team has to keep working.

Roll code intelligence out to a team

I call this the CCC Type-Check Loop: Claude edits, the language server reports, Claude fixes, all before a human or a CI run sees the change. Getting a whole team onto it takes three pieces.

  • Ship the plugin. Add the right code intelligence plugins to enabledPlugins in managed settings, the same mechanism covered in Claude Code managed plugins, or put them in a role bundle as shown in the dependencies post.
  • Ship the binary. The plugin cannot install the language server for you, so add it to your machine setup script or dev container. A managed plugin with a missing binary just fills the Errors tab.
  • Keep your read rules honest. Read deny rules such as Read(~/secrets/**) apply to the LSP tool as well as Read, Grep and Glob, so files you have blocked stay blocked from code navigation too.

After rollout, the plugin usage report in Claude Code plugin usage counts a language server plugin as used whenever it delivers diagnostics or answers a navigation request, so an active one will not be flagged as dead weight.

Free Claude Code drops, straight to your inbox

Short, practical drops on skills, MCP, agents, prompts, and more. No spam, unsubscribe anytime.

Frequently asked questions

Does Claude Code support LSP?

Yes, through code intelligence plugins. Each one connects Claude Code to a language server, which gives Claude diagnostics after every edit and a read-only LSP tool for definitions, references, type information and symbol search.

How do I install a Claude Code LSP plugin?

Install the language server binary first and confirm it is on your PATH. Then install the plugin, either from the desktop app's plugin browser or with /plugin install typescript-lsp@claude-plugins-official in a terminal session, using the plugin for your language.

Why is my Claude Code language server not starting?

Usually the binary is missing or not on the PATH of the process that started Claude Code. The /plugin Errors tab shows Executable not found in $PATH with the binary's name. Install it and start a new session.

Which languages have official Claude Code LSP plugins?

C and C++, C#, Go, Java, Kotlin, Liquid, Lua, PHP, Python, Ruby, Rust, Swift, and TypeScript and JavaScript. For anything else, write a plugin with a .lsp.json file that names the server command and the file extensions it handles.

Do LSP plugins work in cloud sessions?

No. Cloud sessions do not start plugin language servers, so Claude gets no diagnostics or code navigation there. They work in sessions running on your own machine.

How do I turn the LSP plugin recommendation back on?

Remove the lspRecommendationDisabled and lspRecommendationIgnoredCount keys from ~/.claude.json. If you chose Never for one plugin, remove its name@marketplace id from lspRecommendationNeverPlugins in the same file.

Last reviewed by David Iya on November 24, 2026

David Iya

Written by

David Iya

Forbes 30 Under 30 · Y Combinator

Keep reading

Claude CodeTroubleshooting

"claude: command not found": how do I fix it?

The install worked, but your terminal does not know where Claude Code lives. The fix is to add its folder to your PATH, which takes two commands on a Mac and two on Windows. Here is the cause, the fix for each system, and how to confirm it worked.

Duncan Rogoff 6 min
Read article
Claude CodeMCP

Which MCP servers are worth installing, and how do I set them up?

An MCP server connects Claude Code to another app so it can read and act there directly. Setup is one command, and the real cost of having many is smaller than it used to be. Here are the servers that appear in Anthropic's own docs, the exact add command for each, and how to check they work.

Duncan Rogoff 9 min
Read article

Ready to build it yourself?

Join Claude Code Club, the #1 community for learning claude code, for $9/month.

← Back to the blog