pypi-query-mcp-server
v0.6.5A Model Context Protocol (MCP) server for querying PyPI package information, dependencies, and compatibility
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_package_info
Query comprehensive information about a PyPI package. This tool retrieves detailed information about a Python package from PyPI, including metadata, description, author information, dependencies, and more. Args: package_name: The name of the PyPI package to query (e.g., 'requests', 'django') Returns: Dictionary containing comprehensive package information including: - Basic metadata (name, version, summary, description) - Author and maintainer information - License and project URLs - Python version requirements - Dependencies and classifiers - Version history…
| Parameter | Type | Description |
|---|---|---|
package_name * | string |
get_package_versions
Get version information for a PyPI package. This tool retrieves comprehensive version information for a Python package, including all available versions, release details, and distribution formats. Args: package_name: The name of the PyPI package to query (e.g., 'requests', 'numpy') Returns: Dictionary containing version information including: - Latest version and total version count - List of all available versions (sorted) - Recent versions with release details - Distribution format information (wheel, source) Raises: InvalidPackageNameError: If package name is…
| Parameter | Type | Description |
|---|---|---|
package_name * | string |
get_package_dependencies
Get dependency information for a PyPI package. This tool retrieves comprehensive dependency information for a Python package, including runtime dependencies, development dependencies, and optional dependencies. Args: package_name: The name of the PyPI package to query (e.g., 'django', 'flask') version: Specific version to query (optional, defaults to latest version) Returns: Dictionary containing dependency information including: - Runtime dependencies and development dependencies - Optional dependency groups - Python version requirements - Dependency counts and…
| Parameter | Type | Description |
|---|---|---|
package_name * | string | |
version |
check_package_python_compatibility
Check if a package is compatible with a specific Python version. This tool analyzes a package's Python version requirements and determines if it's compatible with your target Python version. Args: package_name: The name of the PyPI package to check (e.g., 'django', 'requests') target_python_version: Target Python version to check (e.g., '3.9', '3.10.5', '3.11') use_cache: Whether to use cached package data (default: True) Returns: Dictionary containing detailed compatibility information including: - Compatibility status (True/False) - Source of compatibility informat…
| Parameter | Type | Description |
|---|---|---|
package_name * | string | |
target_python_version * | string | |
use_cache | boolean |
get_package_compatible_python_versions
Get all Python versions compatible with a package. This tool analyzes a package and returns which Python versions are compatible with it, along with recommendations. Args: package_name: The name of the PyPI package to analyze (e.g., 'numpy', 'pandas') python_versions: List of Python versions to check (optional, defaults to common versions) use_cache: Whether to use cached package data (default: True) Returns: Dictionary containing compatibility information including: - List of compatible Python versions - List of incompatible versions with reasons - Compatibility…
| Parameter | Type | Description |
|---|---|---|
package_name * | string | |
python_versions | ||
use_cache | boolean |
resolve_dependencies
Resolve all dependencies for a PyPI package recursively. This tool performs comprehensive dependency resolution for a Python package, analyzing the complete dependency tree including transitive dependencies. Args: package_name: The name of the PyPI package to analyze (e.g., 'pyside2', 'django') python_version: Target Python version for dependency filtering (e.g., '3.10', '3.11') include_extras: List of extra dependency groups to include (e.g., ['dev', 'test']) include_dev: Whether to include development dependencies (default: False) max_depth: Maximum recursion depth for…
| Parameter | Type | Description |
|---|---|---|
package_name * | string | |
include_dev | boolean | |
include_extras | ||
max_depth | integer | |
python_version |
download_package
Download a PyPI package and all its dependencies to local directory. This tool downloads a Python package and all its dependencies, providing comprehensive package collection for offline installation or analysis. Args: package_name: The name of the PyPI package to download (e.g., 'pyside2', 'requests') download_dir: Local directory to download packages to (default: './downloads') python_version: Target Python version for compatibility (e.g., '3.10', '3.11') include_extras: List of extra dependency groups to include (e.g., ['dev', 'test']) include_dev: Whether to include d…
| Parameter | Type | Description |
|---|---|---|
package_name * | string | |
download_dir | string | |
include_dev | boolean | |
include_extras | ||
max_depth | integer | |
prefer_wheel | boolean | |
python_version | ||
verify_checksums | boolean |
get_download_statistics
Get download statistics for a PyPI package. This tool retrieves comprehensive download statistics for a Python package, including recent download counts, trends, and analysis. Args: package_name: The name of the PyPI package to analyze (e.g., 'requests', 'numpy') period: Time period for recent downloads ('day', 'week', 'month', default: 'month') use_cache: Whether to use cached data for faster responses (default: True) Returns: Dictionary containing download statistics including: - Recent download counts (last day/week/month) - Package metadata and repository informa…
| Parameter | Type | Description |
|---|---|---|
package_name * | string | |
period | string | |
use_cache | boolean |
get_download_trends
Get download trends and time series for a PyPI package. This tool retrieves detailed download trends and time series data for a Python package, providing insights into download patterns over the last 180 days. Args: package_name: The name of the PyPI package to analyze (e.g., 'django', 'flask') include_mirrors: Whether to include mirror downloads in analysis (default: False) use_cache: Whether to use cached data for faster responses (default: True) Returns: Dictionary containing download trends including: - Time series data for the last 180 days - Trend analysis (inc…
| Parameter | Type | Description |
|---|---|---|
package_name * | string | |
include_mirrors | boolean | |
use_cache | boolean |
get_top_downloaded_packages
Get the most downloaded PyPI packages. This tool retrieves a list of the most popular Python packages by download count, helping you discover trending and widely-used packages in the Python ecosystem. Args: period: Time period for download ranking ('day', 'week', 'month', default: 'month') limit: Maximum number of packages to return (default: 20, max: 50) Returns: Dictionary containing top packages information including: - Ranked list of packages with download counts - Package metadata and repository links - Period and ranking information - Data source and limita…
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
period | string |