MetorialDocs

Set up AWS Cognito in Metorial for Claude, ChatGPT and Cursor

Share AWS Cognito with your team in Claude, ChatGPT and Cursor through Metorial: AWS IAM credentials sign-in, 13 tools (3 read-only).

To give your team AWS Cognito in Claude, ChatGPT, Cursor and other AI clients, an admin shares the AWS Cognito integration in a Metorial portal, and each person connects with AWS IAM credentials. Agents can manage user authentication and authorization for web and mobile apps. The integration has 13 tools, 3 read-only and 10 write, plus 3 triggers.

What you'll learn

  • How an admin shares AWS Cognito in a portal and how each person connects
  • What AWS Cognito asks for when you connect, and where to find it
  • How to keep the 3 read-only tools and reject the other 10

Before you start

Sign-in method

MethodTypeWhat a person provides
AWS IAM CredentialsCustom credentialsaccessKeyId, secretAccessKey and sessionToken

AWS IAM Credentials

To connect, a person enters these values:

  • accessKeyId: AWS Access Key ID
  • secretAccessKey: AWS Secret Access Key
  • sessionToken (optional): AWS Session Token (required for temporary credentials from STS)

Setup settings

Setup also asks for:

  • region: AWS region where your Cognito resources are located (e.g., us-east-1)

Admin: share AWS Cognito 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 AWS Cognito. For how members connect, choose Each person connects so everyone enters their own AWS IAM credentials, or Shared connection to enter the AWS IAM credentials once for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from AWS Cognito.

Choose who gets it

Add the access groups that should see AWS Cognito. 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 AWS Cognito integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "aws cognito"

Employee: connect AWS Cognito

In the portal

Open AWS Cognito in the catalog

Sign in to your portal and open AWS Cognito. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your AWS IAM credentials (accessKeyId and secretAccessKey).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "aws cognito"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your AWS Cognito 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 "aws cognito"
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 3 read-only tools, such as list_users and list_groups, and lose the 10 write tools, such as manage_user or manage_group.

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 "aws cognito"
metorial tools <integration-id>
metorial call <integration-id> list_user_pools -d '{}'

metorial tools lists the 13 tools, minus any you rejected. list_user_pools takes no input. It lists all Cognito user pools in the configured AWS region.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (3)

  • list_user_pools: List all Cognito user pools in the configured AWS region.
  • list_users: List users in a Cognito user pool. Needs userPoolId.
  • list_groups: List all groups in a Cognito user pool. Needs userPoolId.

Write tools (10)

  • manage_user: Create, get, update, disable, enable, confirm, reset password, set password, or delete a user in a Cognito user pool. Needs action, userPoolId and username.
  • manage_identity_provider: Create, get, update, delete, or list federated identity providers (SAML, OIDC, Google, Facebook, Apple, Amazon) in a Cognito user pool. Needs action and userPoolId.
  • manage_group_membership: Add or remove users from groups, list users in a group, or list groups for a user. Needs action and userPoolId.
  • manage_group: Create, get, update, or delete a group in a Cognito user pool. Needs action, userPoolId and groupName.
  • manage_app_client: Create, get, update, delete, or list app clients for a Cognito user pool. Needs action and userPoolId.
  • manage_user_pool: Create, update, get, or delete a Cognito user pool. Needs action.
  • manage_identity_pool: Create, get, update, delete, or list Cognito identity pools (federated identities). Needs action.
  • manage_user_pool_domain: Create, get, update, or delete a Cognito user pool domain. Needs action and domain.
  • manage_resource_server: Create, get, update, delete, or list Cognito resource servers for a user pool. Needs action and userPoolId.
  • manage_identity_pool_roles: Get or set IAM roles for a Cognito identity pool. Needs action and identityPoolId.

Triggers

AWS Cognito has 3 triggers, which fire on events in AWS Cognito:

  • user_changes: Detects new and modified users in a Cognito user pool by polling the ListUsers API.
  • inbound_webhook
  • group_changes: Detects new, modified, and deleted groups in a Cognito user pool by polling the ListGroups API.

Next steps