MCPyDoc
Click on "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/amit608/MCPyDoc'
If you have feedback or need assistance with the MCP directory API, please join our Discord server