BeClaude

pyright-lsp

30.2kOfficial PluginDevelopmentby Anthropic

Python language server (Pyright) for type checking and code intelligence

Python3272 forks747 issuesUpdated 6/16/2026First seen 4/17/2026

Summary

The Pyright LSP skill integrates the Pyright language server into Claude Code, providing real-time type checking, code intelligence, and error diagnostics for Python projects.

  • It helps developers catch type errors early, improve code quality, and navigate complex codebases with features like autocompletion and go-to-definition.

Install & Usage

1
Add a marketplace
/plugin marketplace add <org/repo>
2
Install the plugin

Add the configuration to /plugin install pyright-lsp@<marketplace>

3
Manage with /plugin
/plugin

Use Cases

Run type checking on a Python file to identify and fix type inconsistencies before runtime.
Get inline error diagnostics and suggestions while editing Python code in Claude Code.
Navigate to the definition of a function or class in a large Python codebase.
Use autocompletion to quickly find available methods and attributes for an object.
Check the type of a variable or expression during code review or debugging.
Validate type annotations across an entire project to ensure consistency.

Usage Examples

1

/pyright-lsp check src/main.py

2

Run Pyright type checker on the current Python file and show all errors.

3

/pyright-lsp hover src/utils.py:42

View source on GitHub
lsppythonclaude-codemcpskills

Security Audits

LicenseUnknownSourcePassRepositoryPass

Frequently Asked Questions

What is pyright-lsp?

The Pyright LSP skill integrates the Pyright language server into Claude Code, providing real-time type checking, code intelligence, and error diagnostics for Python projects. It helps developers catch type errors early, improve code quality, and navigate complex codebases with features like autocompletion and go-to-definition.

How to install pyright-lsp?

To install pyright-lsp: add a marketplace (/plugin marketplace add <org/repo>), then add the config to /plugin install pyright-lsp@<marketplace>. Finally, /plugin in Claude Code.

What is pyright-lsp best for?

pyright-lsp is a plugin categorized under Development. It is designed for: lsp, python. Created by Anthropic.

What can I use pyright-lsp for?

pyright-lsp is useful for: Run type checking on a Python file to identify and fix type inconsistencies before runtime.; Get inline error diagnostics and suggestions while editing Python code in Claude Code.; Navigate to the definition of a function or class in a large Python codebase.; Use autocompletion to quickly find available methods and attributes for an object.; Check the type of a variable or expression during code review or debugging.; Validate type annotations across an entire project to ensure consistency..