WorkOS
WorkOS API for B2B identity: organizations and their domains, AuthKit users, memberships, invitations and sessions, SSO connections, Directory Sync directories, users and groups, Audit Logs exports, the event stream, and RBAC roles and permissions. Can create and update organizations, users, memberships and invitations; deletes and revokes install switched off.
7 Tage gratis · keine Kreditkarte · EU-Hosting
Frag WorkOS alles
Teste einen echten Prompt gegen WorkOS via AnythingMCP — Claude ruft die Tools auf, liefert die Antwort. Drück Enter auf deine eigene Nachricht, um auf Cloud zu installieren.
WorkOS auf Cloud installierenClaude ist KI und kann Fehler machen. Bitte Antworten gegenprüfen.
Setup in 2 Minuten
- 1Free Trial auf cloud.anythingmcp.com starten.
- 2Im Connector-Store auf WorkOS klicken. Credentials einfügen.
- 3MCP-API-Key generieren und KI-Client auf die MCP-URL zeigen.
Anleitungen für WorkOS
Schritt-für-Schritt-Setup für die wichtigsten KI-Clients.
WorkOS einrichten
Direkt aus der Connector-Definition: wo du die Credentials findest, welche Rechte sie brauchen und mit welcher API dieser Adapter spricht. Vom Connector-Autor auf Englisch bereitgestellt.
WorkOS
This connector uses the WorkOS API (https://api.workos.com) of one WorkOS environment: organizations and their domains, AuthKit (User Management) users, organization memberships, invitations and sessions, SSO connections, Directory Sync directories with their users and groups, Audit Logs, the event stream, and RBAC roles and permissions. It can create and update organizations, domains, users, memberships and invitations and trigger a directory sync. It does not configure SSO connections, AuthKit branding, redirect URIs, Vault, Pipes or API keys, and it never signs anyone in.
Setup (2 minutes)
- Open https://dashboard.workos.com, pick the environment (Sandbox or Production) in the top bar and open API Keys.
- Create a secret key (
sk_...) and paste it intoWORKOS_API_KEY. The key is shown once. - Run
workos_list_organizationsto check it. A key belongs to one environment and has full access to that environment's API: there are no scopes. Start with a Sandbox key; use a Production key only when the AI should work on real data.
What the AI sees: personal and sensitive data
This key reaches the identity data of every customer organization in the environment, and the AI reads whatever a tool returns: user names and email addresses, sign-in identities, session IP addresses and user agents, directory users with job titles and the provider's raw attributes (workos_get_directory_user and workos_get_directory_group return them in full; they can hold phone numbers, manager, department and employee ids), organization metadata and Stripe customer ids, and audit log content. Share only what the task needs.
- Secret values: the connector never returns the API key. Invitation answers have their
tokenandaccept_invitation_urlremoved, because that link lets anyone who has it join the organization.workos_get_audit_log_exportreturns a short-lived download link (url) to the CSV; treat it like a password and do not paste it into other places. - WorkOS also runs an official MCP server (
https://mcp.workos.com/mcp, OAuth as your dashboard user); this connector instead uses an API key and needs no dashboard login.
Workflow
- Organizations:
workos_list_organizations(filtersearchordomains),workos_get_organization,workos_get_organization_by_external_id,workos_create_organization,workos_update_organization. - Domains:
workos_create_organization_domainadds one as pending with a DNS TXT record (verification_prefix,verification_token) for the domain owner to publish; thenworkos_verify_organization_domainandworkos_get_organization_domainfor the state. Domain ids are in thedomainsarray of an organization. - Users:
workos_list_users(byemailororganization_id),workos_get_user,workos_get_user_by_external_id,workos_create_user,workos_update_user; sign-in providers withworkos_list_user_identities; devices withworkos_list_user_sessions. - Memberships and roles:
workos_list_organization_memberships(byorganization_idand/oruser_id,statuses),workos_get_organization_membership,workos_create_organization_membership,workos_update_organization_membershipto change the role,workos_deactivate_organization_membershipandworkos_reactivate_organization_membershipto block and restore access. Role slugs come fromworkos_list_roles,workos_get_roleandworkos_list_organization_roles(custom roles start withorg-); permissions fromworkos_list_permissions. - Invitations:
workos_list_invitations,workos_get_invitation,workos_send_invitation(WorkOS sends the email),workos_resend_invitation. - SSO:
workos_list_connectionsandworkos_get_connectionshow type andstate(activemeans users can sign in). - Directory Sync:
workos_list_directories,workos_get_directory,workos_list_directory_users(needsdirectoryorgroup),workos_get_directory_user,workos_list_directory_groups(needsdirectoryoruser),workos_get_directory_group;workos_sync_directoryqueues a sync now. - Audit Logs:
workos_list_audit_log_actionsandworkos_list_audit_log_schemasfor what is logged;workos_create_audit_log_exportfor a range, thenworkos_get_audit_log_exportuntilstateisready;workos_get_audit_log_retentionfor how long events are kept.workos_create_audit_log_eventwrites an event. - What changed:
workos_list_eventswithevents(comma-separated types such asuser.created,organization_membership.updated,dsync.user.created,connection.activated) andrange_start/range_end,order: ascto replay them in sequence. The API keeps 90 days of events; one call covers at most 30 days.
Switched off at install: workos_delete_organization, workos_delete_organization_domain, workos_delete_user, workos_delete_organization_membership, workos_revoke_invitation, workos_revoke_session and workos_create_audit_log_event; they cannot be undone (audit log events cannot be removed once written), so an admin switches them on when the team needs them.
Reading the answers: ids carry a type prefix (org_, org_domain_, user_, om_, invitation_, session_, conn_, directory_, directory_user_, directory_group_, audit_log_export_, event_). Timestamps are ISO 8601 in UTC. Lists come as {"object": "list", "data": [...], "list_metadata": {"before": ..., "after": ...}}. metadata values are strings.
Paging: lists return 10 items by default, up to 100 with limit, newest first. For the next page pass list_metadata.after as after; stop when it is null. workos_list_events pages the same way.
Updates: workos_update_organization and workos_update_user change only the fields you pass; domain_data and metadata replace the stored value, so send the full list or object.
Limits: 6,000 requests a minute per key; AuthKit 1,000 reads and 500 writes per 10 seconds; directory users 4 requests a second per directory; organization deletes 50 a minute. Invitation emails count toward WorkOS's email sending limits.
Errors: 401 wrong or revoked key, 403 the key may not do this or the feature is not enabled, 404 unknown id (or an id from another environment), 400 or 422 an invalid field (the body names it), 429 rate limit: wait and retry once.
Deine KI ist zwei Klicks von WorkOS entfernt.
Connector installieren, Credentials einfügen, KI fragen. 7 Tage gratis, keine Kreditkarte.