Skip to content

Commit b4f512d

Browse files
Create hub-mcp
Adding documentation for the Hub MCP server we will release on July 9th.
1 parent 0f98203 commit b4f512d

File tree

1 file changed

+145
-0
lines changed
  • content/manuals/ai/mcp-catalog-and-toolkit

1 file changed

+145
-0
lines changed
Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
---
2+
title: Hub MCP
3+
description: Use the MCP Toolkit to set up MCP servers and MCP clients.
4+
keywords: Docker Hub MCP Server, Hub MCP server, Hub MCP
5+
---
6+
7+
The Docker Hub MCP Server is a Model Context Protocol (MCP) server that interfaces with Docker Hub APIs to make rich image metadata accessible to LLMs, enabling intelligent content discovery and repository management. Developers building with containers, especially in AI and LLM-powered workflows, often face inadequate context across the vast landscape of Docker Hub images. As a result, LLMs struggle to recommend the right images, and developers lose time manually searching instead of building.
8+
9+
## Key features
10+
11+
- Advanced LLM Context: Our MCP Server provides LLMs with detailed, structured context for Docker Hub images, enabling smarter, more relevant recommendations for developers, whether they're choosing a base image or automating CI/CD workflows.
12+
- Natural Language Image Discovery: Developers can find the right container image using natural language, no need to remember tags or repository names. Just describe what you need, and Docker Hub will return images that match your intent.
13+
- Simplified Repository Management: Hub MCP Server enables agents to manage repositories through natural language fetching image details, viewing stats, searching content, and performing key operations quickly and easily.
14+
15+
## Install Docker Hub MCP server
16+
17+
1. From the **MCP Toolkit** menu, select the **Catalog** tab and search for **Docker Hub** and select the plus icon to add the Docker Hub MCP server.
18+
2. In the server's Configuration tab, insert your Docker Hub username and personal access token (PAT).
19+
3. In the Clients tab in MCP Toolkit, ensure Gordon is connected.
20+
4. From the **Ask Gordon** menu, you can now send requests related to your
21+
Docker Hub account, in accordance to the tools provided by the Docker Hub MCP server. To test it, ask Gordon:
22+
23+
```text
24+
What repositories are in my namespace?
25+
```
26+
27+
> [!TIP]
28+
> By default, the Gordon [client](#install-an-mcp-client) is enabled,
29+
> which means Gordon can automatically interact with your MCP servers.
30+
31+
## Usage examples
32+
33+
This section provides task-oriented examples for common operations with Docker Hub
34+
tools.
35+
36+
37+
### Finding images
38+
39+
```console
40+
# Search for official images
41+
$ docker ai "Search for official nginx images on Docker Hub"
42+
43+
# Search for lightweight images to reduce deployment size and improve performance
44+
$ docker ai "Search for minimal Node.js images with small footprint"
45+
46+
# Get the most recent tag of a base image
47+
$ docker ai "Show me the latest tag details for go"
48+
49+
# Find a production-ready database with enterprise features and reliability
50+
$ docker ai "Search for production ready database images"
51+
52+
# Compare Ubuntu versions to choose the right one for my project
53+
$ docker ai "Help me find the right Ubuntu version for my project"
54+
```
55+
56+
57+
### Repository Management
58+
59+
```console
60+
# Create a repository
61+
$ docker ai "Create a repository in my namespace"
62+
63+
# List all repositories in my namespace
64+
$ docker ai "List all repositories in my namespace"
65+
66+
# Find the largest repository in my namespace
67+
$ docker ai "Which of my repositories takes up the most space?"
68+
69+
# Find repositories that haven't been updated recently
70+
$ docker ai "Which of my repositories haven't had any pushes in the last 60 days?"
71+
72+
# Find which repositories are currently active and being used
73+
$ docker ai "Show me my most recently updated repositories"
74+
75+
# Get details about a repository
76+
$ docker ai "Show me information about my '<repository-name>' repository"
77+
```
78+
79+
### Pull/Push Images
80+
```console
81+
# Pull latest PostgreSQL version
82+
$ docker ai "Pull the latest postgres image"
83+
84+
# Push image to your Docker Hub repository
85+
$ docker ai "Push my <image-name> to my <repository-name> repository"
86+
```
87+
88+
### Tag Management
89+
90+
```console
91+
# List all tags for a repository
92+
$ $ docker ai "Show me all tags for my '<repository-name>' repository"
93+
94+
# Find the most recently pushed tag
95+
$ docker ai "What's the most recent tag pushed to my '<repository-name>' repository?"
96+
97+
# List tags with architecture filtering
98+
$ docker ai "List tags for in the '<repository-name>' repository that support amd64 architecture"
99+
100+
# Get detailed information about a specific tag
101+
$ docker ai "Show me details about the '<tag-name>' tag in the '<repository-name>' repository"
102+
103+
# Check if a specific tag exists
104+
$ docker ai "Check if version 'v1.2.0' exists for my 'my-web-app' repository"
105+
```
106+
107+
### Docker Hardened Images
108+
109+
```console
110+
# List available hardened images
111+
$ docker ai "What is the most secure image I can use to run a node.js application?"
112+
113+
# Convert Dockerfile to use a hardened image
114+
$ docker ai "Can you help me update my Dockerfile to use a docker hardened image instead of the current one"
115+
```
116+
> [!NOTE]
117+
> To access Docker Hardened Images, a subscription is required. If you're interested in using Docker Hardened Images, please visit:
118+
[Docker Hardened Images](https://www.docker.com/products/hardened-images/)
119+
120+
121+
## Reference
122+
123+
This section provides a comprehensive listing of the tools you can find
124+
in the Docker Hub MCP Server.
125+
126+
### Docker Hub MCP Server tools
127+
128+
Tools to interact with your Docker repositories and discover content on Docker Hub.
129+
130+
| Name | Description |
131+
|------|-------------|
132+
| `check-repository` | Check repository |
133+
| `check-repository-tag` | Check repository tag |
134+
| `check-repository-tags` | Check repository tags |
135+
| `create-repository` | Creates a new repository |
136+
| `docker-hardened-images` | Lists available [Docker Hardened Images](https://www.docker.com/products/hardened-images/) in specified namespace |
137+
| `get-namespaces` | Get organizations/namespaces for a user |
138+
| `get-repository-dockerfile` | Gets dockerfile for repository |
139+
| `get-repository-info` | Gets repository info |
140+
| `list-repositories-by-namespace` | Lists repositories under namespace |
141+
| `list-repository-tags` | List repository tags |
142+
| `read-repository-tag` | Read repository tag |
143+
| `search` | Search content on Docker Hub |
144+
| `set-repository-dockerfile` | Sets Dockerfile for repository |
145+
| `update-repository-info` | Updates repository info |

0 commit comments

Comments
 (0)