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 "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., "@AutoDocs MCP Servershow 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
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool returns 'Cache statistics and information', which implies a read-only operation, but doesn't clarify aspects like whether it requires authentication, has rate limits, or what specific statistics are included. This leaves gaps in understanding the tool's behavior beyond its basic function.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and well-structured, with two sentences that efficiently convey the tool's purpose and return value. It avoids unnecessary details, making it easy to parse. However, it could be slightly more front-loaded by integrating the return information into the first sentence for better clarity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (0 parameters, no annotations, but has an output schema), the description is adequate but incomplete. It explains what the tool does and what it returns, but lacks context on usage guidelines and behavioral traits. The presence of an output schema reduces the need to detail return values, but more guidance on when to use this tool would enhance completeness.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has 0 parameters, and schema description coverage is 100%, so there are no parameters to document. The description doesn't need to add parameter details, and it appropriately doesn't mention any. This meets the baseline for tools with no parameters, as there's nothing to compensate for.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('Get') and resource ('statistics about the documentation cache'), making it easy to understand what it does. However, it doesn't explicitly differentiate from sibling tools like 'refresh_cache' or 'scan_dependencies', which also relate to the cache but perform different operations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention scenarios for usage, prerequisites, or comparisons to sibling tools such as 'refresh_cache' (which might update the cache) or 'get_package_docs' (which might retrieve cached documentation). This lack of context leaves the agent without clear direction.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
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
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | ||
| query | No | ||
| version_constraint | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It adds value by mentioning 'version-based caching', which hints at performance optimization and data freshness considerations. However, it lacks details on error handling, rate limits, authentication needs, or what 'formatted documentation' entails structurally. For a tool with no annotations, this leaves significant gaps in understanding its operational behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured and front-loaded: the first sentence states the core purpose, followed by a clear 'Args' and 'Returns' section. Every sentence earns its place by providing essential information without redundancy. It's appropriately sized for a tool with three parameters and an output schema.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (3 parameters, no annotations, but with an output schema), the description is reasonably complete. The output schema handles return value details, so the description doesn't need to explain 'formatted documentation' further. It covers the tool's purpose and parameter semantics adequately, though usage guidelines and deeper behavioral context are lacking.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It provides semantic context for all three parameters: 'package_name' is for fetching documentation, 'version_constraint' ties to dependency scanning, and 'query' filters documentation sections. This adds meaningful interpretation beyond the bare schema, though it doesn't specify format details (e.g., what a valid 'version_constraint' looks like).
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Retrieve formatted documentation for a package with version-based caching.' It specifies the verb ('retrieve'), resource ('documentation'), and a key behavioral trait ('version-based caching'). However, it doesn't explicitly differentiate from sibling tools like 'scan_dependencies' or 'get_cache_stats', which could help an agent understand when to choose this tool over others.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It mentions 'version-based caching' but doesn't explain how this relates to sibling tools like 'refresh_cache' or 'get_cache_stats'. There's no mention of prerequisites, typical use cases, or exclusions, leaving the agent with minimal context for tool selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
refresh_cacheB
Refresh the local documentation cache.
Returns: Statistics about cache refresh operation
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool refreshes a cache and returns statistics, but lacks details on side effects (e.g., whether it blocks other operations, requires permissions, or has rate limits). This is a significant gap for a mutation tool with zero annotation coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise and front-loaded, with two sentences that directly state the action and return value without any waste. Every sentence earns its place by providing essential information efficiently.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (a mutation operation with no annotations) and the presence of an output schema (which covers return values), the description is minimally adequate. It explains the core action but lacks behavioral context like side effects or prerequisites, making it incomplete for safe agent use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has 0 parameters with 100% schema description coverage, so the schema fully documents the absence of inputs. The description doesn't need to add parameter semantics, and it appropriately avoids redundant information, earning a high baseline score.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('Refresh') and resource ('local documentation cache'), making it immediately understandable. However, it doesn't explicitly differentiate this from sibling tools like 'get_cache_stats' or 'scan_dependencies' beyond the refresh action, which prevents a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'get_cache_stats' or 'scan_dependencies'. It mentions a return value but doesn't specify contexts such as after dependency changes or before documentation lookups, leaving usage unclear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
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
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions scanning dependencies and returning JSON, but fails to detail critical aspects like error handling (e.g., if pyproject.toml is missing), performance implications, or any side effects. This leaves significant gaps for an agent to understand the tool's behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately sized and front-loaded, with the core purpose stated first followed by structured sections for args and returns. There's minimal waste, though the 'Args:' and 'Returns:' labels could be slightly more integrated into the flow.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (scanning dependencies), no annotations, and an output schema present (which handles return values), the description is partially complete. It covers the basic operation and parameters but lacks details on errors, dependencies on external files, or integration with sibling tools, leaving room for improvement.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 0%, so the description must compensate. It adds meaning by explaining that 'project_path' defaults to the current directory and specifies the file type ('pyproject.toml'), which clarifies beyond the schema's generic 'Project Path' title. However, it doesn't cover parameter constraints or format details, keeping the score at baseline.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Scan project dependencies') and the resource ('from pyproject.toml'), making the purpose specific and understandable. However, it doesn't explicitly differentiate from sibling tools like 'get_package_docs' or 'refresh_cache', which prevents a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives. The description lacks context about prerequisites, such as whether the project must have a pyproject.toml file, or comparisons to siblings like 'get_package_docs' for documentation retrieval.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.879,513MIT
- 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.2879,513MIT
- 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 gradedqualityCmaintenanceProvides real-time access to Python package documentation, source code, and symbol search to prevent AI hallucinations.6MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/bradleyfay/autodoc-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server