Skip to content
Book demo

Docker Hub

Remote MCP·Local·STDIO

Official Docker Hub MCP for container image discovery, repository management, image metadata, and base-image selection workflows.

Good for:Container imagesBase image selectionRepository metadata

Installation path

Open AugmentGo to ConfigurationSelect MCP RegistryClick "Add Server"

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

  1. 01

    Enable the MCP Toolkit

    Open Docker Desktop and turn on the MCP Toolkit.

  2. 02

    Find Docker Hub

    In the Toolkit Catalog tab, search Docker Hub and add it.

  3. 03

    Provide credentials

    Enter your Docker Hub username and PAT when prompted.

  4. 04

    Enable on Cosmos

    Toggle the Docker Hub MCP on Cosmos Agent or CLI.

  5. 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=stdio

Authenticated 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.

VariableExampleRequired
HUB_USERNAME<docker_hub_username>Yes
HUB_PAT_TOKEN<docker_hub_pat>Yes
Official documentation →