Prerequisites
Before installing Pylance MCP Pro, ensure you have:- Python 3.11+ installed
- Node.js 18+ (for MCP client setup)
- A supported MCP client (Claude Desktop, Cursor, Continue.dev, Windsurf)
Installation Methods
pip (Recommended)
pip (Recommended)
Install directly from PyPI:This will install the
pylance-mcp-pro command globally.pipx (Isolated)
pipx (Isolated)
Install in an isolated environment:Recommended for avoiding dependency conflicts.
From Source
From Source
Clone and install from GitHub:Useful for development or customization.
Verify Installation
Check that the server is installed correctly:Configuration
1. Set Workspace Root
Set theWORKSPACE_ROOT environment variable to your Python project:
2. API Key (Optional)
If you purchased a subscription, set your API key:3. Configure MCP Client
Add the server to your MCP client configuration:The
${workspaceFolder} variable will be automatically replaced with your current workspace path in most MCP clients.Client-Specific Setup
Claude Desktop
Setup instructions for Claude Desktop
Cursor
Setup instructions for Cursor
Continue.dev
Setup instructions for Continue.dev
Windsurf
Setup instructions for Windsurf
Testing the Installation
Once configured, test the server with a simple command in your MCP client:get_diagnostics tool and return type checking results.
Troubleshooting
Server not found
Server not found
Issue: MCP client can’t find the
pylance-mcp commandSolution:- Ensure Python is in your PATH
- Try using the full path:
/path/to/python -m pylance_mcp - Verify installation:
pip show pylance-mcp
No Python files detected
No Python files detected
Issue: Server reports empty workspaceSolution:
- Verify
WORKSPACE_ROOTpoints to a valid directory - Ensure directory contains
.pyfiles - Check file permissions
Type checking not working
Type checking not working
Issue: Diagnostics return empty resultsSolution:
- Ensure Python environment is activated
- Check for
pyrightconfig.jsonorpyproject.toml - Verify Python interpreter path with
get_python_environmenttool
API rate limits
API rate limits
Issue: Receiving rate limit errorsSolution:
- Sign up for a paid plan at pylancemcp.com
- Add your API key to the environment configuration
- Check usage limits in your dashboard