productivity
Docker Hub MCP Integration for Claude Code
Connect Docker Hub to Claude Code through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Docker Hub to Claude Code
Connect local KosmoKrator integrations to Claude Code through one scoped MCP gateway entry.
Add KosmoKrator as a stdio MCP server in the Claude Code project config and select the integrations that should be visible. The gateway is local, scoped to this integration, and starts with
--write=deny so Claude Code can inspect read-capable tools without receiving write access by default.
Docker Hub MCP Config for Claude Code
Claude Code can launch the local kosmo binary directly from the project MCP config.
{
"mcpServers": {
"kosmokrator-docker": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=docker",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=docker --write=deny Why Use KosmoKrator Here
Expose only Docker Hub instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Docker Hub Tools Visible to Claude Code
Claude Code sees stable MCP tool names generated from the Docker Hub integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__docker__docker_list_repositories | docker.docker_list_repositories | Read | List Docker Hub repositories. Optionally filter by namespace. Supports pagination with page_size and page parameters. |
integration__docker__docker_get_repository | docker.docker_get_repository | Read | Get details for a specific Docker Hub repository by namespace and name. |
integration__docker__docker_list_tags | docker.docker_list_tags | Read | List tags for a Docker Hub repository. Supports pagination with page_size and page parameters. |
integration__docker__docker_get_tag | docker.docker_get_tag | Read | Get details for a specific tag in a Docker Hub repository. |
integration__docker__docker_create_repository | docker.docker_create_repository | Write | Create a new Docker Hub repository under a namespace. |
integration__docker__docker_list_organizations | docker.docker_list_organizations | Read | List Docker Hub organizations the authenticated user belongs to. Supports pagination with page_size and page parameters. |
integration__docker__docker_get_current_user | docker.docker_get_current_user | Read | Get the profile of the currently authenticated Docker Hub user. Useful for verifying credentials and displaying account information. |