WorkOS MCP by usefulapi

v1.1.0
io.usefulapi/workos Checked 18 hours ago Published 7 days ago

Read SSO, directory users and invitations; sync directories and revoke invitations in WorkOS.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

workos_list_organizations List organizations

List organizations in the WorkOS environment, with optional search. WorkOS API: GET /organizations.

ParameterTypeDescription
afterstringCursor: the list_metadata.after value from a previous page.
beforestringCursor: the list_metadata.before value from a previous page.
limitintegerResults per page (1-100, default 10).
orderstringSort order of the results.
searchstringFree-text search.

workos_get_organization Get an organization

Get one organization by its WorkOS id. WorkOS API: GET /organizations/{id}.

ParameterTypeDescription
organization_id *stringThe organization id (for example org_01… or conn_01…).

workos_get_organization_by_external_id Get an organization by external id

Get one organization by the external id your application set on it. WorkOS API: GET /organizations/external_id/{external_id}.

ParameterTypeDescription
external_id *stringThe external id your application assigned to the organization.

workos_list_organization_groups List organization groups

List the groups of one organization, with optional search. WorkOS API: GET /organizations/{organizationId}/groups.

ParameterTypeDescription
organization_id *stringThe organization id (for example org_01… or conn_01…).
afterstringCursor: the list_metadata.after value from a previous page.
beforestringCursor: the list_metadata.before value from a previous page.
limitintegerResults per page (1-100, default 10).
orderstringSort order of the results.
searchstringFree-text search.

workos_list_connections List SSO connections

List SSO connections (SAML, OIDC, Google Workspace, Microsoft, and others), filtered by organization, type, domain or state. WorkOS API: GET /connections.

ParameterTypeDescription
afterstringCursor: the list_metadata.after value from a previous page.
beforestringCursor: the list_metadata.before value from a previous page.
connection_typestringFilter by connection type, for example OktaSAML or GoogleOAuth.
domainstringFilter by a domain on the connection.
limitintegerResults per page (1-100, default 10).
orderstringSort order of the results.
organization_idstringFilter by organization id (org_…).
searchstringFree-text search.
statestringFilter by connection state.

workos_get_connection Get an SSO connection

Get one SSO connection by its id. WorkOS API: GET /connections/{id}.

ParameterTypeDescription
connection_id *stringThe connection id (for example org_01… or conn_01…).

workos_list_directories List directories

List Directory Sync directories (SCIM, Okta, Google, and others), filtered by organization, domain or search. WorkOS API: GET /directories.

ParameterTypeDescription
afterstringCursor: the list_metadata.after value from a previous page.
beforestringCursor: the list_metadata.before value from a previous page.
domainstringFilter by domain.
limitintegerResults per page (1-100, default 10).
orderstringSort order of the results.
organization_idstringFilter by organization id (org_…).
searchstringFree-text search.

workos_get_directory Get a directory

Get one Directory Sync directory by its id, including its sync status. WorkOS API: GET /directories/{id}.

ParameterTypeDescription
directory_id *stringThe directory id (for example org_01… or conn_01…).

workos_list_directory_users List directory users

List users synced from directories, filtered by directory, group, email or the identity provider id. WorkOS API: GET /directory_users.

ParameterTypeDescription
afterstringCursor: the list_metadata.after value from a previous page.
beforestringCursor: the list_metadata.before value from a previous page.
directorystringFilter by directory id (directory_…).
emailstringFilter by email address.
groupstringFilter by directory group id (directory_group_…).
idp_idstringFilter by the identity provider's user id.
limitintegerResults per page (1-100, default 10).
orderstringSort order of the results.

workos_get_directory_user Get a directory user

Get one directory user by its id, with the attributes and groups synced from the directory. WorkOS API: GET /directory_users/{id}.

ParameterTypeDescription
directory_user_id *stringThe directory user id (for example org_01… or conn_01…).

workos_list_directory_groups List directory groups

List groups synced from directories, filtered by directory or by a member user id. WorkOS API: GET /directory_groups.

ParameterTypeDescription
afterstringCursor: the list_metadata.after value from a previous page.
beforestringCursor: the list_metadata.before value from a previous page.
directorystringFilter by directory id (directory_…).
limitintegerResults per page (1-100, default 10).
orderstringSort order of the results.
userstringFilter to groups that contain this directory user id.

workos_list_users List users

List User Management users (AuthKit), filtered by email or organization. WorkOS API: GET /user_management/users.

ParameterTypeDescription
afterstringCursor: the list_metadata.after value from a previous page.
beforestringCursor: the list_metadata.before value from a previous page.
emailstringFilter by email address.
limitintegerResults per page (1-100, default 10).
orderstringSort order of the results.
organization_idstringFilter by organization id (org_…).

workos_get_user Get a user

Get one User Management user by its id (user_…). WorkOS API: GET /user_management/users/{id}.

ParameterTypeDescription
user_id *stringThe user id (for example org_01… or conn_01…).

workos_list_organization_memberships List organization memberships

List which users belong to which organizations, filtered by organization, user or status (active, inactive, pending). WorkOS API: GET /user_management/organization_memberships.

ParameterTypeDescription
afterstringCursor: the list_metadata.after value from a previous page.
beforestringCursor: the list_metadata.before value from a previous page.
limitintegerResults per page (1-100, default 10).
orderstringSort order of the results.
organization_idstringFilter by organization id (org_…).
statusesarrayFilter by membership status.
user_idstringFilter by user id (user_…).

workos_list_invitations List invitations

List pending and past user invitations, filtered by organization or email. WorkOS API: GET /user_management/invitations.

ParameterTypeDescription
afterstringCursor: the list_metadata.after value from a previous page.
beforestringCursor: the list_metadata.before value from a previous page.
emailstringFilter by email address.
limitintegerResults per page (1-100, default 10).
orderstringSort order of the results.
organization_idstringFilter by organization id (org_…).

workos_list_events List events

List WorkOS events (for example dsync.user.created or connection.activated) in a time range. The events list is required. WorkOS API: GET /events.

ParameterTypeDescription
events *arrayEvent names to return, for example ["dsync.user.created"].
afterstringCursor: the list_metadata.after value from a previous page.
limitintegerResults per page (1-100, default 10).
organization_idstringFilter by organization id (org_…).
range_endstringEnd of the range, ISO 8601 UTC (2025-12-31T23:59:59Z).
range_startstringStart of the range, ISO 8601 UTC (2025-01-01T00:00:00Z).

workos_list_feature_flags List feature flags

List the feature flags defined in the WorkOS environment. WorkOS API: GET /feature-flags.

ParameterTypeDescription
afterstringCursor: the list_metadata.after value from a previous page.
beforestringCursor: the list_metadata.before value from a previous page.
limitintegerResults per page (1-100, default 10).
orderstringSort order of the results.

workos_list_roles List authorization roles

List the fine-grained authorization roles defined in the WorkOS environment. WorkOS API: GET /authorization/roles.

workos_list_permissions List authorization permissions

List the fine-grained authorization permissions defined in the WorkOS environment. WorkOS API: GET /authorization/permissions.

ParameterTypeDescription
afterstringCursor: the list_metadata.after value from a previous page.
beforestringCursor: the list_metadata.before value from a previous page.
limitintegerResults per page (1-100, default 10).
orderstringSort order of the results.

workos_sync_directory Sync a directory

Start a Directory Sync for one directory, so WorkOS pulls the latest users and groups from the identity provider. Repeating it is safe. WorkOS API: POST /directories/{id}/sync.

ParameterTypeDescription
directory_id *stringThe directory id (for example org_01… or conn_01…).

workos_revoke_invitation Revoke an invitation

Revoke a pending user invitation, so the invite link stops working. This cannot be undone: a new invitation is needed. WorkOS API: POST /user_management/invitations/{id}/revoke.

ParameterTypeDescription
invitation_id *stringThe invitation id (for example org_01… or conn_01…).