productivity
Docker Hub MCP Integration for Generic MCP Clients
Connect Docker Hub to Generic MCP Clients through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Docker Hub to Generic MCP Clients
Connect any stdio-compatible MCP client to local KosmoKrator integration tools.
Register kosmo mcp:serve as the command for a local stdio MCP server. The gateway is local, scoped to this integration, and starts with
--write=deny so MCP clients can inspect read-capable tools without receiving write access by default.
Docker Hub MCP Config for Generic MCP Clients
Start with read-only write policy and expand only for trusted projects.
{
"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 MCP clients
MCP clients 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. |