Skip to main content
Glama

AutoDocs MCP Server

by bradleyfay

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_dependencies MCP tool
  • 🚧 Testing with real projects

Coming next: Documentation fetching, version-based caching, and rich dependency context.

License

MIT

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

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.

  1. Features
    1. Installation
      1. Usage
        1. As an MCP Server
        2. Development
      2. MCP Tools
        1. scan_dependencies
        2. get_package_docs (Coming Soon)
      3. Configuration
        1. Architecture
          1. Development Status
            1. License

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
                Last updated -
                11
                605
                75
                TypeScript
                MIT License
              • A
                security
                A
                license
                A
                quality
                Get the narrative and API documentation for the exact version of any of your dependencies. (Only Rust is supported at the moment.)
                Last updated -
                1
                3
                58
                TypeScript
                MIT License
              • A
                security
                A
                license
                A
                quality
                Fetches and extracts comprehensive package documentation from multiple programming language ecosystems (JavaScript, Python, Java, etc.) for LLMs like Claude without requiring API keys.
                Last updated -
                4
                665
                14
                JavaScript
                MIT License
                • Apple
                • Linux
              • -
                security
                F
                license
                -
                quality
                Enables AI assistants to search for documentation of packages and services, providing implementation details, examples, and specifications through a specialized API.
                Last updated -
                1
                1
                JavaScript

              View all related MCP servers

              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