Skip to main content
plugin official · Anthropic

pyright-lsp — Claude Code plugin: what it does, how to install

Connects the Pyright language server to Claude Code for static type checking. Catches type mismatches in .py and .pyi files.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin install pyright-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official
Open on GitHub

What pyright-lsp does

This plugin integrates the Pyright language server into Claude Code. It provides static type checking and code intelligence for files with .py and .pyi extensions.

Pyright must be installed on your system separately. You can set it up using npm install -g pyright, pip install pyright, or pipx install pyright. Without the pyright package available in your environment, the language server will not work.

What it helps with

  • run static type checks on .py and .pyi files
  • identify Python type errors inside Claude Code
  • provide Python code intelligence via LSP

Example prompts for the agent

  • Run Pyright static checks on main.py
  • Inspect stub definitions in types.pyi

How to install pyright-lsp

Plugin marketplace

/plugin install pyright-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about pyright-lsp

How to install pyright-lsp in Claude Code?

First, register the marketplace source: /plugin marketplace add anthropics/claude-plugins-official. Then run /plugin install pyright-lsp@claude-plugins-official. Pyright must also be installed on your machine.

What prerequisites are needed for pyright-lsp?

You must install Pyright globally using npm install -g pyright, pip install pyright, or pipx install pyright. The documentation recommends pipx for CLI tools.

Which file extensions does pyright-lsp support?

The plugin supports .py and .pyi files for static type analysis.

Source text

pyright-lsp · Apache-2.0
# pyright-lsp

Python language server (Pyright) for Claude Code, providing static type checking and code intelligence.

## Supported Extensions
`.py`, `.pyi`

## Installation

Install Pyright globally via npm:

```bash
npm install -g pyright
```

Or with pip:

```bash
pip install pyright
```

Or with pipx (recommended for CLI tools):

```bash
pipx install pyright
```

## More Information
- [Pyright on npm](https://www.npmjs.com/package/pyright)
- [Pyright on PyPI](https://pypi.org/project/pyright/)
- [GitHub Repository](https://github.com/microsoft/pyright)

© Anthropic · Apache-2.0 · anthropics/claude-plugins-official

Similar plugins

All plugins for Programming languages →

From the same set123

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor