Clerk MCP by usefulapi

v1.2.1
io.usefulapi/clerk Checked 4 days ago Published 1 day ago

Read users, organizations, sessions and invitations; ban users and revoke sessions in Clerk.

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

clerk_get_instance Get the Clerk instance

Get the Clerk instance this secret key belongs to: its id, environment (development or production), allowed origins and user limit. Good first call to confirm which app is connected. Backend API: GET /v1/instance.

clerk_list_users List users

List users of the instance. Filter by free text (email, phone, username, name), exact email, user id, organization, banned state or creation time. Returns profile fields and email/phone identifiers; no passwords. Backend API: GET /v1/users.

ParameterTypeDescription
bannedbooleantrue = banned users only; false = not banned.
created_at_afterintegerOnly users created after this Unix time in milliseconds.
email_addressarrayExact email addresses to match.
limitintegerMaximum rows to return (1-100, default 10).
offsetintegerRows to skip, for paging.
order_bystringSort field. Prefix with '-' for descending, for example '-created_at'.
organization_idarrayOnly users who are members of these organizations.
querystringFree-text search across email, phone, username and name.
user_idarrayUser ids to match.

clerk_count_users Count users

Count users that match the same filters as clerk_list_users (text, exact email, organization, banned state). Use it before a large list. Backend API: GET /v1/users/count.

ParameterTypeDescription
bannedbooleantrue = banned users only; false = not banned.
email_addressarrayExact email addresses to match.
organization_idarrayOnly users who are members of these organizations.
querystringFree-text search across email, phone, username and name.

clerk_get_user Get a user

Get one user by id: name, username, primary email and phone ids, image, and timestamps. Backend API: GET /v1/users/{user_id}.

ParameterTypeDescription
user_id *stringClerk user id, for example user_2abc...

clerk_list_user_memberships List a user's organization memberships

List the organizations one user belongs to, with the role in each. Backend API: GET /v1/users/{user_id}/organization_memberships.

ParameterTypeDescription
user_id *stringClerk user id, for example user_2abc...
limitintegerMaximum rows to return (1-100, default 10).
offsetintegerRows to skip, for paging.

clerk_list_organizations List organizations

List organizations of the instance, optionally with member counts. Filter by name text, organization id or a member user id. Backend API: GET /v1/organizations.

ParameterTypeDescription
include_members_countbooleanAdd the member count to each organization.
limitintegerMaximum rows to return (1-100, default 10).
offsetintegerRows to skip, for paging.
order_bystringSort field. Prefix with '-' for descending, for example '-created_at'.
organization_idarrayOrganization ids to match.
querystringFree-text search on the organization name.
user_idarrayOnly organizations this user belongs to.

clerk_get_organization Get an organization

Get one organization by id or slug, optionally with its member count. Backend API: GET /v1/organizations/{organization_id}.

ParameterTypeDescription
organization_id *stringClerk organization id (org_...) or slug.
include_members_countbooleanAdd the member count.

clerk_list_organization_invitations List an organization's invitations

List invitations sent for one organization, with their status (for example pending, accepted or revoked). Backend API: GET /v1/organizations/{organization_id}/invitations.

ParameterTypeDescription
organization_id *stringClerk organization id (org_...) or slug.
email_addressstringExact invited email address.
limitintegerMaximum rows to return (1-100, default 10).
offsetintegerRows to skip, for paging.
order_bystringSort field. Prefix with '-' for descending, for example '-created_at'.
statusstringFilter by invitation status, for example pending.

clerk_list_invitations List invitations

List instance invitations (sign-up invitations sent to email addresses), with status. Backend API: GET /v1/invitations.

ParameterTypeDescription
email_addressarrayExact invited email addresses.
limitintegerMaximum rows to return (1-100, default 10).
offsetintegerRows to skip, for paging.
order_bystringSort field. Prefix with '-' for descending, for example '-created_at'.
querystringFree-text search on the invited email address.
statusstringFilter by invitation status, for example pending.

clerk_list_sessions List sessions

List sign-in sessions, filtered by user, client or status (for example active). Use it to see who is signed in. Backend API: GET /v1/sessions.

ParameterTypeDescription
client_idstringOnly sessions of this client (browser or device).
limitintegerMaximum rows to return (1-100, default 10).
offsetintegerRows to skip, for paging.
statusstringFilter by session status, for example active.
user_idstringOnly sessions of this user.

clerk_get_session Get a session

Get one session by id: its user, client, status, last activity and expiry. Backend API: GET /v1/sessions/{session_id}.

ParameterTypeDescription
session_id *stringClerk session id, for example sess_2abc...

clerk_list_domains List domains

List the domains of the instance (primary and satellite domains) with their settings. Backend API: GET /v1/domains.

clerk_list_allowlist List the allowlist

List identifiers on the instance allowlist (only these emails or domains may sign up while the allowlist is on). Backend API: GET /v1/allowlist_identifiers.

ParameterTypeDescription
limitintegerMaximum rows to return (1-100, default 10).
offsetintegerRows to skip, for paging.

clerk_list_blocklist List the blocklist

List identifiers on the instance blocklist (emails, phone numbers or domains that may not sign up). Backend API: GET /v1/blocklist_identifiers.

clerk_list_jwt_templates List JWT templates

List the JWT templates that define custom claims for session tokens. Shows names and claim configuration. Backend API: GET /v1/jwt_templates.

ParameterTypeDescription
limitintegerMaximum rows to return (1-100, default 10).
offsetintegerRows to skip, for paging.

clerk_ban_user Ban a user

BANS a user on the live instance: the user's sessions end and the user cannot sign in until unbanned. Confirm the user id first. Backend API: POST /v1/users/{user_id}/ban.

ParameterTypeDescription
user_id *stringClerk user id, for example user_2abc...

clerk_unban_user Unban a user

Lifts a ban on a user so the user can sign in again. Safe to repeat. Backend API: POST /v1/users/{user_id}/unban.

ParameterTypeDescription
user_id *stringClerk user id, for example user_2abc...

clerk_revoke_session Revoke a session

REVOKES one live sign-in session: that browser or device is signed out at once. Other sessions of the user stay active. Confirm the session id first. Backend API: POST /v1/sessions/{session_id}/revoke.

ParameterTypeDescription
session_id *stringClerk session id, for example sess_2abc...