io.github.daedalus/mcp-pyright
MCP server that exposes Pyright language server functionality
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
mcp-pyrightclaude mcp add mcp-pyright -- uvx mcp-pyright==0.1.0
{
"mcpServers": {
"mcp-pyright": {
"command": "uvx",
"args": [
"mcp-pyright==0.1.0"
]
}
}
}
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
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
# 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
Frequently asked questions
What is io.github.daedalus/mcp-pyright?
MCP server that exposes Pyright language server functionality
How do I install io.github.daedalus/mcp-pyright?
It runs on your machine. In Claude Code: claude mcp add mcp-pyright -- uvx mcp-pyright==0.1.0. For other clients, paste the JSON configuration from this page into their MCP settings.
Does io.github.daedalus/mcp-pyright need an API key?
Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.
Is io.github.daedalus/mcp-pyright open source?
Yes. Its code is on GitHub under the MIT license.
Who maintains io.github.daedalus/mcp-pyright?
It is published by daedalus. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.