productivity
Docker Hub MCP Integration for LangChain
Connect Docker Hub to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Docker Hub to LangChain
Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.
Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with
--write=deny so LangChain can inspect read-capable tools without receiving write access by default.
Docker Hub MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"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 LangChain
LangChain 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. |