AutoDocs MCP Server
Automatically provides AI assistants with contextual, version-specific documentation for Python project dependencies by scanning pyproject.toml files. Eliminates manual package lookup and enables more accurate coding assistance through seamless integration with AI tools.
README
AutoDocs MCP Server
AutoDocs MCP Server automatically provides AI assistants with contextual, version-specific documentation for Python project dependencies, eliminating manual package lookup and providing more accurate coding assistance.
Features
- Automatic Dependency Scanning: Parse pyproject.toml files and extract dependency information
- Version-Specific Caching: Cache documentation based on resolved package versions
- Graceful Degradation: Handle malformed dependencies and network issues gracefully
- Rich Context: Provide AI assistants with both primary package and dependency documentation
- FastMCP Integration: Built with FastMCP for seamless integration with AI tools like Cursor
Installation
# Using uv (recommended)
uv tool install autodocs-mcp
# Using pip
pip install autodocs-mcp
Usage
As an MCP Server
Configure in your Cursor Desktop settings:
{
"mcpServers": {
"autodocs-mcp": {
"command": "uv",
"args": ["run", "--from", "autodocs-mcp", "autodocs-mcp"],
"env": {
"AUTODOCS_CACHE_DIR": "/path/to/cache"
}
}
}
}
Development
# Install dependencies
uv sync --all-extras
# Run tests
uv run pytest
# Run linting
uv run ruff check
# Start development server
uv run hatch run dev
MCP Tools
scan_dependencies
Scans project dependencies from pyproject.toml files.
Parameters:
project_path(optional): Path to project directory (defaults to current directory)
Returns:
- Project metadata and dependency specifications
- Graceful degradation information for malformed dependencies
get_package_docs (Coming Soon)
Retrieves formatted documentation for Python packages.
Configuration
Environment variables:
AUTODOCS_CACHE_DIR: Cache directory location (default: ~/.autodocs/cache)AUTODOCS_MAX_CONCURRENT: Maximum concurrent PyPI requests (default: 10)AUTODOCS_REQUEST_TIMEOUT: Request timeout in seconds (default: 30)AUTODOCS_LOG_LEVEL: Logging level (default: INFO)
Architecture
- FastMCP Server: Handles MCP protocol communication
- Dependency Parser: Parses pyproject.toml with graceful error handling
- Documentation Fetcher: Retrieves package info from PyPI (coming soon)
- Cache Manager: Version-based caching system (coming soon)
Development Status
This is currently in Priority 1: Core Validation phase:
- ✅ Basic project setup with hatch/uv
- ✅ Minimal viable dependency parser
- ✅ Basic FastMCP integration
- ✅
scan_dependenciesMCP tool - 🚧 Testing with real projects
Coming next: Documentation fetching, version-based caching, and rich dependency context.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.