Set up Duo Security in Metorial for Claude, ChatGPT and Cursor
Share Duo Security with your team in Claude, ChatGPT and Cursor through Metorial: duo API credentials sign-in, 22 tools (11 read-only).
To give your team Duo Security in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Duo Security integration in a Metorial portal, and each person connects with duo API credentials. Agents can read and manage Duo Admin API users, groups, phones and administrators; generate bypass codes, discover protected applications, and read account settings, utilization and authentication, administrator and telephony logs. The integration has 22 tools, 11 read-only, 7 write and 4 destructive, plus 3 triggers.
What you'll learn
- How an admin shares Duo Security in a portal and how each person connects
- What Duo Security asks for when you connect, and where to find it
- How to keep the 11 read-only tools and reject the other 11
Before you start
- A portal with at least one access group
- Duo API credentials from Duo Security 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 |
|---|---|---|
| Duo API Credentials | Custom credentials | integrationKey, secretKey and apiHostname |
Duo API Credentials
To connect, a person enters these values:
integrationKey: Integration Key (ikey) from the Duo Admin PanelsecretKey: Secret Key (skey) from the Duo Admin PanelapiHostname: API Hostname in the format api-XXXXXXXX.duosecurity.com
Admin: share Duo Security 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 Duo Security. For how members connect, choose Each person connects so everyone enters their own duo API credentials, or Shared connection to enter the duo API credentials once for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Duo Security.
Choose who gets it
Add the access groups that should see Duo Security. 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 Duo Security integration. Once it exists, check which groups have it:
Employee: connect Duo Security
In the portal
Open Duo Security in the catalog
Sign in to your portal and open Duo Security. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your duo API credentials (integrationKey, secretKey and apiHostname).
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 Duo Security 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 11 read-only tools, such as get_user and list_users, and lose the 7 write tools, such as create_user or update_user, and the 4 destructive tools, such as delete_user or delete_admin.
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 22 tools, minus any you rejected. get_account_summary takes no input. It retrieves a summary of the Duo account including user counts, integration counts, telephony credits, and current account settings.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (11)
get_authentication_logs: Retrieve Duo authentication log events using the v2 API. Needsmintimeandmaxtime.list_phones: Retrieve a list of phones registered in Duo Security.get_admin_logs: Retrieve Duo administrator action logs. Needsmintime.get_account_summary: Retrieve a summary of the Duo account including user counts, integration counts, telephony credits, and current account settings.get_user: Retrieve detailed information about a specific Duo user, including associated phones, tokens, and groups. NeedsuserId.list_integrations: Retrieve a list of Duo-protected applications (integrations).get_telephony_logs: Retrieve Duo telephony log events. Needsmintime.list_users: Retrieve a list of Duo Security users.list_admins: Retrieve a list of Duo Security administrator accounts with their roles and contact information.list_groups: Retrieve a list of Duo Security groups.get_resource: Read exact Duo group, phone, administrator or protected application details using an ID from its list tool.
Write tools (7)
create_phone: Register a new phone in Duo Security for use as an MFA device.create_bypass_codes: Generate one-time bypass codes for a Duo user. NeedsuserId.create_group: Create a new Duo Security group for organizing users and applying access policies. Needsname.update_user: Update a Duo Security user's profile, status, group memberships, or phone associations. NeedsuserId.create_admin: Create a new Duo Security administrator account with a specified role. Needsname,emailandphone.update_admin: Update an existing Duo Security administrator's name, phone, or role. NeedsadminId.create_user: Create a new Duo Security user. Needsusername.
Destructive tools (4)
delete_user: Permanently remove a Duo Security user without trash or restoration. NeedsuserId.delete_group: Delete a Duo Security group. NeedsgroupId.delete_phone: Delete a phone from Duo Security. NeedsphoneId.delete_admin: Delete a Duo Security administrator account. NeedsadminId.
Triggers
Duo Security has 3 triggers, which fire on events in Duo Security:
inbound_webhookadmin_action_events: Polls Duo for administrator action logs including user creation, policy changes, configuration updates, and other administrative operations.authentication_events: Polls Duo for new authentication log events including successful and failed authentication attempts, push notifications, and bypass events.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Duo Security there
- Tool permissions: tool filters and what employees see
- Duo Security on metorial.com: the integration overview