productivity
Docker Hub MCP Integration for CrewAI
Connect Docker Hub to CrewAI through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Docker Hub to CrewAI
Expose KosmoKrator integrations to CrewAI workers as scoped local tools.
Wrap kosmo integrations:call for specific tasks or connect workers to a local MCP gateway. The gateway is local, scoped to this integration, and starts with
--write=deny so CrewAI can inspect read-capable tools without receiving write access by default.
Docker Hub MCP Config for CrewAI
Use per-worker integration scopes to avoid giving every worker every tool.
{
"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 CrewAI
CrewAI 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. |