Docker Hub

v1.0.0Cloud Servicesstable

Enables LLMs to search Docker Hub repositories, discover container images, and manage Docker Hub repositories and tags through natural language queries. Supports both public content access and authenticated operations with Docker Personal Access Toke

docker-hub-mcp-servermcpai-integration
Share:
146
Stars
0
Downloads
0
Weekly
0/5

What is Docker Hub?

Docker Hub is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables llms to search docker hub repositories, discover container images, and manage docker hub repositories and tags through natural language queries. supports both public content access and authent...

Enables LLMs to search Docker Hub repositories, discover container images, and manage Docker Hub repositories and tags through natural language queries. Supports both public content access and authenticated operations with Docker Personal Access Toke

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables LLMs to search Docker Hub repositories, discover con

Use Cases

Enables LLMs to search Docker Hub repositories, discover container images, and m
docker

Maintainer

LicenseApache 2.0
Languagetypescript
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx docker-hub-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Docker Hub

The Docker Hub MCP server is an official Docker tool that enables AI assistants to search Docker Hub repositories, discover and evaluate container images, manage repository metadata, and inspect image tags — all through natural language queries. It supports both unauthenticated public content discovery and authenticated operations using a Docker Personal Access Token for managing your own repositories. Development teams can use it to find the right base images, inspect available tags by architecture or OS, and manage Docker Hub content without leaving their AI coding workflow.

Prerequisites

  • Node.js 18+ and npm installed
  • A Docker Hub account (free tier sufficient for public image search)
  • A Docker Hub Personal Access Token (PAT) for authenticated and write operations — generate at hub.docker.com/settings/security
  • An MCP-compatible client such as Claude Desktop or Cursor
1

Clone the repository

Download the Docker Hub MCP server from the official Docker GitHub repository.

git clone https://github.com/docker/hub-mcp.git
cd hub-mcp
2

Install dependencies and build

Install npm dependencies and compile the TypeScript source to JavaScript.

npm install
npm run build
3

Test the server manually

Start the server in stdio mode to verify it works. For authenticated operations, pass your Docker Hub username and PAT token.

HUB_PAT_TOKEN=your_pat_token node dist/index.js --transport=stdio --username=your_dockerhub_username
4

Configure Claude Desktop

Add the server to your claude_desktop_config.json. Use the absolute path to the built dist/index.js file.

{
  "mcpServers": {
    "docker-hub": {
      "command": "node",
      "args": ["/absolute/path/to/hub-mcp/dist/index.js", "--transport=stdio"],
      "env": {
        "HUB_PAT_TOKEN": "your_docker_hub_personal_access_token"
      }
    }
  }
}
5

Search for images and manage repositories

Once configured, you can search Docker Hub repositories, list tags filtered by architecture, create or update repositories, and query Docker Hardened Images through your AI assistant.

Docker Hub Examples

Client configuration

Claude Desktop configuration for the Docker Hub MCP server with PAT authentication.

{
  "mcpServers": {
    "docker-hub": {
      "command": "node",
      "args": ["/home/user/hub-mcp/dist/index.js", "--transport=stdio"],
      "env": {
        "HUB_PAT_TOKEN": "dckr_pat_your_personal_access_token"
      }
    }
  }
}

Prompts to try

Natural language queries you can use with the Docker Hub MCP server.

- "Search for official nginx images on Docker Hub"
- "List all tags for the postgres image filtered to linux/amd64"
- "Show me the most secure Node.js base image available"
- "List all repositories in my Docker Hub namespace"
- "What Docker Hardened Images are available for Python?"

Troubleshooting Docker Hub

Authentication error or 401 Unauthorized

Verify your HUB_PAT_TOKEN is valid and has not expired. Generate a new token at hub.docker.com/settings/security. Ensure the token has the correct scopes (Read, Write, or Delete depending on your use case).

Server fails to start: 'Cannot find module dist/index.js'

Run npm run build in the hub-mcp directory to compile the TypeScript source. Ensure the path in your MCP config args points to the correct absolute location of dist/index.js.

Search returns empty results for a known image

Docker Hub search may use different query semantics than the website. Try searching with just the image name (e.g., 'nginx' not 'library/nginx'). Public images are accessible without authentication — omitting the PAT token does not prevent searching.

Frequently Asked Questions about Docker Hub

What is Docker Hub?

Docker Hub is a Model Context Protocol (MCP) server that enables llms to search docker hub repositories, discover container images, and manage docker hub repositories and tags through natural language queries. supports both public content access and authenticated operations with docker personal access toke It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Docker Hub?

Follow the installation instructions on the Docker Hub GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Docker Hub?

Docker Hub works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Docker Hub free to use?

Yes, Docker Hub is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "docker-hub-mcp-server": { "command": "npx", "args": ["-y", "docker-hub-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Docker Hub?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides