Searches Docker Hub and manages repositories through MCP, with optional PAT authentication for private operations.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Hub MCP.
searchSearch repositories and content using Search V4 API
querySearch query parameter (string, required)
architecturesFilter on architectures (string, optional)
badgesFilter by image content type badges (string, optional)
categoriesFilter on categories (string, optional)
extension_reviewedFilter on reviewed extensions (boolean, optional)
The docker/hub-mcp MCP server connects MCP clients to Docker Hub APIs. It supports repository and content discovery through the Search V4 API, including filters for architectures, operating systems, image names, categories, badges, content types, reviewed extensions, ordering, sorting, and pagination.
It also exposes repository-management operations. Agents can list namespaces associated with the authenticated user, enumerate repositories in a namespace, retrieve repository details, check whether repositories or tags exist, create repositories, and update repository information. The available material also identifies Docker Hardened Images as part of the server’s Docker Hub access.
The application is a Node.js project that must be built before it is started. MCP clients can communicate with it through stdio, which is the default transport, or through an HTTP endpoint. Stdio is local to the process that launches the server. HTTP listens on loopback by default and accepts configuration for the port, host, allowed host values, and allowed browser origins.
Without credentials, the docker/hub-mcp MCP server can query public Docker Hub content. Repository operations require a Docker Hub Personal Access Token supplied through HUB_PAT_TOKEN; the corresponding Docker Hub username is passed as a startup option. HTTP mode has a separate protection mechanism: MCP_AUTH_TOKEN can require a bearer token on each MCP request. The server also validates host and browser-origin values in HTTP mode.
Install Docker and Node.js 22 or newer. From a checkout of the project, install dependencies and build the application:
Start the compiled server with:
For HTTP transport, use options such as --transport=http, --port=3000, and --host=127.0.0.1. When exposing HTTP beyond loopback, configure MCP_AUTH_TOKEN and the relevant --allowed-hosts or --allowed-origins values. The --allow-unauthenticated option disables HTTP authentication and should only be used on an isolated, trusted network.
Claude Desktop can launch the built dist/index.js file with Node and --transport=stdio. Authenticated configurations add HUB_PAT_TOKEN and a --username argument. Docker Ask Gordon can also be configured as an MCP client using a Docker build and a gordon-mcp.yml service definition.
The docker/hub-mcp MCP server provides tools for:
Search supports filters including architecture, operating system, image name, category, badge, repository type, media type, and content type.
The project requires a local Node.js build and does not provide a package-based install command in the supplied material. Public queries do not require a PAT, but repository management does. HTTP mode dispatches calls using the server operator’s Docker Hub identity, so exposing the endpoint without authentication can allow reachable clients to perform that identity’s permitted actions, including repository changes.
Always refer to the official documentation for the most accurate and up-to-date information.
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/docker-hub-mcp)<a href="https://allmcps.com/mcp/docker-hub-mcp"><img src="https://allmcps.com/api/badge/docker-hub-mcp?style=directory" alt="Hub MCP on AllMCPs" /></a>