MCPyDoc for VS Code — Real docs for your Python deps
AI assistants often hallucinate when code depends on private or unfamiliar Python packages: guessed APIs, wrong signatures, and outdated usage that breaks at runtime. MCPyDoc fixes that by giving your assistant real-time access to the actual documentation and source code of the Python packages installed in your environment.
This extension wires MCPyDoc into VS Code via the MCP Server Definition Provider API. It auto-installs the mcpydoc package if missing and exposes it to any MCP‑capable assistant you use in VS Code.
What you get
📚 Live documentation retrieval for any installed Python package
Use an MCP‑capable assistant (e.g., Cline, Cursor, GitHub Copilot).
To validate - ask it to consult MCPyDoc, for example:
“Use MCPyDoc to show the docs for requests.get.”
“Search symbols in pandas for DataFrame methods.”
That’s it—no manual configuration required.
Requirements
Python 3.9+ available as python on your PATH
pip available to install mcpydoc on first use
If you rely on a virtual environment, ensure that environment is active (or that its Python is first on PATH) so MCPyDoc analyzes the correct installed packages
Example scenario
Fixing a bug in code that calls into a private package:
Your assistant queries MCPyDoc automatically
It retrieves the class documentation and source
It applies the correct method name/signature — no guesswork
Privacy & security
MCPyDoc reads locally installed package metadata, docstrings, and source to answer queries. Content may be provided to your chosen assistant inside VS Code; review your assistant’s data policies before sharing proprietary code.