Skip to main content

MCP server for checking latest package versions across 14 ecosystems

Project description

Package Version Check MCP Server

MCP server for checking latest stable package versions across 14 ecosystems. Supports Docker tag hints for suffix matching (e.g., 3.12-alpine), Helm OCI registries, and GitHub Actions metadata lookup with optional README inclusion.

Configuration

No authentication required for most registries. Optional GITHUB_PAT for higher GitHub API rate limits (Swift packages, GitHub Actions).

Environment Variables

Variable Default Description
GITHUB_PAT (none) GitHub personal access token for higher rate limits
PACKAGE_VERSION_TIMEOUT 15 HTTP request timeout in seconds
PACKAGE_VERSION_TRANSPORT stdio Transport mode: stdio or http
PACKAGE_VERSION_PORT 8000 Port for HTTP transport mode

Installation

Option 1: Using uvx (Recommended)

curl -LsSf https://astral.sh/uv/install.sh | sh

No additional installation needed — uvx handles dependencies automatically.

Option 2: Using pip

pip install bibliocommons-mcp-package-version-check
# or for development
pip install -e ".[dev]"

AI Client Setup

VS Code (with MCP Extension)

{
  "mcp.servers": {
    "package-version-check": {
      "command": "uvx",
      "args": ["--from", "/absolute/path/to/package-version-check", "bibliocommons-mcp-package-version-check"]
    }
  }
}

Claude Desktop

{
  "mcpServers": {
    "package-version-check": {
      "command": "uvx",
      "args": ["--from", "/absolute/path/to/package-version-check", "bibliocommons-mcp-package-version-check"]
    }
  }
}

Kiro IDE

{
  "mcpServers": {
    "package-version-check": {
      "command": "uvx",
      "args": ["--from", "/absolute/path/to/package-version-check", "bibliocommons-mcp-package-version-check"]
    }
  }
}

Kiro CLI

Create or edit ~/.kiro/settings/mcp.json:

{
  "mcpServers": {
    "package-version-check": {
      "command": "uvx",
      "args": ["--from", "/absolute/path/to/package-version-check", "bibliocommons-mcp-package-version-check"]
    }
  }
}

Configuration Notes

  • Replace /absolute/path/to/package-version-check/ with the actual path to your server directory
  • Set GITHUB_PAT environment variable for higher GitHub API rate limits
  • After adding the configuration, restart your AI client for changes to take effect

For other AI clients (Amazon Q, GitHub Copilot, Cline, Zed, Cursor), see docs/ai-clients.md.

Docker

# Pull from Docker Hub (private)
docker pull bibliocommons/mcp-package-version-check:latest

# Run in stdio mode
docker run -i --rm \
  -v /path/to/config.json:/config.json:ro \
  bibliocommons/mcp-package-version-check:latest \
  --config /config.json

# Run in HTTP mode
docker run -d --rm \
  -v /path/to/config.json:/config.json:ro \
  -p 8000:8000 \
  bibliocommons/mcp-package-version-check:latest \
  --config /config.json --transport http --port 8000

# Run in expanded mode
docker run -i --rm \
  -v /path/to/config.json:/config.json:ro \
  bibliocommons/mcp-package-version-check:latest \
  --config /config.json --expanded

Supported Ecosystems

Ecosystem Registry Package Format
npm npmjs.org express, @angular/core
pypi pypi.org requests, django
nuget nuget.org Newtonsoft.Json
maven_gradle Maven Central / Google Maven group:artifact or google:group:artifact
go proxy.golang.org golang.org/x/net
php packagist.org laravel/framework
rubygems rubygems.org rails
rust crates.io serde
swift GitHub tags github.com/owner/repo
dart pub.dev flutter
docker Docker Hub / any registry python, ghcr.io/org/image
helm ChartMuseum / OCI https://repo/chart or oci://registry/chart
terraform_provider Terraform Registry hashicorp/aws
terraform_module Terraform Registry hashicorp/consul/aws

Examples

Check package versions

{
  "tool": "get_latest_package_versions",
  "arguments": {
    "packages": [
      {"ecosystem": "npm", "package_name": "express"},
      {"ecosystem": "pypi", "package_name": "django"},
      {"ecosystem": "docker", "package_name": "python", "version_hint": "3.12-alpine"},
      {"ecosystem": "helm", "package_name": "oci://ghcr.io/org/charts/app"},
      {"ecosystem": "terraform_provider", "package_name": "hashicorp/aws"}
    ]
  }
}

Check GitHub Actions

{
  "tool": "get_github_action_versions",
  "arguments": {
    "action_names": ["actions/checkout", "docker/login-action"],
    "include_readme": false
  }
}

Standalone MCP Server

python -m bibliocommons_mcp_package_version_check
# or with HTTP transport
python -m bibliocommons_mcp_package_version_check --transport http --port 8000

CLI Flags

Flag Env Var Description
--expanded PACKAGE_VERSION_EXPANDED Register all tools individually instead of gateway mode
--transport stdio|http PACKAGE_VERSION_TRANSPORT Transport mode (default: stdio)
--port PORT PACKAGE_VERSION_PORT HTTP port (default: 8000)
--version Show version and exit

Gateway Mode (Default)

By default, the server exposes 2 tools instead of individual tools:

Tool Purpose
package_version_api Execute any package version action by name with a params dict
package_version_help Search available actions, parameters, and descriptions

The AI assistant calls package_version_help to discover available actions, then calls package_version_api(action="get_latest_package_versions", params={"packages": [...]}) to execute them.

To register all individual tools (previous behavior), use --expanded:

python -m bibliocommons_mcp_package_version_check --expanded

Security Notes

  • No credentials required for public registries
  • GITHUB_PAT is optional and only needed for higher rate limits
  • All requests use HTTPS
  • Docker registry auth tokens are ephemeral (per-request)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file bibliocommons_mcp_package_version_check-1.3.4.tar.gz.

File metadata

File hashes

Hashes for bibliocommons_mcp_package_version_check-1.3.4.tar.gz
Algorithm Hash digest
SHA256 9106380c9756411cfd6d31cd1f250ce4d6889ef7365b3959d55c205ec61c7425
MD5 50e62814e011797dbcdfb240ec6c6bd0
BLAKE2b-256 ab02abea958d5e5a09fe641845bb698f8c7f718022736c6f54f185281593ab98

See more details on using hashes here.

File details

Details for the file bibliocommons_mcp_package_version_check-1.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for bibliocommons_mcp_package_version_check-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 920df3688c49d79057b58d2a02f8fed5531286e81ecff26df7147e8fc01fb1e3
MD5 df9e5cf46b19dc0a9fb28f37d2b5ef5c
BLAKE2b-256 2c98768e395311396f5898419994c1df33739bab64448890d82b9a95c5cfb8bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page