Command Palette

Search for a command to run...

UnylyUnyly
Browse all

MCPyDoc

FreeNot checked

Provides real-time access to Python package documentation, source code, and symbol search to prevent AI hallucinations.

GitHubEmbed

About

Provides real-time access to Python package documentation, source code, and symbol search to prevent AI hallucinations.

README

CI PyPI version Python 3.9+ License: MIT

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

🚀 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 mcpydoc instead of uvx, or install globally with pip install mcpydoc and use python -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:

  1. MCP Client Roots - Auto-detected from your IDE workspace (zero config!)
  2. MCPYDOC_PYTHON_PATH - Manual override: "env": {"MCPYDOC_PYTHON_PATH": "~/myproject/.venv"}
  3. VIRTUAL_ENV - Activated virtual environment
  4. Common directories - Searches ~/projects, ~/dev, ~/code, etc.
  5. 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?

  1. Check your project has a .venv or venv directory
  2. Verify the package is installed: pip list | grep package-name
  3. If needed, set MCPYDOC_PYTHON_PATH explicitly

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

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with tests
  4. Submit a pull request

from github.com/amit608/MCPyDoc

Installing MCPyDoc

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/amit608/MCPyDoc

FAQ

Is MCPyDoc MCP free?

Yes, MCPyDoc MCP is free — one-click install via Unyly at no cost.

Does MCPyDoc need an API key?

No, MCPyDoc runs without API keys or environment variables.

Is MCPyDoc hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install MCPyDoc in Claude Desktop, Claude Code or Cursor?

Open MCPyDoc on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare MCPyDoc with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs