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
- A portal with at least one access group
- AWS IAM credentials from AWS Cognito for each person, or one set for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| AWS IAM Credentials | Custom credentials | accessKeyId, secretAccessKey and sessionToken |
AWS IAM Credentials
To connect, a person enters these values:
accessKeyId: AWS Access Key IDsecretAccessKey: AWS Secret Access KeysessionToken(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:
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
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.
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 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. NeedsuserPoolId.list_groups: List all groups in a Cognito user pool. NeedsuserPoolId.
Write tools (10)
manage_user: Create, get, update, disable, enable, confirm, reset password, set password, or delete a user in a Cognito user pool. Needsaction,userPoolIdandusername.manage_identity_provider: Create, get, update, delete, or list federated identity providers (SAML, OIDC, Google, Facebook, Apple, Amazon) in a Cognito user pool. NeedsactionanduserPoolId.manage_group_membership: Add or remove users from groups, list users in a group, or list groups for a user. NeedsactionanduserPoolId.manage_group: Create, get, update, or delete a group in a Cognito user pool. Needsaction,userPoolIdandgroupName.manage_app_client: Create, get, update, delete, or list app clients for a Cognito user pool. NeedsactionanduserPoolId.manage_user_pool: Create, update, get, or delete a Cognito user pool. Needsaction.manage_identity_pool: Create, get, update, delete, or list Cognito identity pools (federated identities). Needsaction.manage_user_pool_domain: Create, get, update, or delete a Cognito user pool domain. Needsactionanddomain.manage_resource_server: Create, get, update, delete, or list Cognito resource servers for a user pool. NeedsactionanduserPoolId.manage_identity_pool_roles: Get or set IAM roles for a Cognito identity pool. NeedsactionandidentityPoolId.
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_webhookgroup_changes: Detects new, modified, and deleted groups in a Cognito user pool by polling the ListGroups API.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use AWS Cognito there
- Tool permissions: tool filters and what employees see
- AWS Cognito on metorial.com: the integration overview