Docker Hub
Official Docker Hub MCP for container image discovery, repository management, image metadata, and base-image selection workflows.
Installation path
Use Docker Desktop MCP Toolkit when available: open the Catalog tab, search Docker Hub, add it, then provide your Docker Hub username and PAT. For manual clients, clone/build hub-mcp and configure node dist/index.js --transport=stdio with HUB_USERNAME and HUB_PAT_TOKEN when authenticated access is needed.
Setup steps
- 01
Enable the MCP Toolkit
Open Docker Desktop and turn on the MCP Toolkit.
- 02
Find Docker Hub
In the Toolkit Catalog tab, search Docker Hub and add it.
- 03
Provide credentials
Enter your Docker Hub username and PAT when prompted.
- 04
Enable on Cosmos
Toggle the Docker Hub MCP on Cosmos Agent or CLI.
- 05
Fallback (manual setup)
Clone hub-mcp and add as a Local MCP with command node, args dist/index.js --transport=stdio, env HUB_USERNAME and HUB_PAT_TOKEN.
Local command
Suggested name: docker-hub
node /FULL/PATH/TO/docker-hub-mcp-server/dist/index.js --transport=stdioAuthenticated access uses HUB_USERNAME and HUB_PAT_TOKEN. Public repository search can run without credentials.
Authentication
Docker Hub username + PAT via env (HUB_USERNAME, HUB_PAT_TOKEN). Public search works without credentials.
| Variable | Example | Required |
|---|---|---|
| HUB_USERNAME | <docker_hub_username> | Yes |
| HUB_PAT_TOKEN | <docker_hub_pat> | Yes |