MetorialDocs

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

Sign-in methods

MethodTypeWhat a person provides
Personal Access Token (default)API tokenusername and token
Username & PasswordCustom credentialsusername 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 username
  • token: Docker Hub Personal Access Token (PAT)

Username & Password

To connect, a person enters these values:

  • username: Docker Hub username
  • password: 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:

metorial-admin portals access list <portal-id> --type provider_template --search "docker hub"

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

metorial catalog search "docker hub"
metorial setup <catalog-item-id>

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.

metorial list "docker hub"
metorial client list
metorial install <client-identifier> <integration-id>

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 list "docker hub"
metorial tools <integration-id>
metorial call <integration-id> list_repositories -d '{}'

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. Needs repositoryName.
  • 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. Needs account.
  • list_tags: List tags for a Docker Hub repository. Needs repositoryName.
  • list_access_tokens: List personal access tokens (PATs) for the authenticated Docker Hub user.
  • list_teams: List teams (groups) within a Docker Hub organization. Needs orgName.
  • get_repository: Get detailed information about a specific Docker Hub repository, including its description, visibility, star/pull counts, and content types. Needs repositoryName.
  • list_audit_logs: Retrieve audit log events for a Docker Hub account (user or organization). Needs account.
  • list_org_members: List members of a Docker Hub organization, including their roles and team memberships. Needs orgName.
  • search_repositories: Search for public Docker Hub repositories by keyword. Needs query.
  • list_org_access_tokens: List Docker Hub organization access tokens (OATs) for an organization. Needs orgName.
  • get_tag: Get details for a specific Docker Hub repository tag, including digest, size, last update time, and platform image metadata. Needs repositoryName and tagName.
  • get_org_access_token: Get details for a Docker Hub organization access token, including active status, expiration, and resource scopes. Needs orgName and tokenId.
  • get_access_token: Get metadata for a personal access token (PAT) by UUID. Needs tokenUuid.
  • verify_repository_immutable_tags: Validate an immutable tag regex rule for a Docker Hub repository and return repository tags that match the rule. Needs repositoryName and regex.

Write tools (12)

  • create_repository: Create a new Docker Hub repository under a namespace. Needs repositoryName.
  • update_repository: Update an existing Docker Hub repository's description, full description, or visibility. Needs repositoryName.
  • create_team: Create a new team within a Docker Hub organization. Needs orgName and teamName.
  • update_access_token: Update a personal access token's label or active status. Needs tokenUuid.
  • create_access_token: Create a new personal access token (PAT) for Docker Hub. Needs label and scopes.
  • create_webhook: Create a webhook for a Docker Hub repository. Needs repositoryName, webhookName and webhookUrl.
  • manage_team_members: List, add, or remove members from a Docker Hub organization team. Needs orgName, teamName and action.
  • update_repository_immutable_tags: Update immutable tag settings for a Docker Hub repository. Needs repositoryName and enabled.
  • update_org_member_role: Update a Docker Hub organization member's role. Needs orgName, username and role.
  • assign_repository_team: Grant a Docker Hub organization team access to a repository with read, write, or admin permission. Needs repositoryName, groupId and permission.
  • update_org_access_token: Update a Docker Hub organization access token's label, description, resources, or active status. Needs orgName and tokenId.
  • create_org_access_token: Create a Docker Hub organization access token (OAT) for automation. Needs orgName and label.

Destructive tools (7)

  • delete_access_token: Permanently delete a personal access token. Needs tokenUuid.
  • remove_org_member: Remove a member from a Docker Hub organization. Needs orgName and username.
  • delete_tag: Delete a specific tag from a Docker Hub repository. Needs repositoryName and tagName.
  • delete_webhook: Delete a webhook from a Docker Hub repository. Needs repositoryName and webhookId.
  • delete_team: Delete a team from a Docker Hub organization. Needs orgName and teamName.
  • delete_repository: Permanently delete a Docker Hub repository and all of its tags and images. Needs repositoryName.
  • delete_org_access_token: Permanently delete a Docker Hub organization access token. Needs orgName and tokenId.

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