---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://elaichi.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Clerk MCP connector

The Clerk connector lets Claude, ChatGPT and other AI clients work with Clerk API keys, actor tokens, allowlist identifiers and billing statements through one governed endpoint, with every action checked and recorded in an audit log.

Source: https://elaichi.ai/connectors/clerk/

## Facts

| | |
| --- | --- |
| Application | Clerk |
| Category | SSO |
| AI tools | 249 |
| Authentication | Connects with an API key |
| Bring your own OAuth app | No |
| MCP endpoint | https://api.elaichi.ai/mcp |
| Works with | Claude, ChatGPT, Perplexity, Grok, Cursor, Microsoft Copilot, any MCP client, and the Elaichi Agent |
| Tools advertised by name | No. Connected tools are never listed one by one, however few there are. The endpoint advertises `search_tools` and `execute_tool` instead |

## What you can ask once Clerk is connected

- Show billing statements from last month with failed payment attempts.
- Which API keys did we create this quarter that are still active?
- Add the acme.com domain to our sign-up allowlist.

## Connect Clerk in Elaichi

This happens once for the organization, before any client is involved.

1. Open Connections, choose Add connection, and pick Clerk.
2. Optionally set Share with, then press Connect.
3. Paste a Clerk API key. One person generates a token in Clerk and pastes it once. Everyone else works through Share with, and never sees it.

Credentials are vaulted and nobody, including the AI, reads them back. The connection becomes a toolbox immediately, so you can curate which Clerk tools are exposed, rename them, or freeze arguments before anyone points a client at it.

## Clerk MCP connector for Claude

Endpoint: https://api.elaichi.ai/mcp

1. Open Customize, then Connectors.
2. Press Add.
3. Name it, paste the MCP server URL, then Continue.
4. Sign in and approve.

On Team and Enterprise, an Owner adds it once. Everyone else turns it on for themselves.

## Clerk MCP connector for Claude Code

Endpoint: https://api.elaichi.ai/mcp

1. Copy the `claude mcp add` command and run it in a terminal.
2. Start Claude Code and run `/mcp`.
3. Pick elaichi, then sign in and approve in the browser.

```bash
claude mcp add --transport http elaichi --scope user https://api.elaichi.ai/mcp
```

Use `--scope project` instead to share it with the repository through `.mcp.json`.

## Clerk MCP connector for ChatGPT

Endpoint: https://api.elaichi.ai/mcp

1. Open Plugins, then press the + button.
2. Name it and paste the endpoint into Server URL.
3. Leave Authentication on OAuth, then tick the risk acknowledgement.
4. Press Create, then sign in and approve.

Works on the web. The plugin directory lives at chatgpt.com/plugins.

## Clerk MCP connector for Perplexity

Endpoint: https://api.elaichi.ai/mcp

1. In the left sidebar, click Plugins, then Add custom, then Add MCP connector, then Remote.
2. Name it Elaichi.
3. Paste the endpoint as the MCP server URL.
4. Open Advanced. Pick OAuth, so you can sign in, and Streamable HTTP, which is how Elaichi talks. Leave the client ID and secret empty.
5. Tick the box about custom connectors, then click Add.
6. Click the Elaichi card. Sign in to Elaichi and approve.

Needs a paid Perplexity plan. In an organization, an admin may first need to allow custom connectors.

[Setup guide for Perplexity](/blog/connect-elaichi-to-perplexity/)

## Clerk MCP connector for Grok

Endpoint: https://api.elaichi.ai/mcp

On grok.com:

1. Go to grok.com/connectors and click New Connector.
2. Choose Custom.
3. Paste the endpoint as the MCP server URL.
4. Sign in to Elaichi and approve.

In Grok Bot:

1. Open Connect apps and click Add a custom connector.
2. Name it Elaichi.
3. Set the type to Remote HTTPS.
4. Paste the endpoint as the Server URL.
5. Leave Client ID empty.
6. Click Add plugin. Then click Authorize, sign in to Elaichi and approve.

On Grok Business and Enterprise, a team admin adds the connector in console.x.ai first.

[Setup guide for Grok](/blog/connect-elaichi-to-grok/)

## Clerk MCP connector for Cursor

Endpoint: https://api.elaichi.ai/mcp

1. Open `~/.cursor/mcp.json`.
2. Add the endpoint under `mcpServers`.
3. Reload Cursor, then sign in and approve.

Set up per machine, so repeat it on each computer you work from.

## Clerk MCP connector for Microsoft Copilot

Endpoint: https://api.elaichi.ai/mcp

1. In Copilot Studio, open your agent, then Tools, Add a tool, New tool and Model Context Protocol.
2. Paste the endpoint into Server URL, choose OAuth 2.0, then Dynamic discovery, and press Create.
3. Create a new connection, sign in and approve, then press Add to agent.
4. Under Channels, open Teams and Microsoft Copilot and make the agent available in Microsoft Copilot.

Microsoft Copilot was called Microsoft 365 Copilot. Keep the tool on end-user credentials, so each person signs in as themselves.

## Connect Clerk to any MCP client

Endpoint: https://api.elaichi.ai/mcp

1. Add the endpoint as a remote MCP server.
2. Sign in and approve.

The Elaichi Agent already has these tools, with nothing to set up.

## What the consent screen decides

Every scope the client asks for starts ticked except "Delete things", which you tick yourself. Calling a Clerk tool needs "Use your connected apps". Over MCP there is no trusted place to confirm a write in the moment, so the consent screen is the standing approval rather than a formality. Think hard before granting Use your connected apps, which can also delete in connected apps and cannot be undone.

## What teams do with Clerk through Elaichi

### See an account the way a customer does

Support. Create a short-lived Clerk actor token so a support agent can reproduce what a customer is seeing. Revoke it the moment the ticket is closed.

### Keep track of every live API key

Engineering. List the Clerk API keys your app has issued, check which are still valid, and update their names or details. Revoke a key that should no longer work without opening the Clerk dashboard.

### Control who is allowed to sign up

Security. Review the Clerk allowlist, add a new email address or domain when a partner joins, and remove entries that no longer belong there.

### Reconcile billing statements and failed payments

Finance. Pull Clerk billing statements for a period and look at the payment attempts behind each one. Spot failed charges before the month closes.

### Review plans and adjust pricing

Product. List your Clerk billing plans and their prices, add a new price when packaging changes, and set up a price transition for existing subscribers.

### Send customers a self-serve admin portal link

Customer success. Create a Clerk admin portal link so a customer's administrator can manage their own setup. Revoke the link if it was sent to the wrong person.

## Elaichi vs Zapier MCP vs Composio for Clerk

All three can connect Clerk to an AI assistant, and all three have admin controls. They differ in where access lives and how you pay.

| What to check | Elaichi | Zapier MCP | Composio |
| --- | --- | --- | --- |
| Where the AI connects | One address for the whole organization. Endpoint: https://api.elaichi.ai/mcp | A server per member, created at sign-in. | An MCP endpoint per team, or an SDK. |
| Control over Clerk tools | Allow or restrict single Clerk tools, per role or user. | App and action restrictions on the account. | Role permissions, down to the action. |
| Record of calls | One audit entry per Clerk call. | A History tab of tool calls. | A log of every tool call. |
| Single sign-on | SAML or OIDC, plus SCIM, on Gold. | SAML on Enterprise. | SAML and OIDC on Enterprise. |
| Price | Free for one person; $15 per user per month on Gold. | 2 tasks per successful call. | Billed per tool call. |

Sources: Zapier MCP [docs](https://docs.zapier.com/mcp/get-started/quickstart), [security](https://docs.zapier.com/mcp/manage/security), [usage](https://docs.zapier.com/mcp/features/usage); Composio [docs](https://docs.composio.dev/docs/composio-connect), [gateway](https://composio.dev/mcp-gateway), [enterprise](https://composio.dev/enterprise), [pricing](https://composio.dev/pricing). Checked September 2026.

Longer take: [Zapier MCP alternative](/blog/zapier-mcp-alternative/) and [whether you need an MCP gateway on your own](/blog/when-you-dont-need-an-mcp-gateway/).

## Frequently asked questions

### How do I connect Clerk to Claude?

Connecting Clerk to Claude takes two steps: connect Clerk in Elaichi by pasting a Clerk secret key from your Clerk dashboard, then paste https://api.elaichi.ai/mcp into Claude under Customize, then Connectors, then Add. Clerk connects with an API key, so there is no OAuth application to register and no client ID or secret to generate. You sign in to Elaichi as yourself and Claude can start working with Clerk right away.

### Does Clerk work with ChatGPT, Perplexity, Grok and Cursor as well as Claude?

Yes. Once Clerk is connected in Elaichi, Claude, ChatGPT, Perplexity, Grok, Cursor, Microsoft Copilot, any other MCP client and the Elaichi Agent all use the same endpoint, https://api.elaichi.ai/mcp. You connect Clerk once and every client can use it.

### What can an AI agent actually do with my Clerk data?

An AI agent connected to Clerk through Elaichi can list and revoke API keys, create and revoke actor tokens for support sessions, manage the sign-up allowlist, create admin portal links, and review billing plans, prices, statements and payment attempts. Short, concrete asks such as "show Clerk billing statements from March" tend to work better than long sentences.

### Does connecting Clerk give the AI access to everything in my Clerk instance?

No. A Clerk connection can only do what the Clerk key it uses is allowed to do, and each person still signs in to Elaichi as themselves, so their own role decides what they can reach. Elaichi can narrow that access further with roles and restrictions, and it never widens it beyond what Clerk allows.

### Can my team share one Clerk connection?

Yes. One person connects Clerk in Elaichi and shares the connection with teams or individual members, and nobody else ever sees or handles the Clerk key. Each teammate still signs in as themselves, so the audit log names the actual person behind every Clerk action.

### Can I stop an agent from deleting or changing things in Clerk?

Yes. In Elaichi you can restrict individual Clerk actions, such as revoking API keys or deleting allowlist entries, for a whole role or for one person. A restricted Clerk tool still appears in Elaichi's tool search, flagged as restricted, but no client can run it, whatever the prompt says.

### What happens to a Clerk connection when someone leaves?

When someone leaves, offboarding them in Elaichi ends their access to Clerk at once, across every AI client. A shared Clerk connection keeps working for everyone else on the team, and if you disconnect Clerk once in Elaichi it is removed from every client.

### Does the Clerk MCP connector work with Gemini, Codex, Claude Code or other MCP clients?

Yes. Clerk is reached over the same MCP endpoint every client uses, so anything that speaks MCP can call it — Gemini, Codex, Claude Code, Windsurf, Cline, Zed and OpenCode among them — alongside Claude, ChatGPT, Perplexity, Grok, Cursor, Microsoft Copilot, and the Elaichi Agent. The tools on offer and the access behind them are identical whichever client asks. Only the setup screen differs.

### Is Elaichi an alternative to Zapier MCP for Clerk?

Yes. Both let Claude, ChatGPT or Cursor use Clerk. Zapier MCP fits a team that already automates in Zapier, since each person signs in and acts as themselves in that account. Elaichi fits when IT wants one address for the whole company, per-tool rules by role, and a record of every Clerk call.

### How is Elaichi different from Composio for Clerk?

Composio gives AI agents tools and sign-in handling across 1,000+ apps, for developers building agents or people using an assistant, billed per tool call. Elaichi gives a company's own people governed access to Clerk: one address, restrictions per role or user, and $15 per user per month. Both have role permissions and a log of every call.

## All 249 Clerk tools

Every tool below is callable through https://api.elaichi.ai/mcp once Clerk is connected, subject to the toolbox it is in and the restrictions on the caller.

- **Create a Clerk actor token** (Create). Create an actor token in Clerk that can be used to impersonate the given user. The `actor` payload must include a `sub` key with the ID of the impersonating user; the returned token embeds that payload in the resulting JWT session token. Requires `user_id` and `actor`. Required: user_id, actor.
- **Clerk actor tokens revoke** (Revoke). Revoke a pending actor token in Clerk. Returns the updated actor token record with its status, expires_at, and revoked_at. Requires `actor_token_id`. Required: actor_token_id.
- **Create a Clerk admin portal link token** (Create). Create an Admin Portal Link Token in Clerk. Returns the issued token plus its id, scopes, revoked, expiration, and created_at. Requires a JSON body with organization_id, it_contact_id, and scopes. seconds_until_expiration defaults to 3600 (max 86400).
- **Clerk admin portal link tokens revoke** (Revoke). Revoke an Admin Portal Link Token in Clerk. Optional revocation_reason in the request body. Required: admin_portal_link_token_id.
- **Create a Clerk agent task** (Create). Create an agent task on behalf of a user in Clerk. Returns the agent task object with its agent_id, agent_task_id, and the URL the user visits to create a session. Required: on_behalf_of, permissions, agent_name, task_description, redirect_url.
- **Clerk agent tasks revoke** (Revoke). Revoke a pending agent task in Clerk. Returns the agent task object with its agent_id, agent_task_id, and the URL the user visits to create a session. Required: agent_task_id.
- **List all Clerk allowlist identifiers** (List). List identifiers on the Clerk instance allow-list. Returns a paginated `data` array of allowed identifiers with their `id` and `identifier` (email address, phone number, or web3 wallet) fields. Paged: the connection pages through all results.
- **Create a Clerk allowlist identifier** (Create). Add an identifier to the Clerk instance allow-list. Returns the created allow-list entry with its `id` and the `identifier` value. Requires `identifier`. Required: identifier.
- **Delete a Clerk allowlist identifier by ID** (Delete). Delete an identifier from the Clerk instance allow-list by id. Returns the deleted object with its `id`, `object`, and `deleted` confirmation. The id is the identifier id. Required: id.
- **Get single Clerk API key secret by ID** (Get). Get the secret for a Clerk API key by id. id must match the pattern ak_&lt;32 hex chars&gt; or api_key_&lt;32 hex chars&gt;. The id is the api key id. Required: id.
- **Create a Clerk API key** (Create). Create a new Clerk API key. Returns the created API key object including id, name, secret, subject, scopes, and expiry state. Required: name, subject.
- **List all Clerk API keys** (List). List Clerk API keys filtered by subject. Returns a list of API key objects including id, name, subject, scopes, created_at, and expiry state. Paged: the connection pages through all results. Required: subject.
- **Get single Clerk API key by ID** (Get). Get a single Clerk API key by id. Returns the full API key object including name, subject, scopes, claims, and expiry state. The id is the api key id. Required: id.
- **Update a Clerk API key by ID** (Update). Update a Clerk API key. Returns the updated API key object including id, name, subject, scopes, and updated_at. The id is the api key id. Required: id.
- **Delete a Clerk API key by ID** (Delete). Delete a Clerk API key by id. Returns a confirmation object with id, object, and deleted. The id is the api key id. Required: id.
- **Clerk API keys revoke** (Revoke). Revoke an API key in Clerk. Returns the full API key object including id, name, subject, scopes, revoked status, revocation_reason, expiration, created_by, and timestamps (created_at, updated_at, last_used_at). Optionally accepts a revocation_reason in the request body. Required: api_key_id.
- **Clerk API keys verify** (Verify). Verify a Clerk API key. Returns the key record including id, name, subject, scopes, revoked, expired, and created_at. Required: secret.
- **List all Clerk billing plans** (List). List all billing plans in Clerk. Returns a paginated list of CommercePlan records sorted by creation date (newest first), including both free and paid plans. Paged: the connection pages through all results.
- **Create a Clerk billing price transition** (Create). Create a price transition for a subscription item in Clerk. Returns the created commerce price transition object containing its id and content-type-specific attributes. Requires: subscription_item_id. Note: the transition either creates an upcoming subscription item or activates immediately depending on plan and payer rules. Required: subscription_item_id, from_price_id, to_price_id.
- **List all Clerk billing prices** (List). List billing prices for a Clerk instance, sorted by amount ascending then creation date descending. Returns the list of price records (default and custom) with id and schema-defined attributes including the sort keys. Optional: plan_id. Paged: the connection pages through all results.
- **Create a Clerk billing price** (Create). Create a custom billing price for a Clerk billing plan. Returns the created price record with id and schema-defined attributes. Required: plan_id, amount.
- **List all Clerk billing statement payment attempts** (List). List payment attempts for a Clerk billing statement. Returns the payment attempts sorted by creation date with the newest first; each item includes its id and created_at. Paged: the connection pages through all results. Required: statement_id.
- **List all Clerk billing statements** (List). List billing statements in Clerk. Returns statement records sorted by creation date, newest first. Pagination is handled automatically. Paged: the connection pages through all results.
- **Get single Clerk billing statement by ID** (Get). Get a single billing statement in Clerk by id. Returns the statement record including its id and billing-statement-specific attributes. The id is the statement id. Required: id.
- **Create a Clerk billing subscription item discount** (Create). Apply an existing discount to a subscription item in Clerk. At most one active discount is allowed per subscription item; applying a different active discount replaces the current one, and re-applying the same active discount returns a conflict. Returns the discount redemption object including id and data. Required: subscription_item_id, discount_id.
- **Delete a Clerk billing subscription item discount by ID** (Delete). Remove the active discount from a subscription item in Clerk. The id must match the subscription item's currently active discount. Returns the resulting redemption object including id and data. The id is the discount id. Required: id, subscription_item_id.
- **List all Clerk billing subscription items** (List). List Clerk billing subscription items for the instance, including those belonging to users and organizations. Returns subscription item records sorted by creation date, with the newest appearing first. Optional: status, payer_type, plan_id, include_free, query. Paged: the connection pages through all results.
- **Delete a Clerk billing subscription item by ID** (Delete). Cancel a subscription item in Clerk. Returns the updated subscription item, including its id, status, plan, and billing period. Optionally accepts: end_now. The id is the subscription item id. Required: id.
- **Clerk billing subscription items extend free trial** (Action). Extend the free trial of a Clerk billing subscription item to a new timestamp. Returns the updated subscription item record. The request body carries a target timestamp; the subscription item must be currently in a free trial, the plan must support free trials, the timestamp must be in the future and no more than…. Required: subscription_item_id, extend_to.
- **List all Clerk blocklist identifiers** (List). List identifiers on the Clerk block-list. Returns the block-list collection with each entry's id and identifier value. Source-grounded fields: identifier.
- **Create a Clerk blocklist identifier** (Create). Add an identifier to the Clerk block-list. Returns the created block-list entry including its id and identifier value. Requires identifier. Required: identifier.
- **Delete a Clerk blocklist identifier by ID** (Delete). Delete an identifier from the Clerk block-list. Returns the deleted-object acknowledgement (id, object, deleted). The id is the identifier id. Required: id.
- **Clerk clients verify** (Verify). Verify a Clerk client session token in the Clerk Backend API. Returns the Client object associated with the supplied token; the resource tracks the client's sessions plus its current sign-in and sign-up attempt state. Required: token.
- **Get single Clerk client by ID** (Get). Get a single Clerk client by id. The id is the client id. Required: id.
- **Clerk clients revoke** (Revoke). Permanently revoke a Clerk client by client_id, including its active and pending sessions. Safe to repeat. Required: client_id.
- **List all Clerk directories** (List). List all Clerk directories for the instance. Returns a paginated array of directory objects including their id, name, provider, enterprise_connection_id, enabled, paused, attribute_mapping, group_role_mapping_enabled, and group_role_mappings. Paged: the connection pages through all results.
- **Create a Clerk directory** (Create). Create a new Clerk directory for the instance. Returns the created directory including its id, enterprise_connection_id, name, provider, and initial group_role_mappings. Requires enterprise_connection_id and provider. Required: enterprise_connection_id, provider.
- **Get single Clerk directory by ID** (Get). Get a single Clerk directory by id. Returns the directory object including its id, enterprise_connection_id, name, provider, enabled, paused, attribute_mapping, group_role_mapping_enabled, and group_role_mappings. The id is the directory id. Required: id.
- **Update a Clerk directory by ID** (Update). Update a Clerk directory in place. Returns the updated directory including its id, enterprise_connection_id, name, provider, enabled, paused, attribute_mapping, group_role_mapping_enabled, and group_role_mappings. The id is the directory id. Required: id.
- **Delete a Clerk directory by ID** (Delete). Delete a Clerk directory by id and stop provisioning for it; provisioning requests authenticated with the directory's API key are rejected afterwards. Returns the deleted-object acknowledgement. The id is the directory id. Required: id.
- **Clerk directories rotate API key** (Rotate). Rotate a directory's API key in Clerk. Returns the updated directory object including the new `api_key` plus id, name, type, provider, and state. Required: directory_id.
- **List all Clerk directory group members** (List). List the members of a directory group in Clerk. Returns a paginated list of group members, each with an id and member attributes. Each member carries the Clerk user it is linked to, or null until that user has been provisioned. Paged: the connection pages through all results. Required: directory_id, group_id.
- **List all Clerk directory group role mappings** (List). List directory group to organization role mappings for a Clerk directory, ordered by precedence. Returns each mapping with its id, role_id, directory_group_id, scim_group_id, and precedence. Required: directory_id.
- **Create a Clerk directory group role mapping** (Create). Create a directory group to organization role mapping in Clerk. Returns the created mapping including its id, role_id, directory_group_id, scim_group_id, and precedence. Required: directory_id, role_id.
- **Clerk directory group role mappings replace** (Action). Replace the entire set of directory group role mappings for a Clerk directory. Array position sets precedence (first item gets precedence 1); an empty array clears all mappings. Returns the updated list of mappings ordered by precedence. Required: directory_id, mappings.
- **Delete a Clerk directory group role mapping by ID** (Delete). Delete a single directory group role mapping from a Clerk directory. The id is the mapping id. Required: id, directory_id.
- **List all Clerk directory groups** (List). List directory groups in Clerk for a directory. Returns a paginated list of groups, each with an id and group attributes as reported by the identity provider. Paged: the connection pages through all results. Required: directory_id.
- **Get single Clerk directory group by ID** (Get). Get a single directory group in Clerk by id. Returns the directory group object with its id and group attributes as reported by the identity provider. Responds with 404 once the identity provider has deleted the group. The id is the group id. Required: id, directory_id.
- **List all Clerk domains** (List). List all domains configured for the Clerk instance, including the primary domain and any satellite domains. Returns the collection of domain records.
- **Create a Clerk domain** (Create). Add a new domain to the Clerk instance — either as a satellite domain or as the first custom primary domain when migrating off a provider domain. Returns the created domain record. Required: name, is_satellite.
- ...and 199 more tools. Call `tools/list` via the MCP endpoint, or see the full catalog via the API, for the complete set.
