Skip to main content

MCP server for Docker Hub Image Stats — pulls, stars, search, batch lookup, publisher catalogs

Project description

Docker Hub MCP Server

A Model Context Protocol (MCP) server for querying Docker Hub image statistics. Provides pull counts, star counts, descriptions, official/verified status, and publisher catalogs through the public Docker Hub API — no API key required.

Features

  • get_image_stats(image) — single image metadata (pulls, stars, last_updated, description, is_official, is_verified)
  • search_images(query, limit) — keyword search across Docker Hub
  • batch_image_stats(images) — concurrent lookup for up to 100 images
  • get_publisher_images(publisher, limit) — catalog all images from a namespace (e.g. library, bitnami, grafana)

Installation

uv (recommended)

uvx docker-hub-mcp

pip

pip install docker-hub-mcp
docker-hub-mcp

Configuration

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "docker-hub-mcp": {
      "command": "uvx",
      "args": ["docker-hub-mcp"]
    }
  }
}

Cursor / VS Code

Add to your MCP configuration:

{
  "mcpServers": {
    "docker-hub-mcp": {
      "command": "uvx",
      "args": ["docker-hub-mcp"]
    }
  }
}

Hermes Agent (MCP Gateway)

Add to ~/.hermes/gateway.yaml:

docker-hub-mcp:
  command: uvx docker-hub-mcp
  lazy_spawn: true
  timeout: 30s
  env: {}

Tools

Tool Description Key Params
get_image_stats Pull count, star count, last updated, description, official/verified status image (required) — "nginx" or "grafana/grafana"
search_images Keyword search, ranked results query (required), limit (default 50)
batch_image_stats Concurrent lookup of up to 100 images images (required, list)
get_publisher_images All images in a namespace publisher (required), limit (default 100)

Examples

# Get stats for nginx
get_image_stats({"image": "nginx"})
# → pull_count: 13.2B, star_count: 21K, is_official: true

# Search for postgres
search_images({"query": "postgres", "limit": 5})
# → ranked results with pulls, stars, official flags

# Batch compare web servers
batch_image_stats({"images": ["nginx", "httpd", "caddy", "traefik"]})

# Catalog a publisher
get_publisher_images({"publisher": "bitnami", "limit": 25})

Data Source

Uses the Docker Hub API (/v2/repositories and /v2/search).

  • Auth: None required for public data
  • Rate limit: ~4,400 requests per 6 hours (unauthenticated)

Development

git clone https://github.com/GeniusTechnoMystic/docker-hub-mcp.git
cd docker-hub-mcp
uv sync
uv run docker-hub-mcp

Run tests:

uv run pytest tests/

License

MIT

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

docker_hub_mcp-0.2.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

docker_hub_mcp-0.2.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file docker_hub_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: docker_hub_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for docker_hub_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8e69843b5a85fbcb882020dbd265428b4dcb2f91807440b9d75cf816da54a7dd
MD5 3bccb593b743c6311a2227336787cc18
BLAKE2b-256 f6a995109e39277a98fdf53130e5b6004c8e9991d6bcb6f8b741035bb3817879

See more details on using hashes here.

File details

Details for the file docker_hub_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: docker_hub_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for docker_hub_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a756340a8c185a75609050c20463137db0936e4e7259113423c55aff34e49fe6
MD5 70cec7e9e9240884b00492b7a3afa68b
BLAKE2b-256 aad824f5d0e144f8cfaf06cea57b2e3a3274e02d91ee8733338d89e274eb1a4b

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