docker-hub-mcp
This server provides four tools to query Docker Hub, requiring no authentication:
get_image_stats: Fetch metadata (pull count, stars, description, official/verified status, last updated) for a single image.
search_images: Search by keyword and get ranked results; limit output (default 50, max 100).
batch_image_stats: Concurrently look up stats for up to 100 images, returning a summary table.
get_publisher_images: List all images from a given publisher namespace (e.g.,
library,bitnami), up to 500 results.
Provides tools for querying Docker Hub image statistics, including pulls, stars, descriptions, official/verified status, and publisher catalogs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@docker-hub-mcp Compare pull counts for nginx, httpd, and caddy"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 Hubbatch_image_stats(images)— concurrent lookup for up to 100 imagesget_publisher_images(publisher, limit)— catalog all images from a namespace (e.g.library,bitnami,grafana)
Related MCP server: mcp-github-server
Installation
uv (recommended)
uvx docker-hub-mcppip
pip install docker-hub-mcp
docker-hub-mcpConfiguration
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 |
| Pull count, star count, last updated, description, official/verified status |
|
| Keyword search, ranked results |
|
| Concurrent lookup of up to 100 images |
|
| All images in a namespace |
|
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-mcpRun tests:
uv run pytest tests/Related Projects
Other Docker Hub MCP servers in the ecosystem:
Project | Language | Tools | Auth | Tests | Install |
docker/hub-mcp (official) | TypeScript | 13 | PAT (optional) | Yes |
|
TypeScript | 49 (dynamic) | PAT | None |
| |
TypeScript | 8 | PAT (required) | None |
| |
This one (ours) | Python | 4 | None | 46 tests |
|
Our differentiators
Zero auth — no API key, no PAT, no Docker account needed. Just
uvx docker-hub-mcpPython ecosystem — only Python implementation. Install via
piporuvx, no Node.js neededBatch operations —
batch_image_statsis unique — no competitor offers concurrent multi-image lookupTest coverage — 46 tests with mocked HTTP (pytest-httpx), the most thorough test suite of any Docker Hub MCP server
MIT license — permissive, easy to embed
When to use the alternatives
docker/hub-mcp — if you need repository management (create, update, delete), tag listing, or Docker Hardened Images. Requires PAT for write operations.
lucadruda/docker-hub-mcp-server — if you need full Docker Hub API coverage (collaborators, webhooks, stars, namespaces). Requires PAT.
RSVINEETHA/DockerHub-MCP-Server — minimal alternative, requires PAT.
License
MIT
Available Tools
4 toolsbatch_image_statsA
Batch lookup metadata for up to 100 Docker Hub images in parallel. Pass a list of image names (e.g. ['nginx', 'python', 'grafana/grafana']). Returns a summary table with pulls, stars, and status for each.
Inputs: images (required).
get_image_statsA
Fetch metadata for a single Docker Hub image. Accepts both 'library/nginx' and 'nginx' (auto-prepends 'library/') formats. Returns pulls, stars, description, official/verified status, last updated.
Inputs: image (required).
get_publisher_imagesA
List all images for a given publisher/namespace on Docker Hub. Useful for auditing an organisation's image catalog. Defaults to 100 results, max 500.
Inputs: publisher (required), limit.
search_imagesA
Search Docker Hub images by keyword. Returns results with name, namespace, description, pull_count, star_count, is_official, is_automated, and last_updated.
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool serves a clearly distinct purpose: search by keyword, fetch metadata for a single image, fetch metadata for multiple images in batch, and list images by publisher. There is no practical overlap that would confuse an agent.
Three tools follow a verb_noun pattern (search_images, get_image_stats, get_publisher_images), but batch_image_stats deviates by starting with an adjective rather than a verb. The naming is mostly consistent and readable, with one minor irregularity.
With 4 tools covering search, single lookup, batch lookup, and publisher listing, the count falls well within the ideal 3-15 range. Each tool serves a practical need without redundancy.
The tool set covers core image read operations, but lacks common features like listing image tags or getting detailed manifest information. Agents can work around these gaps, but they are notable for a Docker Hub service.
Maintenance
Related MCP Connectors
Publish and discover MCP servers via the official MCP Registry. Powered by HAPI MCP server.
Market data tools for the MCP ecosystem: server stats, events, search, leaderboards, package trends.
Hosted MCP server for DataLikers — Instagram & TikTok data API. 51 tools: Instagram user search by demographics (gender/age/race/country/city), profiles, bulk lookup, engagement, posts & reels, comments, hashtags, locations, stories, highlights, music, business accounts, top users; TikTok users, videos, comments, hashtags, playlists and top charts. Streamable HTTP, Bearer API key. Free tier: 100 requests on signup at https://datalikers.com/p/1by27bwg
MCP registry & directory: search, find & install 31k+ MCP servers & tools. Catalog and marketplace.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceDocker Helper MCP server that provides tools for automating Docker tasks such as generating Dockerfiles, parsing docker-compose files, and optimizing images.4 npm27 PyPIMIT
- FlicenseNot gradedqualityDmaintenanceA simple MCP server that provides repository information (list repos, get repo details) using GitHub's public REST API, without needing any API keys or tokens.-
- AlicenseNot gradedqualityDmaintenanceA production-ready Model Context Protocol (MCP) server that provides comprehensive DockerHub integration for AI assistants. This server enables AI assistants to search, analyze, and manage Docker images through standardized MCP tools.MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server for querying OCI container registries. Provides tools and prompts for interacting with registries like Docker Hub, GHCR, and other OCI-compatible registries.2Apache 2.0