uv-docs-mcp

uv-docs-mcp

3.4

An MCP server providing programmatic access to UV documentation through a standardized API.

The UV Documentation MCP Server offers a structured API to access UV documentation, leveraging a modern hierarchical resource structure. It exposes both high-level documentation sections and detailed command documentation as individual MCP resources. The server is built with a modular architecture, separating concerns into resource, tools, and prompts layers. This design allows for efficient documentation queries and updates, making it suitable for integration with AI assistants and other MCP clients.

Features

  • Hierarchical Resource Structure: Access UV documentation via a structured URI scheme, allowing detailed queries.
  • Modular Architecture: Separates concerns into resource, tools, and prompts layers for efficient operation.
  • Version-aware Caching: Optimizes documentation retrieval with automatic and manual cache updates.
  • Streamlined Tools: Provides operational commands for cache management and real-time documentation searches.
  • Pre-built Prompts: Supplies templates for generating documentation summaries and other tasks.

MCP Tools

  • {'update_cache': 'Updates the documentation cache if the live version has changed.'}
  • {'search_documentation': 'Performs real-time searches over the UV documentation.'}

MCP Resources

  • {'Base Section': 'uv-docs://cli returns the list of all CLI commands.'}
  • {'Command Level': 'uv-docs://cli/uv-cache returns metadata about the uv cache command.'}
  • {'Subsection Level': 'uv-docs://cli/uv-cache/uv-cache-dir returns detailed documentation content for the uv cache dir section.'}

Usage with Different Platforms

Claude Desktop


{
  "mcpServers": {
    "uv-docs": {
      "command": "uv",
      "args": [
        "--directory",
        "/Users/steven/Git/MCP/uv-docs",
        "run",
        "uv-docs"
      ]
    }
  }
}

Published Configuration


{
  "mcpServers": {
    "uv-docs": {
      "command": "uvx",
      "args": [
        "uv-docs"
      ]
    }
  }
}

Debugging with MCP Inspector

bash
npx @modelcontextprotocol/inspector uv --directory /Users/steven/Git/MCP/uv-docs run uv-docs