Clerk MCP by usefulapi
v1.2.1Read 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.
| Parameter | Type | Description |
|---|---|---|
banned | boolean | true = banned users only; false = not banned. |
created_at_after | integer | Only users created after this Unix time in milliseconds. |
email_address | array | Exact email addresses to match. |
limit | integer | Maximum rows to return (1-100, default 10). |
offset | integer | Rows to skip, for paging. |
order_by | string | Sort field. Prefix with '-' for descending, for example '-created_at'. |
organization_id | array | Only users who are members of these organizations. |
query | string | Free-text search across email, phone, username and name. |
user_id | array | User 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.
| Parameter | Type | Description |
|---|---|---|
banned | boolean | true = banned users only; false = not banned. |
email_address | array | Exact email addresses to match. |
organization_id | array | Only users who are members of these organizations. |
query | string | Free-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}.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | Clerk 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.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | Clerk user id, for example user_2abc... |
limit | integer | Maximum rows to return (1-100, default 10). |
offset | integer | Rows 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.
| Parameter | Type | Description |
|---|---|---|
include_members_count | boolean | Add the member count to each organization. |
limit | integer | Maximum rows to return (1-100, default 10). |
offset | integer | Rows to skip, for paging. |
order_by | string | Sort field. Prefix with '-' for descending, for example '-created_at'. |
organization_id | array | Organization ids to match. |
query | string | Free-text search on the organization name. |
user_id | array | Only 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}.
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | Clerk organization id (org_...) or slug. |
include_members_count | boolean | Add 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.
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | Clerk organization id (org_...) or slug. |
email_address | string | Exact invited email address. |
limit | integer | Maximum rows to return (1-100, default 10). |
offset | integer | Rows to skip, for paging. |
order_by | string | Sort field. Prefix with '-' for descending, for example '-created_at'. |
status | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
email_address | array | Exact invited email addresses. |
limit | integer | Maximum rows to return (1-100, default 10). |
offset | integer | Rows to skip, for paging. |
order_by | string | Sort field. Prefix with '-' for descending, for example '-created_at'. |
query | string | Free-text search on the invited email address. |
status | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
client_id | string | Only sessions of this client (browser or device). |
limit | integer | Maximum rows to return (1-100, default 10). |
offset | integer | Rows to skip, for paging. |
status | string | Filter by session status, for example active. |
user_id | string | Only 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}.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Clerk 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum rows to return (1-100, default 10). |
offset | integer | Rows 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum rows to return (1-100, default 10). |
offset | integer | Rows 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.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | Clerk 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.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | Clerk 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.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Clerk session id, for example sess_2abc... |