loading…
Search for a command to run...
loading…
An MCP server that exposes Pyright language server functionality for Python, providing tools for type checking, code completions, and finding definitions. It en
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.
MCP server that exposes Pyright language server functionality
mcp-name: io.github.daedalus/mcp-pyright
pip install mcp-pyright
The MCP server can be used with any MCP-compatible client. It exposes the following tools:
from mcp_pyright import mcp
# Run type checking
result = check_types(code="x: int = 'hello'")
# Get type information at position
result = get_hover(code="x: int = 1", position=0)
# Get code completions
result = get_completions(code="prin", position=4)
# Find definition location
result = get_definition(code="def foo(): pass\nfoo()", position=15)
# Find all references
result = find_references(code="x = 1\nx", position=5)
# Get all symbols in document
result = get_document_symbols(code="class Foo: pass\ndef bar(): pass")
# Format Python code
result = format_code(code="x=1\ny=2")
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/
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"mcp-pyright": {
"command": "npx",
"args": []
}
}
}PRs, issues, code search, CI status
Database, auth and storage
Reference / test server with prompts, resources, and tools.
Secure file operations with configurable access controls.