Set up Docker Hub in Metorial for Claude, ChatGPT and Cursor
Share Docker Hub with your team in Claude, ChatGPT and Cursor through Metorial: personal access token or username & password sign-in, 34 tools (15 read-only).
To give your team Docker Hub in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Docker Hub integration in a Metorial portal, and each person connects with a personal access token. Agents can manage Docker container image repositories, tags, and organizations on Docker Hub. The integration has 34 tools, 15 read-only, 12 write and 7 destructive, plus 1 trigger.
What you'll learn
- How an admin shares Docker Hub in a portal and how each person connects
- What Docker Hub asks for when you connect, and where to find it
- How to keep the 15 read-only tools and reject the other 19
Before you start
- A portal with at least one access group
- A personal access token from Docker Hub for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| Personal Access Token (default) | API token | username and token |
| Username & Password | Custom credentials | username and password |
The portal and metorial setup use Personal Access Token unless someone picks another method.
Personal Access Token
To connect, a person enters these values:
username: Docker Hub usernametoken: Docker Hub Personal Access Token (PAT)
Username & Password
To connect, a person enters these values:
username: Docker Hub usernamepassword: Docker Hub password
Setup settings
Whichever method you pick, setup also asks for:
namespace(optional): Default Docker Hub namespace (username or organization). Used as the default for repository operations when not explicitly specified.
Admin: share Docker Hub in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Docker Hub. Under Auth Method, keep Personal Access Token or pick another. For how members connect, choose Each person connects so everyone enters their own personal access token, or Shared connection to enter one personal access token for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Docker Hub.
Choose who gets it
Add the access groups that should see Docker Hub. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Docker Hub integration. Once it exists, check which groups have it:
Employee: connect Docker Hub
In the portal
Open Docker Hub in the catalog
Sign in to your portal and open Docker Hub. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your personal access token (username and token).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID. metorial setup uses Personal Access Token. To connect with Username & Password instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your Docker Hub connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 15 read-only tools, such as get_tag and list_tags, and lose the 12 write tools, such as create_team or create_webhook, and the 7 destructive tools, such as delete_tag or delete_team.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 34 tools, minus any you rejected. list_repositories takes no input. It lists Docker image repositories under a namespace (user or organization).
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (15)
list_webhooks: List webhooks configured for a Docker Hub repository. NeedsrepositoryName.list_repositories: List Docker image repositories under a namespace (user or organization).list_audit_log_actions: List all available audit log action types for a Docker Hub account. Needsaccount.list_tags: List tags for a Docker Hub repository. NeedsrepositoryName.list_access_tokens: List personal access tokens (PATs) for the authenticated Docker Hub user.list_teams: List teams (groups) within a Docker Hub organization. NeedsorgName.get_repository: Get detailed information about a specific Docker Hub repository, including its description, visibility, star/pull counts, and content types. NeedsrepositoryName.list_audit_logs: Retrieve audit log events for a Docker Hub account (user or organization). Needsaccount.list_org_members: List members of a Docker Hub organization, including their roles and team memberships. NeedsorgName.search_repositories: Search for public Docker Hub repositories by keyword. Needsquery.list_org_access_tokens: List Docker Hub organization access tokens (OATs) for an organization. NeedsorgName.get_tag: Get details for a specific Docker Hub repository tag, including digest, size, last update time, and platform image metadata. NeedsrepositoryNameandtagName.get_org_access_token: Get details for a Docker Hub organization access token, including active status, expiration, and resource scopes. NeedsorgNameandtokenId.get_access_token: Get metadata for a personal access token (PAT) by UUID. NeedstokenUuid.verify_repository_immutable_tags: Validate an immutable tag regex rule for a Docker Hub repository and return repository tags that match the rule. NeedsrepositoryNameandregex.
Write tools (12)
create_repository: Create a new Docker Hub repository under a namespace. NeedsrepositoryName.update_repository: Update an existing Docker Hub repository's description, full description, or visibility. NeedsrepositoryName.create_team: Create a new team within a Docker Hub organization. NeedsorgNameandteamName.update_access_token: Update a personal access token's label or active status. NeedstokenUuid.create_access_token: Create a new personal access token (PAT) for Docker Hub. Needslabelandscopes.create_webhook: Create a webhook for a Docker Hub repository. NeedsrepositoryName,webhookNameandwebhookUrl.manage_team_members: List, add, or remove members from a Docker Hub organization team. NeedsorgName,teamNameandaction.update_repository_immutable_tags: Update immutable tag settings for a Docker Hub repository. NeedsrepositoryNameandenabled.update_org_member_role: Update a Docker Hub organization member's role. NeedsorgName,usernameandrole.assign_repository_team: Grant a Docker Hub organization team access to a repository with read, write, or admin permission. NeedsrepositoryName,groupIdandpermission.update_org_access_token: Update a Docker Hub organization access token's label, description, resources, or active status. NeedsorgNameandtokenId.create_org_access_token: Create a Docker Hub organization access token (OAT) for automation. NeedsorgNameandlabel.
Destructive tools (7)
delete_access_token: Permanently delete a personal access token. NeedstokenUuid.remove_org_member: Remove a member from a Docker Hub organization. NeedsorgNameandusername.delete_tag: Delete a specific tag from a Docker Hub repository. NeedsrepositoryNameandtagName.delete_webhook: Delete a webhook from a Docker Hub repository. NeedsrepositoryNameandwebhookId.delete_team: Delete a team from a Docker Hub organization. NeedsorgNameandteamName.delete_repository: Permanently delete a Docker Hub repository and all of its tags and images. NeedsrepositoryName.delete_org_access_token: Permanently delete a Docker Hub organization access token. NeedsorgNameandtokenId.
Triggers
Docker Hub has 1 trigger, which fire on events in Docker Hub:
image_push: Triggers when a Docker image is pushed or a new tag is added to a repository.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Docker Hub there
- Tool permissions: tool filters and what employees see
- Docker Hub on metorial.com: the integration overview