Skip to content

Commit 530a40b

Browse files
Mohammod Al Amin Ashikits-mash
authored andcommitted
feat: add Docker Hub MCP server definition
Docker-only server (mcp/dockerhub image) for Docker Hub API access. Search images, manage repositories/tags, discover Hardened Images. Optional PAT for authenticated access; public search works without auth. Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent dedb4cb commit 530a40b

1 file changed

Lines changed: 83 additions & 0 deletions

File tree

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "com.docker-hub-mcp-docker",
4+
"name": "Docker Hub (Docker)",
5+
"alias": "docker-hub",
6+
"description": "Search Docker Hub images, manage repositories and tags, discover Docker Hardened Images, and get AI-powered image recommendations. Interfaces with Docker Hub APIs for intelligent content discovery.",
7+
"icon": "https://avatars.githubusercontent.com/u/5429470?v=4",
8+
"schema_version": "2.1",
9+
"categories": [
10+
"developer-tools",
11+
"cloud"
12+
],
13+
"tags": [
14+
"docker",
15+
"docker-hub",
16+
"containers",
17+
"images",
18+
"registry",
19+
"devops"
20+
],
21+
22+
"transport": {
23+
"type": "stdio",
24+
"command": "docker",
25+
"args": [
26+
"run", "-i", "--rm",
27+
"-e", "HUB_PAT_TOKEN",
28+
"mcp/dockerhub",
29+
"--transport=stdio"
30+
],
31+
"env": {
32+
"HUB_PAT_TOKEN": "${input:HUB_PAT_TOKEN}"
33+
},
34+
"metadata": {
35+
"inputs": [
36+
{
37+
"id": "HUB_PAT_TOKEN",
38+
"label": "Docker Hub Personal Access Token",
39+
"description": "Personal Access Token for Docker Hub API. Required for authenticated access to manage repositories. Public image search works without authentication.",
40+
"type": "text",
41+
"required": false,
42+
"secret": true,
43+
"placeholder": "dckr_pat_xxxxxxxxxxxxxxxxxxxx",
44+
"obtain": {
45+
"url": "https://hub.docker.com/settings/security",
46+
"instructions": "1. Go to Docker Hub > Account Settings > Security\n2. Click 'New Access Token'\n3. Give it a description and select permissions\n4. Click 'Generate' and copy the token",
47+
"button_label": "Create Token"
48+
}
49+
}
50+
]
51+
}
52+
},
53+
54+
"auth": {
55+
"type": "optional_api_key",
56+
"instructions": "Create a Personal Access Token at hub.docker.com/settings/security. Public image search works without auth; token required for repository management."
57+
},
58+
59+
"contributor": {
60+
"name": "Docker",
61+
"github": "docker",
62+
"url": "https://www.docker.com"
63+
},
64+
65+
"links": {
66+
"repository": "https://github.com/docker/hub-mcp",
67+
"homepage": "https://hub.docker.com/mcp",
68+
"documentation": "https://docs.docker.com/ai/mcp-catalog-and-toolkit/hub-mcp/"
69+
},
70+
71+
"platforms": [
72+
"all"
73+
],
74+
75+
"capabilities": {
76+
"tools": true,
77+
"resources": false,
78+
"prompts": false,
79+
"read_only_mode": false
80+
},
81+
82+
"changelog_url": "https://github.com/docker/hub-mcp/releases"
83+
}

0 commit comments

Comments
 (0)