python-dependency-manager-companion-mcp-server

The Python Dependency Manager Companion MCP Server is a tool that automatically updates and cross-references the latest Python package manager commands with official documentation. It can be easily set up using Docker and integrated into IDEs, allowing users to ask questions about package managers and receive accurate, up-to-date information.

GitHub Stars

40

User Rating

Not Rated

Favorites

0

Views

20

Forks

2

Issues

4

README
Python Dependency Manager Companion MCP Server

README updated on 2025-08-16 by @KemingHe

Stop getting out-of-date Python package manager commands from your AI. Cross-reference latest official pip, conda, poetry, uv, pixi, and pdm docs with auto-updates. [Watch Demo on YouTube]

πŸš€ Quick Start for Agentic IDEs

1. Pull Docker image:

# Pin to commit hash for production security
# Get current hash from: https://hub.docker.com/r/keminghe/py-dep-man-companion/tags
docker pull keminghe/py-dep-man-companion@sha256:2c896dc617e8cd3b1a1956580322b0f0c80d5b6dfd09743d90859d2ef2b71ec6  # 2025-07-22 release example

# Or use latest for development
docker pull keminghe/py-dep-man-companion:latest

2. Add to your IDE's mcp.json:

{
  "mcp": {
    "servers": {
      "python-deps": {
        "command": "docker",
        "args": ["run", "-i", "--rm", "keminghe/py-dep-man-companion"]
      }
    }
  }
}

3. Ask package manager questions - "How to migrate a conda project to uv?" and get accurate, current official syntax.

🀝 Contributing

Use as template: [Create from template] for your own MCP server projects.

Contribute back: Fork and follow CONTRIBUTING.md for development setup.

πŸ”„ Auto-Update Architecture
  1. ⏰ Every Tuesday 6pm ET
  2. πŸ“š Sync Official Docs
  3. πŸ” Rebuild Search Index
  4. 🐳 Publish Latest Image
πŸ—ΊοΈ Roadmap
  • Added support for pixi and pdm in version 0.1.1
  • Add comprehensive tests with 100% coverage
  • Add indexing support for PDF and CSV files
πŸ“ Project Structure
python-dependency-manager-companion-mcp-server/
β”œβ”€β”€ .github/workflows/            # Automation workflows
β”‚   β”œβ”€β”€ auto-update-docs.yml      # Weekly docs update
β”‚   β”œβ”€β”€ auto-update-index.yml     # Search index rebuild
β”‚   β”œβ”€β”€ auto-update-publish.yml   # Multi-arch Docker publish
β”‚   β”œβ”€β”€ auto-update.yml           # Combined automation
β”‚   └── README.md                 # Workflow documentation
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/               # Documentation source files
β”‚   β”‚   β”œβ”€β”€ conda/            # conda docs  
β”‚   β”‚   β”œβ”€β”€ pip/              # pip docs
β”‚   β”‚   β”œβ”€β”€ poetry/           # poetry docs
β”‚   β”‚   β”œβ”€β”€ uv/               # uv docs
β”‚   β”‚   β”œβ”€β”€ pixi/             # pixi docs
β”‚   β”‚   └── pdm/              # pdm docs
β”‚   β”œβ”€β”€ index/                # Pre-built search index
β”‚   β”œβ”€β”€ build_index.py        # Tantivy index builder
β”‚   └── mcp_server.py         # FastMCP stdio server
β”œβ”€β”€ Dockerfile                # Container build configuration
β”œβ”€β”€ pyproject.toml            # Project dependencies and metadata
└── uv.lock                   # Locked dependencies
πŸ“„ License

This project is licensed under the MIT License - a permissive license that allows free use, modification, and distribution with attribution.

πŸ“ž Support

Open a GitHub issue for bug reports and feature requests.