Mcp Pyright

io.github.daedalusPublished by GitHub account daedalusv0.1.0Updated Oct 25, 2026

MCP server that exposes Pyright language server functionality

VerifiedSTDIODesktop onlyDeveloper ToolsAI & ML

Overview

AI-generated overview

A local MCP server that exposes Pyright's Python language-server features so an assistant can type-check, inspect and format Python code.

What you can do
Run type checking on Python code and get diagnostics back from Pyright's static analysis engine, which is the server's core purpose and the first tool it exposes. Get hover information at a given position to see inferred types and signatures. Get code completions at a position to suggest what to write next. Find the definition of a symbol and all references to it across the supplied code. List all symbols in a document and format Python code.
When to use it
Useful when an assistant works with Python code and needs real static analysis rather than guesswork: catching type errors, looking up inferred types, jumping to definitions or references, listing document symbols, or reformatting snippets. It fits editor-like and code-review workflows where Pyright's results are wanted inside the chat.
Requirements
Runs as a local process on the user's machine, installed from PyPI with pip install mcp-pyright. It is desktop-only and not web-executable. No authentication, environment variables or headers are declared. It needs an MCP-compatible client and, since it wraps Pyright, the Pyright language server functionality it depends on.
Before you install
The tools take Python code as input and return analysis results; nothing in the input shows writes to files, network calls or credentials. Code passed to the tools is processed by the local Pyright engine, so avoid sending sensitive source if that matters to you. No secrets, payments or destructive actions are described.

Installation

In SourceWeft

  1. Open Mcp Pyright in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

mcp-pyright

MCP server that exposes Pyright language server functionality

[PyPI] [Python] [Ruff]

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

Install

bash
pip install mcp-pyright

Usage

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

Type Checking

python
from mcp_pyright import mcp
# Run type checkingresult = check_types(code="x: int = 'hello'")

Get Hover Information

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

Get Completions

python
# Get code completionsresult = get_completions(code="prin", position=4)

Get Definition

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

Find References

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

Get Document Symbols

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

Format Code

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

Development

bash
git clone https://github.com/daedalus/mcp-pyright.gitcd mcp-pyrightpip install -e ".[test]"
# run testspytest
# formatruff format src/ tests/
# lintruff check src/ tests/
# type checkmypy src/

License

MIT

Source: README.md at commit a0c879b

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts