
Mcp Pyright
Wraps the Pyright language server to give Claude type checking and code intelligence for Python. You get seven tools: check_types for catching type errors, get_hover for inspecting types at a cursor position, get_completions for autocomplete suggestions, get_definition to jump to where something is defined, find_references to see all uses of a variable or function, get_document_symbols to extract classes and functions from a file, and format_code for cleaning up formatting. Useful when you need Claude to reason about Python code structure, verify type correctness, or provide intelligent suggestions without running the code itself.
- tools
- 7
- transport
- STDIO
- last updated
- Apr 1, 2026
Tools
7 toolsPublic tool metadata for what this MCP can expose to an agent.
check_typesRun type checking on Python code.
Run type checking on Python code.
No parameter schema in public metadata yet.
get_hoverGet type information at a position in code.
Get type information at a position in code.
No parameter schema in public metadata yet.
get_completionsGet code completions at a position.
Get code completions at a position.
No parameter schema in public metadata yet.
get_definitionFind the definition location of a symbol.
Find the definition location of a symbol.
No parameter schema in public metadata yet.
find_referencesFind all references to a symbol.
Find all references to a symbol.
No parameter schema in public metadata yet.
get_document_symbolsGet all symbols in a document.
Get all symbols in a document.
No parameter schema in public metadata yet.
format_codeFormat Python code.
Format Python code.
No parameter schema in public metadata yet.
Sponsors
Readme
mcp-pyright
MCP server that exposes Pyright language server functionality
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
Details
- Repository
- github.com/daedalus/mcp-pyright
- Package
mcp-pyright- Transport
- STDIO
- Registry
- MCP registry, active