Skip to content

Claude Code LSP plugins that don't install themselves

LSP plugins in Claude Code give the agent what an editor gives a developer: go to definition, find references, type hints and error diagnostics. Instead of searching files as plain text, Claude asks a language server (Language Server Protocol) and gets an answer based on real code analysis.

In theory, you install a plugin from the official marketplace and everything should just work. In practice, at least for me, it didn’t. This article covers the installation on Linux.

The plugin is installed and enabled, yet Claude Code reports:

● Language server "plugin:typescript-lsp:typescript" couldn't start: its program "typescript-language-server" wasn't found. Check that it's installed and on your PATH. If you don't need it, disable the plugin that provides it.

The message says exactly what is missing: the typescript-language-server program on the PATH. What it doesn’t say is where to get it.

At the time of writing, there is an open GitHub issue, anthropics/claude-code#15148, that describes a similar problem: the typescript-lsp, pyright-lsp and gopls-lsp plugins install, but stay useless. The reporter shows in the logs that the LSP manager starts with zero servers, and that only the README.md file ends up in the plugin cache directory.

The key observation is simple: an LSP plugin in Claude Code does not contain the language server itself. It is only configuration that tells Claude Code which command to run for a given file extension. The commands are defined in marketplace.json, and the server itself has to be installed separately and available on the PATH.

Instead of helplessly throwing up my hands, I looked at the README files of the plugins I needed. Each of them has an Installation section with instructions for installing the dependencies.

The READMEs install with npm install -g or yarn global add (Pyright also with pip and pipx). I use Bun, so the commands below are in that form. With npm, just replace bun install -g with npm install -g.

The plugin runs typescript-language-server --stdio for .ts, .tsx, .js, .jsx, .mts, .cts, .mjs and .cjs files. The server also needs the typescript package itself. Source: README.

Terminal window
bun install -g typescript-language-server typescript

The plugin runs intelephense --stdio for .php files. Source: README.

Terminal window
bun install -g intelephense

The plugin runs pyright-langserver --stdio for .py and .pyi files. That executable comes with the pyright package. Source: README.

Terminal window
bun install -g pyright

Packages installed globally with Bun go to ~/.bun/bin, so that directory has to be on the PATH. The easiest way is to check it before restarting Claude Code:

Terminal window
which intelephense

After installing the dependencies and restarting Claude Code, the plugins started working for me.

At the time of writing, the official marketplace anthropics/claude-plugins-official has 13 LSP plugins. None of them installs its server by itself. The table lists the program Claude Code looks for. The plugin’s README describes how to install it.

Plugin Language Program
clangd-lsp C, C++ clangd
csharp-lsp C# csharp-ls
gopls-lsp Go gopls
jdtls-lsp Java jdtls
kotlin-lsp Kotlin kotlin-lsp
liquid-lsp Liquid (Shopify) shopify
lua-lsp Lua lua-language-server
php-lsp PHP intelephense
pyright-lsp Python pyright-langserver
ruby-lsp Ruby ruby-lsp
rust-analyzer-lsp Rust rust-analyzer
swift-lsp Swift sourcekit-lsp
typescript-lsp TypeScript, JavaScript typescript-language-server

If an LSP plugin “doesn’t work”, the first step should be reading its README, not reinstalling the plugin. Issue #15148 describes a deeper problem with loading the lspServers configuration, so if you still see No LSP server available for file type after installing the server, it’s worth following that thread.

QR code linking to the @gander.pl profile on BlueskyFollow @gander.pl on Bluesky