Pyright LSP plugin for Claude Code

Set up Pyright in Claude Code for Python type checking, symbol lookup, and diagnostics with the right project environment.

How to install the Pyright LSP plugin in Claude Code

Install the Pyright language-server executable and open the project with its intended Python environment.

  1. Install the language server separately and make sure pyright-langserver is available on your PATH.
  2. Start Claude Code once to register Anthropic’s official marketplace. Then run the install command in your terminal.
  3. 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 pyright-lsp@claude-plugins-official

Try a first task

Change a Python function to allow an empty result and inspect every call site that assumes it always returns a value. Confirm the diagnostics disappear after handling the optional result.

Package components

  • Python language server

Publisher references

View on Claude Marketplace

Anthropic

Browse Plugins