# Claude Code LSP Plugins: TypeScript Setup Guide (2026)

> LSP plugins give Claude Code real-time type intelligence: the 11 official language servers, how to set up typescript-lsp, and how to fix common issues.

Source: https://designrevision.com/blog/claude-code-lsp-plugins

---

LSP plugins are how Claude Code stops guessing about your code and starts knowing it. If you have looked for the LSP plugins Claude Code supports, there are eleven official ones, one per language. A Language Server Protocol plugin gives Claude real-time go-to-definition, find-references, and live type errors for a specific language — the same intelligence your editor uses — so it makes fewer wrong-symbol and type mistakes. Anthropic ships eleven official LSP plugins, one per language. This guide covers what they do, the full list, how to set up `typescript-lsp` step by step, and how to fix the usual snags.

*Last updated: July 2026.*

## Key Takeaways

> If you remember nothing else:
>
> * **LSP plugins** give Claude **real-time type intelligence** (go-to-def, find-refs, live errors) per language
> * Anthropic ships **11 official language servers** in `claude-plugins-official`
> * Install the plugin **and** its language-server **binary** — the plugin wraps the server, it doesn't bundle it
> * TypeScript: `/plugin install typescript-lsp@claude-plugins-official` + the `typescript-language-server` binary on your `PATH`
> * A "not working" LSP plugin is almost always a **missing binary**

## Table of Contents

1. [What LSP Plugins Do](#what-lsp-plugins-do)
2. [The 11 Official Language Servers](#the-11-official-language-servers)
3. [Setup: Plugin + Binary](#setup-plugin--binary)
4. [Verifying It Works](#verifying-it-works)
5. [Troubleshooting](#troubleshooting)
6. [Conclusion](#conclusion)

## What LSP Plugins Do

Without a language server, Claude reasons about code from raw text — which works, but leaves room for wrong-symbol edits and type errors. An LSP plugin connects Claude to the same **Language Server Protocol** tooling your editor uses, giving it real-time answers to "where is this defined," "what references this," and "does this type-check." The payoff is more accurate edits, especially in large or strongly-typed codebases. LSP plugins are part of Anthropic's official [Claude Code plugins](/blog/claude-code-plugins) set.

The effect is most noticeable on exactly the tasks where AI usually stumbles: refactoring across many files, renaming a symbol used in a dozen places, or working in a large codebase where the right function lives three directories away. Instead of inferring a signature from nearby text and occasionally guessing wrong, Claude asks the language server and gets the authoritative answer. In a polyglot repository you can install several LSP plugins at once — one per language — so Claude has the same intelligence everywhere it works.

## The 11 Official Language Servers

All eleven ship in Anthropic's official marketplace, [`anthropics/claude-plugins-official`](https://github.com/anthropics/claude-plugins-official). Each installs as `<name>@claude-plugins-official` and requires the listed binary:

| Language | Plugin | Requires binary |
|----------|--------|-----------------|
| TypeScript | `typescript-lsp` | `typescript-language-server` |
| Python | `pyright-lsp` | `pyright-langserver` |
| Go | `gopls-lsp` | `gopls` |
| Rust | `rust-analyzer-lsp` | `rust-analyzer` |
| C / C++ | `clangd-lsp` | `clangd` |
| C# | `csharp-lsp` | `csharp-ls` |
| Java | `jdtls-lsp` | `jdtls` |
| Kotlin | `kotlin-lsp` | `kotlin-language-server` |
| Lua | `lua-lsp` | `lua-language-server` |
| PHP | `php-lsp` | `intelephense` |
| Swift | `swift-lsp` | `sourcekit-lsp` |

See the full first-party catalog in our [official Claude Code plugins](/blog/official-claude-code-plugins) list.

## Setup: Plugin + Binary

Setting up an LSP plugin is always two steps — install the plugin, then install the server binary it wraps. Using TypeScript as the worked example:

```text
# 1. Install the plugin (official marketplace is auto-registered)
/plugin install typescript-lsp@claude-plugins-official

# 2. Install the language-server binary and put it on your PATH
npm install -g typescript typescript-language-server
```

Then run `/reload-plugins`. The same pattern applies to every language — swap in the plugin and binary from the table above (for Python, `pyright-lsp` + `pyright-langserver`; for Go, `gopls-lsp` + `gopls`, and so on). For the general install flow, see [how to install Claude Code plugins](/blog/how-to-install-claude-code-plugins).

## Verifying It Works

Confirm the binary is reachable (`typescript-language-server --version` should print a version), then check the plugin is enabled in the `/plugin` manager. With both in place, Claude gains real-time type information automatically — you will notice it referencing exact symbols and catching type errors as it edits.

## Troubleshooting

- **The plugin seems installed but gives no intelligence.** The language-server binary is almost certainly missing or not on your `PATH`. Install it and confirm with `<binary> --version`, then `/reload-plugins`.
- **Wrong language.** Make sure you installed the plugin matching your stack (e.g. `pyright-lsp`, not `typescript-lsp`).
- **Still nothing after installing the binary.** Reload the session and confirm the plugin is enabled in `/plugin`. For a shortlist of high-leverage plugins to pair with your LSP, see the tested [best Claude Code plugins](/blog/best-claude-code-plugins).

## Conclusion

LSP plugins are among the highest-leverage official plugins for anyone writing typed code: install the one for your language plus its server binary, and Claude Code trades guesswork for real intelligence. Start with your primary stack, verify the binary is on your `PATH`, and layer in others as needed. The [official Claude Code plugins](/blog/official-claude-code-plugins) list and the [best Claude Code plugins](/blog/best-claude-code-plugins) roundup cover what to add next.

---

## Related Resources

- [Claude Code Plugins: The Complete Guide](/blog/claude-code-plugins)
- [Official Claude Code Plugins: The Complete List](/blog/official-claude-code-plugins)
- [Best Claude Code Plugins (2026): Tested & Ranked](/blog/best-claude-code-plugins)
- [How to Install & Use Claude Code Plugins](/blog/how-to-install-claude-code-plugins)
- [Claude Code Skills vs. Plugins vs. Agents vs. MCP](/blog/claude-code-skills-vs-plugins-vs-agents)
