AutoDocs MCP Server
The AutoDocs MCP Server provides intelligent documentation context for Python projects and their dependencies, optimized for AI assistants.
Scan Project Dependencies: Automatically scan and analyze project dependencies from
pyproject.tomlfiles, returning project metadata and dependency specifications.Retrieve Contextual Documentation: Fetch comprehensive, version-specific documentation for Python packages, intelligently including up to 8 most relevant runtime dependencies while respecting AI context window token limits.
Cache Management: Clear the local documentation cache or retrieve detailed statistics about cache contents, performance metrics, and hit rates.
Health Monitoring: Check overall system health status and perform readiness checks for deployment purposes.
Performance Metrics: Access detailed system performance data, including request/response statistics and cache performance analytics.
AI-Optimized: Provides structured JSON outputs, token-aware context management, and smart dependency resolution with network resilience for scalable use in development and production environments.
Retrieves package information and documentation from PyPI for Python project dependencies, enabling automatic documentation lookup based on resolved package versions.
Provides contextual, version-specific documentation for Python project dependencies by parsing pyproject.toml files and extracting dependency information.
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., "@AutoDocs MCP Server show me documentation for FastAPI with its dependencies"
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.
AutoDocs MCP Server
Intelligent documentation context provider for AI assistants
AutoDocs MCP Server automatically provides AI assistants with contextual, version-specific documentation for Python project dependencies. It uses intelligent dependency resolution to include both the requested package and its most relevant dependencies, giving AI assistants comprehensive context for accurate code assistance.
Key Features
Smart dependency context - Automatically includes 3-8 most relevant dependencies
AI-optimized documentation - Token-aware formatting with performance metrics
Production-ready - 8 MCP tools with health monitoring and caching
Framework-aware - Special handling for FastAPI, Django, Flask ecosystems
High performance - Concurrent fetching with circuit breakers and connection pooling
Related MCP server: Context7 MCP
Quick Start
Installation
# Using uv (recommended)
uv tool install autodoc-mcp
# Using pip
pip install autodoc-mcpBasic Usage
# Start the MCP server
autodoc-mcp
# Test with your AI assistant
# Ask: "What packages are available in this project?"
# Ask: "Tell me about FastAPI with its dependencies"MCP Client Configuration
Add to your MCP client configuration:
{
"mcpServers": {
"autodoc-mcp": {
"command": "autodoc-mcp",
"env": {
"CACHE_DIR": "~/.cache/autodoc-mcp"
}
}
}
}Documentation
π Complete Documentation: https://bradleyfay.github.io/autodoc-mcp/
Our documentation is organized into three focused paths:
Product Documentation - Installation, configuration, API reference, and troubleshooting
Development Process - Architecture, contributing guidelines, and development standards
Development Journey - Project evolution and AI-assisted development insights
Quick Links
Installation Guide - Setup for different platforms and MCP clients
MCP Tools Reference - Complete API documentation for all 8 tools
Configuration Options - Environment variables and advanced settings
Troubleshooting Guide - Common issues and solutions
Contributing Guide - How to contribute to the project
MCP Tools Overview
AutoDocs provides 8 production-ready MCP tools:
Core Tools
get_package_docs_with_context- Primary tool for comprehensive documentation with dependenciesscan_dependencies- Parse project dependencies from pyproject.tomlget_package_docs- Legacy single-package documentation tool
Cache Management
refresh_cache- Clear documentation cacheget_cache_stats- View cache statistics
System Health
health_check- Comprehensive system health statusready_check- Kubernetes-style readiness checkget_metrics- Performance metrics and monitoring data
Development & Contributing
This project welcomes contributions! Please see our Contributing Guide for detailed information.
Quick Development Setup
git clone https://github.com/bradleyfay/autodoc-mcp.git
cd autodoc-mcp
uv sync --all-extras
uv run pytest # Run 400+ testsDevelopment Standards
Conventional Commits - All commits must follow conventional commit format
Pre-commit Hooks - Automated linting, formatting, and type checking
Comprehensive Testing - pytest ecosystem with 400+ tests
GitFlow Workflow - Feature branches, release branches, and semantic versioning
Project Information
Version: 0.5.1 (Production Ready)
Python: 3.11+ required
License: MIT
Architecture: Layered design with 10 specialized core service modules
Dependencies: Minimal production footprint with FastMCP, httpx, Pydantic
Transparency & Learning
This project demonstrates transparent AI-assisted development. Explore these directories to see the complete development process:
.claude/agents/- Claude Code agent configurations.specstory/history/- Complete session historyplanning/- Planning documents and technical decisions
License
MIT License - see LICENSE for details.
Built with FastMCP | Documentation Site | GitHub
Available Tools
4 toolsget_cache_statsB
Get statistics about the documentation cache.
Returns: Cache statistics and information
Inputs: no named parameters. Returns: object
get_package_docsA
Retrieve formatted documentation for a package with version-based caching.
Args: package_name: Name of the package to fetch documentation for version_constraint: Version constraint from dependency scanning query: Optional query to filter documentation sections
Returns: Formatted documentation with package metadata
Inputs: package_name (required), query, version_constraint. Returns: object
refresh_cacheB
Refresh the local documentation cache.
Returns: Statistics about cache refresh operation
Inputs: no named parameters. Returns: object
scan_dependenciesC
Scan project dependencies from pyproject.toml
Args: project_path: Path to project directory (defaults to current directory)
Returns: JSON with dependency specifications and project metadata
Inputs: project_path. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose with no overlap: get_cache_stats retrieves cache statistics, get_package_docs fetches documentation for a specific package, refresh_cache updates the cache, and scan_dependencies analyzes project dependencies. The descriptions clearly differentiate their functions, making tool selection unambiguous.
All tool names follow a consistent verb_noun pattern (get_cache_stats, get_package_docs, refresh_cache, scan_dependencies) using snake_case throughout. This predictability aids in understanding and usage without any deviations or mixed conventions.
With 4 tools, the count is reasonable for a documentation-focused server, covering key operations like fetching docs, scanning dependencies, and managing cache. It feels slightly thin but well-scoped, as each tool serves a distinct and necessary function without bloat.
The tool set covers core workflows for documentation retrieval and management: scanning dependencies, fetching package docs with caching, and cache operations. A minor gap exists in not having tools for updating or deleting cached docs, but agents can work around this with the provided refresh and get operations.
Maintenance
Related MCP Connectors
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β¦
Real-time Python package and vulnerability data for AI coding agents.
Package intelligence for AI agents across npm, PyPI, crates.io and deps.dev. No API keys.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides LLMs with up-to-date, version-specific documentation and code examples from library sources directly into prompts, eliminating outdated code generation and hallucinated APIs.1,132,421 npmMIT
- AlicenseAqualityDmaintenanceProvides up-to-date, version-specific documentation and code examples for libraries and frameworks directly into AI prompts, eliminating outdated code generation and hallucinated APIs.21,132,421 npmMIT
- 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-
- AlicenseNot gradedqualityDmaintenanceProvides real-time access to Python package documentation, source code, and symbol search to prevent AI hallucinations.271 PyPI7MIT