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.2.2.tar.gz.

File metadata

File hashes

Hashes for bibliocommons_mcp_package_version_check-1.2.2.tar.gz
Algorithm Hash digest
SHA256 1184b2dc5d87712a53c2d3997dc9d05f922a5d41b0e67dec0231c39362d6835d
MD5 f3882ec99a8e509e850a6a4e03ef9e66
BLAKE2b-256 fee718404a82cc215110fdc91c90864c67622950c9d1b7967238daea1e811596

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bibliocommons_mcp_package_version_check-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e50de95c95c5a0a87665aac0150a26147c29b5e07556ea17a0acc48a1ba1ca6
MD5 f1d6f563c3da145a0e0e7cb78a23e2d8
BLAKE2b-256 6beb7c1729eb3f16e1fd8e314ff06c42ad465e3b64862ad418128071de775a63

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