Skip to content

Integration · Developer tools

Connect Claude & ChatGPT to Clerk

Ask your AI to find a user, check when they last signed in, or invite someone to an organization, and it works in your Clerk application. It can search and count users, read organizations and their members, and send or revoke invitations. It can also update users, change member roles and ban or lock an account, with your approval if you want it.

Connect Clerk free

Free plan, no credit card. Takes about a minute.

Try asking

  • “When did [email protected] last sign in?”

    The AI searches your users by email and reads her profile with sign-in methods and last sign-in time.

  • “How many users are banned right now?”

    It counts the users that match the banned filter.

  • “Invite [email protected] to the Acme organization as an admin.”

    It finds the organization and creates the invitation with the role you asked for. Clerk emails the invitation unless you turn that off.

What your AI can do

Users

Search, count and read users, create and update them, merge metadata, and ban, lock or delete accounts.

Organizations and members

List and create organizations, add or remove members, change roles and see which organizations a user is in.

Invitations

Invite people to sign up or to join an organization, list pending invitations and revoke them.

  • “Who are the admins in the Acme organization?”

    It lists the organization's members filtered by the admin role.

  • “Which sign-up invitations are still pending?”

    It lists invitations with status pending, with the email each was sent to.

  • “Ban user_2abc, the account is being misused.”

    It bans the user, who is signed out and cannot sign in until you unban them.

25 tools for Clerk

These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.

  • add_organization_memberChanges dataAdd an existing user to an organization: `organization_id`, `user_id` and `role` (e.g. org:member or org:admin).
  • ban_userChanges dataBan a user by `user_id`: they are signed out and cannot sign in until unbanned.
  • count_usersCount users matching the same filters as search_users.
  • create_invitationChanges dataInvite someone to sign up by `email_address`. Clerk emails the invitation unless `notify` is false; optional `expires_in_days` and `public_metadata`.
  • create_organizationChanges dataCreate an organization with a `name`, optional `slug`, `created_by` (the user ID of its first admin) and metadata.
  • create_userChanges dataCreate a user with `email_address`, `first_name`, `last_name`, `username` or `phone_number` and optional public or private metadata. Search first to avoid duplicates.
  • delete_userDeletesPermanently delete a user and their data by `user_id`. This cannot be undone.
  • get_organizationGet one organization by `company_id` (the organization ID or slug).
  • get_userGet one user by `user_id`, with emails, phone numbers, sign-in methods, metadata and last sign-in time.
  • invite_to_organizationChanges dataInvite someone by `email_address` to join an organization (`organization_id`) with a `role`. Clerk emails the invitation unless `notify` is false.
  • list_invitationsList sign-up invitations, filtered by `status` or `query` (email).
  • list_organization_invitationsList invitations to an organization by `organization_id`, filtered by `status` or `email_address`.
  • list_organization_membersList the members of an organization by `organization_id`, optionally filtered by `role` or `query`.
  • list_organizationsList or search organizations with `query` (name, slug or ID), or those a `user_id` belongs to; set `include_members_count` for member counts.
  • list_user_organizationsList the organizations a user belongs to, with their role, by `user_id`.
  • lock_userVisible to othersLock a user's account by `user_id` so they cannot sign in until unlocked.
  • remove_organization_memberDeletesRemove a user from an organization by `organization_id` and `user_id`. The user account itself is kept.
  • revoke_invitationChanges dataRevoke a pending sign-up invitation by `invitation_id` so its link no longer works.
  • search_usersSearch users of your Clerk application with `query` (matches email, phone, username, name or ID) or filters like `email_address`, `organization_id`, `banned` or last sign-in dates; page with `limit` and `cursor`.
  • unban_userChanges dataLift a ban on a user by `user_id` so they can sign in again.
  • unlock_userVisible to othersUnlock a locked user's account by `user_id`.
  • update_organizationChanges dataUpdate an organization's name, slug or `max_allowed_memberships` by `company_id` (the organization ID).
  • update_organization_member_roleChanges dataChange a member's `role` in an organization by `organization_id` and `user_id`.
  • update_userChanges dataUpdate a user's first/last name, username, locale, external ID or primary email/phone by `user_id`. Only the fields you pass change.
  • update_user_metadataVisible to othersMerge new values into a user's `public_metadata`, `private_metadata` or `unsafe_metadata` by `user_id`.

Set up in three steps

  1. 1

    Pick the app

    Create a free PipMCP account and choose Clerk from the app list.

  2. 2

    Paste your key

    Paste your Clerk Secret key. In the Clerk Dashboard, open your application, go to API Keys and copy the Secret key (it starts with sk_live_ or sk_test_). Keep it private, since it has full Backend API access to that instance.

  3. 3

    Add the link to your AI

    You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:

    1. Click your name, then Settings › Connectors › Add custom connector.
    2. Paste your link as the Remote MCP server URL.
    3. Switch it on from the + menu in a chat.

Questions

What can the AI do in Clerk?

It can search, count and read users, organizations, members and invitations. It can create and update users and organizations, send and revoke invitations, add and remove members and change their roles. It can also ban or lock users, lift a ban or lock again, and delete users.

Does the AI see my Clerk secret key?

No. Your Clerk secret key is encrypted at rest and never shown to the AI. After you save it, it is not shown again, not even to you. The AI only sees the results of the tools it calls.

Can I control what the AI is allowed to do?

Yes. You choose which tools are switched on, so you can start with lookups only. Deleting a user is permanent, removing a member takes away their access, and locking an account or changing metadata affects sign-in, so those tools can require your approval before they run. Every tool call is logged.

Does it work with ChatGPT?

Yes. In ChatGPT go to Settings › Apps & Connectors › Advanced and turn on Developer mode, then add your PipMCP link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link also works in Claude (Settings › Connectors › Add custom connector), Cursor and other MCP clients.

What does it cost?

PipMCP has a free plan with no credit card required. Paid plans bill per completed task. You also need your own Clerk account.

Can I try it with a test key first?

Yes. A Clerk secret key starts with sk_test_ or sk_live_, and each key works on its own instance. You can connect an sk_test_ key first, and switch to the sk_live_ key when you are happy with how the AI works.

Let your AI work in Clerk today.

Start free. Your key stays encrypted, and you decide what the AI may do.

Connect Clerk free

PipMCP is not affiliated with Clerk. Product names are trademarks of their owners.