Skip to main content

What is MCP?

The Model Context Protocol (MCP) is the bridge that lets your AI assistant understand and work with your Python code intelligently.

What You Can Do

Your AI suggests code based on your project’s actual types and imports
Ask about functions, classes, and see your project structure instantly
Get real-time diagnostics and explanations for errors

Features Available to You

Code Intelligence Tools

Pylance MCP provides 15+ powerful features:

get_completions

Code completion suggestions

get_hover

Hover documentation

get_definition

Go to definition

get_references

Find all references

rename_symbol

Rename refactoring

get_diagnostics

Errors and warnings

format_document

Code formatting

get_signature_help

Function signatures

get_code_actions

Quick fixes

What Information You Get

When you use Pylance MCP, you get rich, detailed information automatically:
Pylance understands your project structure, Python version, and virtual environment
See function signatures, parameter types, and return values
Changes in your code are detected and suggestions update instantly

Tips for Best Results

Work naturally - your IDE and AI handle the technical details
Results are cached automatically for instant repeated access
The system prevents excessive requests to protect your account

If Something Goes Wrong

IssueWhat It MeansWhat To Do
File not foundWorkspace path incorrectCheck your IDE workspace settings
Invalid requestConfiguration issueReview the setup guide for your IDE
Rate limit reachedToo many requestsWait a moment, then try again
Internal errorTemporary service issueRetry in a few seconds
Most issues resolve by restarting your IDE or checking your configuration.

Next Steps