Skip to main content
Glama

SnapDepDoc

CI PyPI version License: MIT

Snapshot your dependencies, access version-perfect documentation

An MCP (Model Context Protocol) server that parses project definition files and exposes library documentation with the correct versions for AI development assistance.

πŸ“– New to SnapDepDoc? Check out the Getting Started Guide for a complete walkthrough!

πŸš€ Features

  • Multi-format support: Parse pyproject.toml, package.json, pom.xml, build.gradle, build.sbt, and more

  • Version-aware documentation: Fetch documentation for the exact versions specified in your project

  • Tool-based interface: Expose project information through MCP tools

  • Resource access: Provide dependency documentation as MCP resources

  • 8 Ecosystem Support: Python, Node.js, Java/Maven, Gradle, Scala/SBT, Rust, Go, and Ruby

Related MCP server: Vibe Coder MCP Server

Supported Project Types

  • Python: pyproject.toml, requirements.txt, setup.py

  • Node.js: package.json, package-lock.json

  • Java: pom.xml (Maven), build.gradle (Gradle)

  • Scala: build.sbt (SBT)

  • Rust: Cargo.toml

  • Go: go.mod

  • Ruby: Gemfile

πŸ“¦ Installation

From PyPI (when released)

# Using pip
pip install snapdepdoc

# Using uv (recommended)
uv pip install snapdepdoc

From Source

# Clone the repository
git clone https://github.com/thec0dewriter/docs_mcp.git
cd docs_mcp

# Using uv (recommended)
uv pip install -e .

# Or using pip
pip install -e .

🎯 Quick Start

1. Install the package

pip install snapdepdoc

2. Configure your MCP client

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "snapdepdoc": {
      "command": "snapdepdoc"
    }
  }
}

VS Code (.vscode/mcp.json in your project):

{
  "servers": {
    "snapdepdoc": {
      "type": "stdio",
      "command": "snapdepdoc"
    }
  }
}

3. Start using it!

Ask your AI assistant:

  • "What project files are in my directory?"

  • "What are the dependencies in my pyproject.toml?"

  • "Where can I find documentation for FastAPI version 0.104.0?"

See the examples directory for more usage scenarios.

πŸ› οΈ Usage

As an MCP Server

Development Setup (from source)

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "snapdepdoc": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/docs_mcp",
        "run",
        "snapdepdoc"
      ]
    }
  }
}

Or in VS Code (.vscode/mcp.json):

{
  "servers": {
    "snapdepdoc": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/docs_mcp",
        "run",
        "snapdepdoc"
      ]
    }
  }
}

Installed via pip

{
  "mcpServers": {
    "snapdepdoc": {
      "command": "snapdepdoc"
    }
  }
}

πŸ“š Available Tools

The server exposes the following MCP tools:

  • list_project_files: Discover project definition files in a directory

  • parse_dependencies: Extract dependencies from project files with versions

  • get_documentation_url: Get documentation URLs for specific library versions

  • search_api_documentation: Search for API documentation within libraries

πŸ“– Available Resources

MCP resources for direct access:

  • dependencies://{project_path}: List all dependencies with versions from a project

  • docs://{library}@{version}: Access documentation for a specific library version

    • Examples: docs://fastapi@0.104.0, docs://npm:react@18.2.0, docs://mvn:org.springframework:spring-core@6.0.0

πŸ—οΈ Supported Ecosystems

Ecosystem

Project Files

Documentation Sources

Python

pyproject.toml, requirements.txt, setup.py

PyPI, ReadTheDocs

Node.js

package.json, package-lock.json

npm registry

Java/Maven

pom.xml

Maven Central, Javadoc

Gradle

build.gradle, build.gradle.kts

Maven Central

Scala/SBT

build.sbt

Maven Central, Scaladoc

Rust

Cargo.toml

crates.io

Go

go.mod

pkg.go.dev

Ruby

Gemfile

RubyGems

πŸ”§ Development

# Install development dependencies
uv pip install -e ".[dev]"

# Run tests
pytest

# Format code
black .
ruff check --fix .

See CONTRIBUTING.md for detailed development guidelines.

πŸ“ Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ—ΊοΈ Roadmap

  • Add more ecosystem support (PHP Composer, .NET NuGet, etc.)

  • Implement caching for documentation URLs

  • Add support for private package registries

  • Enhance search functionality with fuzzy matching

  • Add support for monorepo structures

  • Integration with more MCP clients

πŸ› Troubleshooting

Server not starting

  • Ensure Python 3.10+ is installed

  • Verify the installation: snapdepdoc --help

  • Check MCP client logs for error messages

Dependencies not parsing correctly

  • Ensure your project file is valid and properly formatted

  • Check the examples directory for reference formats

Documentation URLs not found

  • Some packages may not have standard documentation URLs

  • Verify the package name and version are correct

  • Check your internet connection for API requests

For more issues, please check our GitHub Issues.

πŸ“š Learn More

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to access up-to-date library documentation through MCP tools for resolving library IDs and querying docs.
      55 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI clients to retrieve version-aware, source-linked developer documentation and resolve library versions through read-only MCP tools.
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI-assisted development tools to scan repositories, build dependency graphs, assess change impact and blast radius, explain files, and identify safe edit targets through MCP tools.
      5
      MIT