WorkOS MCP by usefulapi
v1.1.0Read 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.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor: the list_metadata.after value from a previous page. |
before | string | Cursor: the list_metadata.before value from a previous page. |
limit | integer | Results per page (1-100, default 10). |
order | string | Sort order of the results. |
search | string | Free-text search. |
workos_get_organization Get an organization
Get one organization by its WorkOS id. WorkOS API: GET /organizations/{id}.
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | The 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}.
| Parameter | Type | Description |
|---|---|---|
external_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | The organization id (for example org_01… or conn_01…). |
after | string | Cursor: the list_metadata.after value from a previous page. |
before | string | Cursor: the list_metadata.before value from a previous page. |
limit | integer | Results per page (1-100, default 10). |
order | string | Sort order of the results. |
search | string | Free-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.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor: the list_metadata.after value from a previous page. |
before | string | Cursor: the list_metadata.before value from a previous page. |
connection_type | string | Filter by connection type, for example OktaSAML or GoogleOAuth. |
domain | string | Filter by a domain on the connection. |
limit | integer | Results per page (1-100, default 10). |
order | string | Sort order of the results. |
organization_id | string | Filter by organization id (org_…). |
search | string | Free-text search. |
state | string | Filter by connection state. |
workos_get_connection Get an SSO connection
Get one SSO connection by its id. WorkOS API: GET /connections/{id}.
| Parameter | Type | Description |
|---|---|---|
connection_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor: the list_metadata.after value from a previous page. |
before | string | Cursor: the list_metadata.before value from a previous page. |
domain | string | Filter by domain. |
limit | integer | Results per page (1-100, default 10). |
order | string | Sort order of the results. |
organization_id | string | Filter by organization id (org_…). |
search | string | Free-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}.
| Parameter | Type | Description |
|---|---|---|
directory_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor: the list_metadata.after value from a previous page. |
before | string | Cursor: the list_metadata.before value from a previous page. |
directory | string | Filter by directory id (directory_…). |
email | string | Filter by email address. |
group | string | Filter by directory group id (directory_group_…). |
idp_id | string | Filter by the identity provider's user id. |
limit | integer | Results per page (1-100, default 10). |
order | string | Sort 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}.
| Parameter | Type | Description |
|---|---|---|
directory_user_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor: the list_metadata.after value from a previous page. |
before | string | Cursor: the list_metadata.before value from a previous page. |
directory | string | Filter by directory id (directory_…). |
limit | integer | Results per page (1-100, default 10). |
order | string | Sort order of the results. |
user | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor: the list_metadata.after value from a previous page. |
before | string | Cursor: the list_metadata.before value from a previous page. |
email | string | Filter by email address. |
limit | integer | Results per page (1-100, default 10). |
order | string | Sort order of the results. |
organization_id | string | Filter 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}.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor: the list_metadata.after value from a previous page. |
before | string | Cursor: the list_metadata.before value from a previous page. |
limit | integer | Results per page (1-100, default 10). |
order | string | Sort order of the results. |
organization_id | string | Filter by organization id (org_…). |
statuses | array | Filter by membership status. |
user_id | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor: the list_metadata.after value from a previous page. |
before | string | Cursor: the list_metadata.before value from a previous page. |
email | string | Filter by email address. |
limit | integer | Results per page (1-100, default 10). |
order | string | Sort order of the results. |
organization_id | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
events * | array | Event names to return, for example ["dsync.user.created"]. |
after | string | Cursor: the list_metadata.after value from a previous page. |
limit | integer | Results per page (1-100, default 10). |
organization_id | string | Filter by organization id (org_…). |
range_end | string | End of the range, ISO 8601 UTC (2025-12-31T23:59:59Z). |
range_start | string | Start 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.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor: the list_metadata.after value from a previous page. |
before | string | Cursor: the list_metadata.before value from a previous page. |
limit | integer | Results per page (1-100, default 10). |
order | string | Sort 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.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor: the list_metadata.after value from a previous page. |
before | string | Cursor: the list_metadata.before value from a previous page. |
limit | integer | Results per page (1-100, default 10). |
order | string | Sort 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.
| Parameter | Type | Description |
|---|---|---|
directory_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
invitation_id * | string | The invitation id (for example org_01… or conn_01…). |