productivity
Docker Hub MCP Integration for LangGraph
Connect Docker Hub to LangGraph through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Docker Hub to LangGraph
Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions.
Use a graph node that calls the KosmoKrator CLI for deterministic steps or an MCP client for dynamic tool selection. The gateway is local, scoped to this integration, and starts with
--write=deny so LangGraph can inspect read-capable tools without receiving write access by default.
Docker Hub MCP Config for LangGraph
Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.
{
"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 LangGraph
LangGraph 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. |