Skip to main content

A MCP server that returns the current, up-to-date version of packages you use as dependencies in a variety of ecosystems, such as Python, NPM, Go, or GitHub Actions

Project description

package-version-check-mcp

A MCP server that returns the current, up-to-date version of packages you use as dependencies in a variety of ecosystems, such as Python, NPM, Go, or GitHub Actions.

It also supports looking up the latest versions of almost 1000 tools, such as development runtimes like python, node, dotnet, development tools like gradle, and various DevOps tools like kubectl or terraform, via the mise-en-place tool.

Features

Supported ecosystems / tools:

  • Developer ecosystems:
    • NPM - Node.js packages from registry.npmjs.org
    • PyPI - Python packages from PyPI
    • NuGet - .NET packages from NuGet
    • Maven / Gradle - Java/Kotlin/Scala packages from Maven repositories (Maven Central, Google Maven, etc.)
    • Go - Go modules from proxy.golang.org
    • PHP - PHP packages from Packagist (used by Composer)
    • Ruby - Ruby gems from rubygems.org
    • Rust - Rust crates from crates.io
  • DevOps ecosystems:
    • Docker - Docker container images from Docker registries
    • Helm - Helm charts from ChartMuseum repositories and OCI registries
    • GitHub Actions - Actions hosted on GitHub.com, returning their current version, their inputs and outputs, and (optionally) their entire README with usage examples
    • Terraform Providers and Modules - Providers & Modules from Terraform Registry, OpenTofu Registry, or custom registries
    • Various tools such as kubectl, terraform, gradle, maven, etc. supported by mise-en-place

Usage

Adding the MCP to Your Agent

There are three ways to make this MCP available to your AI coding agent:

Option 1: Use the Hosted Service (Easiest)

Point your agent to the free hosted service:

https://package-version-check-mcp.onrender.com/mcp

in (streamable) HTTP mode.

This is the quickest way to get started. Note that the hosted service may have rate limits from the underlying package registries.

Option 2: Run with uvx (for local use)

Use uvx to run the MCP server locally:

uvx package-version-check-mcp --mode=stdio

This automatically installs and runs the latest version from PyPI.

Requirements:

  • You need the yq binary on PATH if you want to call tool get_latest_package_versions for the "helm" ecosystem
  • You need the mise binary on PATH if you want to call the tools get_supported_tools or get_latest_tool_versions

Optional but recommended: Set the GITHUB_PAT environment variable to a GitHub Personal Access Token (no scopes required) to avoid GitHub API rate limits.

Option 3: Run with Docker (for local use)

Use the pre-built Docker image:

docker run --pull=always --rm -i ghcr.io/mshekow/package-version-check-mcp:latest --mode=stdio

Optional but recommended: Pass the GITHUB_PAT environment variable using -e GITHUB_PAT=your_token_here to avoid GitHub API rate limits.

Configuring Your Agent

Once you've added the MCP server, you need to:

  1. Enable the MCP tools in your agent's configuration. The available tools are documented below

  2. Nudge the agent to use the MCP in your prompts. Most LLMs don't automatically invoke this MCP's tools without explicit guidance. Include instructions like:

    • "Use MCP to get latest versions"
    • "Check the latest package versions using the MCP tools"
    • "Use get_latest_package_versions to find the current version"

In case you forgot to add this prompt and your agent generated code with outdated versions, you can just ask your agent to update the versions afterwards (e.g., "Update the dependencies you just added to the latest version via MCP").

Available Tools

get_latest_package_versions

Fetches the latest versions of packages from various ecosystems.

Input:

  • packages: Array of package specifications, where each item contains:
    • ecosystem (required): Either "npm", "pypi", "docker", "nuget", "maven_gradle", "helm", "terraform_provider", "terraform_module", "go", "php", "rubygems", or "rust"
    • package_name (required): The name of the package
      • For npm: package name (e.g., "express")
      • For pypi: package name (e.g., "requests")
      • For docker: fully qualified image name including registry and namespace (e.g., "index.docker.io/library/busybox")
      • For nuget: package name (e.g., "Newtonsoft.Json")
      • For maven_gradle: "[registry:]:" format (e.g., "org.springframework:spring-core"). If registry is omitted, Maven Central is assumed.
      • For helm: Either ChartMuseum URL ("https://host/path/chart-name") or OCI reference ("oci://host/path/chart-name")
      • For terraform_provider: "[registry/]/" format (e.g., "hashicorp/aws" or "registry.terraform.io/hashicorp/aws"). If registry is omitted, registry.terraform.io is assumed. Supports alternative registries like registry.opentofu.org.
      • For terraform_module: "[registry/]//" format (e.g., "terraform-aws-modules/vpc/aws" or "registry.terraform.io/terraform-aws-modules/vpc/aws"). If registry is omitted, registry.terraform.io is assumed. Supports alternative registries like registry.opentofu.org.
      • For go: Absolute module identifier (e.g., "github.com/gin-gonic/gin")
      • For php: Package name in "vendor/package" format (e.g., "monolog/monolog", "laravel/framework")
      • For rubygems: Gem name (e.g., "rails", "devise")
      • For rust: Crate name (e.g., "serde", "tokio")
    • version_hint (optional):
      • For docker: tag compatibility hint (e.g., "1.36-alpine") to find the latest tag matching the same suffix pattern. If omitted, returns the latest semantic version tag.
      • For helm (OCI only): tag compatibility hint similar to Docker
      • For php: PHP version hint (e.g., "php:8.1" or "8.2") to filter packages compatible with that PHP version. If omitted, returns the latest stable version regardless of PHP compatibility.
      • For npm/pypi/nuget/maven_gradle/helm (ChartMuseum)/terraform_provider/terraform_module/go/rubygems/rust: not currently used

Output:

  • result: Array of successful lookups with:
    • ecosystem: The package ecosystem (as provided)
    • package_name: The package name (as provided)
    • latest_version: The latest version number (e.g., "1.2.4") or Docker tag
    • digest: (optional) Package digest/hash if available. For Docker, this is the manifest digest (sha256).
    • published_on: (optional) Publication date if available (not available for Docker)
  • lookup_errors: Array of errors with:
    • ecosystem: The package ecosystem (as provided)
    • package_name: The package name (as provided)
    • error: Description of the error

Example:

{
  "packages": [
    {"ecosystem": "npm", "package_name": "express"},
    {"ecosystem": "pypi", "package_name": "requests"},
    {"ecosystem": "nuget", "package_name": "Newtonsoft.Json"},
    {"ecosystem": "maven_gradle", "package_name": "org.springframework:spring-core"},
    {"ecosystem": "docker", "package_name": "index.docker.io/library/alpine", "version": "3.19-alpine"},
    {"ecosystem": "helm", "package_name": "https://charts.bitnami.com/bitnami/nginx"},
    {"ecosystem": "helm", "package_name": "oci://ghcr.io/argoproj/argo-helm/argo-cd"},
    {"ecosystem": "terraform_provider", "package_name": "hashicorp/aws"},
    {"ecosystem": "terraform_module", "package_name": "terraform-aws-modules/vpc/aws"},
    {"ecosystem": "go", "package_name": "github.com/gin-gonic/gin"},
    {"ecosystem": "php", "package_name": "monolog/monolog"},
    {"ecosystem": "php", "package_name": "laravel/framework", "version": "php:8.1"},
    {"ecosystem": "rubygems", "package_name": "rails"},
    {"ecosystem": "rust", "package_name": "serde"}
  ]
}

get_github_action_versions_and_args

Fetches the latest versions and metadata for GitHub Actions hosted on github.com.

Input:

  • action_names (required): Array of action names in "owner/repo" format (e.g., ["actions/checkout", "docker/login-action"])
  • include_readme (optional): Boolean (default: false), whether to include the action's README.md with usage instructions

Output:

  • result: Array of successful lookups with:
    • name: The action name (as provided)
    • latest_version: The most recent Git tag (e.g., "v3.2.4")
    • metadata: The action.yml metadata as an object with fields:
      • inputs: Action input parameters
      • outputs: Action outputs
      • runs: Execution configuration
    • readme: (optional) The action's README content if include_readme was true
  • lookup_errors: Array of errors with:
    • name: The action name (as provided)
    • error: Description of the error

Example:

{
  "action_names": ["actions/checkout", "actions/setup-python"],
  "include_readme": false
}

get_supported_tools

Returns a list of all tool names supported by the get_latest_tool_versions MCP tool.

This tool queries the mise registry to retrieve all available tool names that can be managed by mise.

Input:

  • No parameters required

Output:

  • Array of tool short names (e.g., ["1password", "act", "node", "python", ...])

Example:

{}

Example Response:

{
  "result": ["1password", "1password-cli", "aapt2", "act", "action-validator", "actionlint", "node", "python", ...]
}

get_latest_tool_versions

Fetches the latest stable versions of development and DevOps tools supported by mise-en-place.

This tool is for tools that are NOT part of language ecosystems like PyPI or NPM. For language ecosystem packages, use get_latest_package_versions instead.

Use cases:

  • gradle or maven: Pin the Gradle or Maven version in the distributionUrl in gradle-wrapper.properties or maven-wrapper.properties
    • Example: distributionUrl=https://services.gradle.org/distributions/gradle-8.5-bin.zip
    • Example: distributionUrl=https://repo.maven.apache.org/.../apache-maven-3.9.6-bin.zip
  • terraform: Pin terraform.required_version in a file like version.tf or versions.tf
    • Example: terraform { required_version = "~> 1.6.0" }
  • kubectl or azure: Pin the version in a download URL called with curl or wget, e.g., in a Dockerfile
    • Example: RUN curl -LO https://dl.k8s.io/release/v1.28.0/bin/linux/amd64/kubectl

To see all available tools, use the get_supported_tools tool.

Input:

  • tool_names (required): Array of tool names (e.g., ["terraform", "gradle", "kubectl"])

Output:

  • result: Array of successful lookups with:
    • tool_name: The tool name (as provided)
    • latest_version: The latest stable version number (e.g., "1.6.5")
  • lookup_errors: Array of errors with:
    • tool_name: The tool name (as provided)
    • error: Description of the error

Example:

{
  "tool_names": ["terraform", "gradle", "kubectl"]
}

Example Response:

{
  "result": [
    {"tool_name": "terraform", "latest_version": "1.14.4"},
    {"tool_name": "gradle", "latest_version": "8.5"},
    {"tool_name": "kubectl", "latest_version": "1.28.0"}
  ],
  "lookup_errors": []
}

Development

Prerequisites

yq

For Helm ChartMuseum support, the server requires yq (a fast YAML processor) to be installed:

Without yq, Helm ChartMuseum repositories will not work (OCI Helm charts will still work).

mise-en-place

The MCP server depends on the mise-en-place package for looking up tool versions. See https://mise.jdx.dev/installing-mise.html for installation instructions.

Running the Server Manually (For Development)

If you're developing or testing the MCP server locally, you can run it directly.

First, follow the Package management with Poetry -> Setup instructions to configure your virtual environments.

Next:

.poetry/bin/poetry run python -m package_version_check_mcp.main

Or if you have the .venv activated:

python src/package_version_check_mcp/main.py

Package management with Poetry

Setup

On a new machine, create a venv for Poetry (in path <project-root>/.poetry), and one for the project itself (in path <project-root>/.venv), e.g. via C:\Users\USER\AppData\Local\Programs\Python\Python312\python.exe -m venv <path>. This separation is necessary to avoid dependency conflicts between the project and Poetry.

Using the pip of the Poetry venv, install Poetry via pip install -r requirements-poetry.txt

Then, run poetry sync --all-extras, but make sure that either no venv is active, or the .venv one, but not the .poetry one (otherwise Poetry would stupidly install the dependencies into that one, unless you previously ran poetry config virtualenvs.in-project true). The --all-extras flag is required to install development dependencies, such as pytest.

Updating dependencies

  • When dependencies changed from the outside, e.g. because Renovate updated the pyproject.toml and poetry.lock file, run poetry sync --all-extras to update your local environment. This removes any obsolete dependencies from your .venv venv.
  • If you updated a dependency in pyproject.toml, run poetry update && poetry sync --all-extras to update the lock file and install the updated dependencies including extras.
  • To only update the transitive dependencies (keeping the ones in pyproject.toml the same), run poetry update && poetry sync --all-extras, which updates the lock file and installs the updates into the active venv.

Make sure that either no venv is active (or the .venv venv is active) while running any of the above poetry commands.

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

package_version_check_mcp-0.0.6.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

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

package_version_check_mcp-0.0.6-py3-none-any.whl (41.2 kB view details)

Uploaded Python 3

File details

Details for the file package_version_check_mcp-0.0.6.tar.gz.

File metadata

File hashes

Hashes for package_version_check_mcp-0.0.6.tar.gz
Algorithm Hash digest
SHA256 8c0b5543edb5ada1ee872961a96d2c284f0e5e82fae80a4da9a09945226b2b80
MD5 6621de165b88e4482cc8106190a34816
BLAKE2b-256 516aec600e9ccf38bcd8f635bcb5a11d48f3fd90b7f8314310889b09a67cdfe7

See more details on using hashes here.

Provenance

The following attestation bundles were made for package_version_check_mcp-0.0.6.tar.gz:

Publisher: ci-cd.yml on MShekow/package-version-check-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file package_version_check_mcp-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for package_version_check_mcp-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fec59067e7401b8e10cb6aa361fd105f311ff9d3613a01060cd82196b88f5c89
MD5 667a38d80bba6b271c5628a9c88ed1c2
BLAKE2b-256 d9437a1b9f3a0ed00ec199d8ae446afead698f8b46a56b558848281e5a2cead9

See more details on using hashes here.

Provenance

The following attestation bundles were made for package_version_check_mcp-0.0.6-py3-none-any.whl:

Publisher: ci-cd.yml on MShekow/package-version-check-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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