MCPyDoc
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCPyDocshow me the documentation for the requests library"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCPyDoc - Python Package Documentation MCP Server
AI assistants hallucinate when working with unfamiliar Python packages—guessing APIs, wrong signatures, outdated usage. MCPyDoc fixes that by giving your assistant real-time access to actual documentation and source code from your environment.
✨ Features
📚 Package Documentation - Comprehensive docs for any Python package
🔍 Symbol Search - Find classes, functions, and modules by pattern
💻 Source Code Access - Retrieve actual implementation code
🏗️ Structure Analysis - Analyze complete package architecture
🔧 Auto-Environment Detection - Finds your project's venv automatically
Related MCP server: Context7 MCP
🚀 Quick Start
Zero Config (Recommended)
With compatible MCP clients (Cursor, VS Code), MCPyDoc automatically detects your workspace and virtual environment. Just add to your MCP config:
{
"mcpServers": {
"mcpydoc": {
"command": "uvx",
"args": ["mcpydoc"]
}
}
}Alternatives: Use
pipx run mcpydocinstead ofuvx, or install globally withpip install mcpydocand usepython -m mcpydoc.
VS Code Extension
For VS Code, install the MCPyDoc extension for a fully automatic setup.
🔧 Environment Detection
MCPyDoc automatically finds your Python environment in this priority order:
MCP Client Roots - Auto-detected from your IDE workspace (zero config!)
MCPYDOC_PYTHON_PATH- Manual override:"env": {"MCPYDOC_PYTHON_PATH": "~/myproject/.venv"}VIRTUAL_ENV- Activated virtual environmentCommon directories - Searches
~/projects,~/dev,~/code, etc.MCPYDOC_SEARCH_PATHS- Custom:"env": {"MCPYDOC_SEARCH_PATHS": "~/work,~/repos"}
Per-Project Config
Create .mcpydoc.json in your project root:
{"python_path": ".venv"}🔍 Troubleshooting
Package not found?
Check your project has a
.venvorvenvdirectoryVerify the package is installed:
pip list | grep package-nameIf needed, set
MCPYDOC_PYTHON_PATHexplicitly
MCPyDoc shows "isolated pipx/uvx environment"?
Add your projects directory:
"env": {"MCPYDOC_SEARCH_PATHS": "~/projects"}Or point directly to your venv:
"env": {"MCPYDOC_PYTHON_PATH": "~/myproject/.venv"}📝 License
MIT License - see LICENSE file for details.
🤝 Contributing
Fork the repository
Create a feature branch
Make your changes with tests
Submit a pull request
This server cannot be deployed
Maintenance
Related MCP Connectors
Real-time Python package and vulnerability data for AI coding agents.
@latest documentation and code examples to 9000+ libraries for LLMs and AI code editors in a singl…
Versioned documentation registry and semantic search for AI tools and coding assistants.
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Related MCP Servers
- AlicenseCqualityCmaintenanceProvides real-time access to up-to-date library documentation and code examples for any programming library. Helps AI coding assistants deliver accurate, current information instead of relying on outdated training data.16 npmMIT
- AlicenseAqualityCmaintenanceProvides LLMs with up-to-date, version-specific documentation and code examples directly from library sources, eliminating outdated training data and hallucinated APIs by fetching current documentation at prompt time.21,132,952 npmMIT
- AlicenseAqualityCmaintenanceProvides LLMs with real-time access to up-to-date documentation from PyPI, npm, crates.io, GoDocs, DockerHub, GitHub, and GCP, preventing outdated code generation and API hallucinations.2770 PyPI14MIT
- FlicenseAqualityDmaintenanceProvides Large Language Models with real-time access to the latest documentation for Python libraries like Langchain, LlamaIndex, and OpenAI, enabling accurate and up-to-date code suggestions.1-