Set up Userflow in Metorial for Claude, ChatGPT and Cursor
Share Userflow with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 16 tools (9 read-only).
To give your team Userflow in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Userflow integration in a Metorial portal, and each person connects with an API key. Agents can manage users, companies, memberships, and events for in-app onboarding. The integration has 16 tools, 9 read-only, 4 write and 3 destructive, plus 3 triggers.
What you'll learn
- How an admin shares Userflow in a portal and how each person connects
- What Userflow asks for when you connect, and where to find it
- How to keep the 9 read-only tools and reject the other 7
Before you start
- A portal with at least one access group
- An API key from Userflow for each person, or one 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 |
|---|---|---|
| API Key | API token | token |
API Key
To connect, a person enters:
token: Userflow API key. For user/group/event/content/webhook operations, use an environment API key from Settings > API. For account management, use a personal API key from My Account > Personal API Keys.
Setup settings
Setup also asks for:
apiVersion(optional): Userflow API version to use (e.g. 2020-01-03)
Admin: share Userflow 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 Userflow. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Userflow.
Choose who gets it
Add the access groups that should see Userflow. 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 Userflow integration. Once it exists, check which groups have it:
Employee: connect Userflow
In the portal
Open Userflow in the catalog
Sign in to your portal and open Userflow. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key (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.
Add it to your AI client
metorial install adds your Userflow 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 9 read-only tools, such as get_user and get_group, and lose the 4 write tools, such as track_event or create_or_update_user, and the 3 destructive tools, such as delete_user or delete_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 16 tools, minus any you rejected. get_user takes no input.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (9)
list_users: Lists users with pagination support.list_groups: Lists groups (companies) with pagination support.get_user: Retrieves a user by ID or finds a user by email.list_event_definitions: Lists all event definitions configured in the account.get_group: Retrieves a group (company) by its ID. NeedsgroupId.list_content: Lists all content objects (flows, checklists, and launchers) in the account.get_content: Retrieves a specific content item (flow, checklist, or launcher) by ID. NeedscontentId.list_content_sessions: Lists onboarding sessions, completion state, progress, and survey answers.list_attribute_definitions: Lists attribute names, data types, and scopes to help build user or company filters and choose attributes for updates.
Write tools (4)
manage_webhook_subscription: Creates, retrieves, lists, or deletes webhook subscriptions. Needsaction.track_event: Tracks a custom event for a user and/or group. Needsname.create_or_update_user: Creates a new user or updates an existing one (upsert). NeedsuserId.create_or_update_group: Creates a new group (company) or updates an existing one (upsert). NeedsgroupId.
Destructive tools (3)
delete_user: Permanently deletes a user and all associated data including attributes, memberships, events, and flow history. NeedsuserId.delete_group: Permanently deletes a group (company) and all associated data including attributes, memberships, and events. NeedsgroupId.remove_group_membership: Removes a user from a group (company). NeedsuserIdandgroupId.
Triggers
Userflow has 3 triggers, which fire on events in Userflow:
event_tracked: Triggers when any event is tracked for a user or group in Userflow.user_events: Triggers when a user is created or updated in Userflow.group_events: Triggers when a group (company) is created or updated in Userflow.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Userflow there
- Tool permissions: tool filters and what employees see
- Userflow on metorial.com: the integration overview