Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Pyright

FreeNot checked

An MCP server that exposes Pyright language server functionality for Python, providing tools for type checking, code completions, and finding definitions. It en

GitHubEmbed

About

An MCP server that exposes Pyright language server functionality for Python, providing tools for type checking, code completions, and finding definitions. It enables AI models to perform static analysis and code formatting through the Model Context Protocol.

README

MCP server that exposes Pyright language server functionality

PyPI Python Ruff

mcp-name: io.github.daedalus/mcp-pyright

Install

pip install mcp-pyright

Usage

The MCP server can be used with any MCP-compatible client. It exposes the following tools:

Type Checking

from mcp_pyright import mcp

# Run type checking
result = check_types(code="x: int = 'hello'")

Get Hover Information

# Get type information at position
result = get_hover(code="x: int = 1", position=0)

Get Completions

# Get code completions
result = get_completions(code="prin", position=4)

Get Definition

# Find definition location
result = get_definition(code="def foo(): pass\nfoo()", position=15)

Find References

# Find all references
result = find_references(code="x = 1\nx", position=5)

Get Document Symbols

# Get all symbols in document
result = get_document_symbols(code="class Foo: pass\ndef bar(): pass")

Format Code

# Format Python code
result = format_code(code="x=1\ny=2")

Development

git clone https://github.com/daedalus/mcp-pyright.git
cd mcp-pyright
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

License

MIT

from github.com/daedalus/mcp-pyright

Install Pyright in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install mcp-pyright

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add mcp-pyright -- uvx mcp-pyright

Step-by-step: how to install Pyright

FAQ

Is Pyright MCP free?

Yes, Pyright MCP is free — one-click install via Unyly at no cost.

Does Pyright need an API key?

No, Pyright runs without API keys or environment variables.

Is Pyright hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Pyright in Claude Desktop, Claude Code or Cursor?

Open Pyright on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Pyright with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs