Clerk
MCP server by Clerk
Look up Clerk SDK code snippets, authentication patterns and framework-specific implementation guides.
Connect to Clerk
Clerk needs sign-in. Connect with its own URL:
Your client opens Clerk’s sign-in the first time you use it. The token stays between your client and Clerk.
Share this server
Opens this page, with the URL and setup steps.
mcp.tc/i/clerkAbout
Clerk's remote MCP server gives an AI assistant current Clerk SDK snippets and implementation patterns. You can list the available snippets and bundles, filter them by tag, and fetch a specific snippet by its slug. The content covers authentication flows, Organizations and framework-specific examples such as Next.js and React.
The server is hosted at https://mcp.clerk.com/mcp and uses streamable HTTP. No sign-in or API key is needed. The Clerk CLI can register it in supported clients, or you can add the URL manually. Clerk marks this server as beta, so behavior may change.
What you can do
- List available Clerk SDK snippets and bundles
- Filter snippets by tag to find specific functionality
- Fetch a Clerk SDK snippet by slug
- Get authentication and Organizations implementation patterns
- Get framework-specific examples for Next.js, React and others
Tools 23
clerk_sdk_snippetRead-onlyGet a Clerk SDK code snippet or pattern by its slug.
list_clerk_sdk_snippetsRead-onlyList available Clerk SDK snippets and bundles, optionally filtered by tag.
whoamiRead-onlyWho am I
submit_feedbackWritesSend feedback to Clerk
list_applicationsRead-onlyList Clerk applications
get_applicationRead-onlyGet Clerk application
create_applicationWritesCreate Clerk application
enable_organizationsWritesEnable organizations
enable_billingWritesEnable billing
disable_organizationsWritesDisable organizations
disable_billingWritesDisable billing
get_instance_configRead-onlyGet instance configuration
Show 11 more tools
get_instance_config_schemaRead-onlyGet instance configuration schema
patch_instance_configCan deletePatch instance configuration
put_instance_configCan deleteReplace instance configuration
list_usersRead-onlyList users
create_userWritesCreate user
list_domainsRead-onlyList application domains
get_deploy_oauth_providersRead-onlyGet OAuth providers needing production credentials
create_production_instanceCan deleteCreate production instance
get_domain_statusRead-onlyGet domain verification status
check_domain_dnsWritesTrigger a DNS check
set_oauth_provider_credentialsCan deleteSet OAuth provider credentials
Read from the live server on 17 Nov 2026. Read-only, Writes and Can delete are hints the server declares; your client decides whether to ask before running a tool.
Example prompts
List the Clerk SDK snippets available for authentication.
Show me the Clerk snippet for protecting a route in Next.js.
Find Clerk snippets tagged with organizations.
Add Clerk sign-in to my React app using the latest snippet.
Set up
Every client connects to mcp.clerk.com, and Clerk asks you to sign in the first time. Pick yours; the page remembers your choice.
Claude Code
- Run this in a terminal, in your project folder:
claude mcp add --transport http clerk https://mcp.clerk.com/mcp- Start Claude Code, type
/mcp, pick clerk and choose Authenticate. A browser window opens for the Clerk sign-in.
Add --scope user to make it available in every project, not just this one.
Claude Desktop
- Open Customize → Connectors, click + Add, then Add custom connector.
- Name it Clerk and paste this URL:
https://mcp.clerk.com/mcp- Click Add, then Connect, and sign in when Clerk asks.
Claude Desktop’s JSON config file only starts local servers. Remote servers go through Connectors, and connectors you add on claude.ai show up here too.
claude.ai
- Open the connector form on claude.ai. This button fills in the name and URL for you:
Add to claude.ai (opens in a new tab)
- Check that the URL reads
https://mcp.clerk.com/mcpand click Add. - Click Connect and sign in when Clerk asks.
Free plans allow one custom connector. On Team and Enterprise plans an owner adds it under Organization settings → Connectors.
ChatGPT
- On chatgpt.com, go to Plugins, select +, then Add custom MCP server.
- Enter a name for the server.
- Under Connection, paste
https://mcp.clerk.com/mcpas the server URL, then for authentication choose OAuth. ChatGPT sends you to Clerk to sign in. - Check I understand and want to continue, then select Create as a plugin.
Whether you can add a custom MCP server depends on your ChatGPT plan and your workspace permissions (in Business workspaces, admins and owners can).
Cursor
Add to Cursor (opens in a new tab)
Or add it by hand to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project):
{
"mcpServers": {
"clerk": {
"url": "https://mcp.clerk.com/mcp"
}
}
}Cursor shows Needs authentication next to the server. Click the button beside it to sign in.
VS Code
Install in VS Code (opens in a new tab)
Or from a terminal:
code --add-mcp '{"name":"clerk","type":"http","url":"https://mcp.clerk.com/mcp"}'Or commit it to the repo in .vscode/mcp.json:
{
"servers": {
"clerk": {
"type": "http",
"url": "https://mcp.clerk.com/mcp"
}
}
}VS Code asks you to sign in the first time the server starts.
Devin Desktop
- Add it to
~/.config/devin/mcp_config.json(macOS and Linux) or%APPDATA%\devin\mcp_config.json(Windows):
{
"mcpServers": {
"clerk": {
"serverUrl": "https://mcp.clerk.com/mcp"
}
}
}- Refresh the MCP server list in Cascade and sign in when asked.
Devin Desktop is the new name for Windsurf. It reads serverUrl (or url) for remote servers.
Codex
codex mcp add clerk --url https://mcp.clerk.com/mcp
codex mcp login clerkOr edit ~/.codex/config.toml directly:
[mcp_servers.clerk]
url = "https://mcp.clerk.com/mcp"Gemini CLI
gemini mcp add --transport http clerk https://mcp.clerk.com/mcpThen, inside Gemini CLI, run /mcp auth clerk to sign in.
This adds it to the current project. Add -s user to use it everywhere.
Any client
Most clients accept this shape. Some name the URL field differently: serverUrl in Devin Desktop, httpUrl in Gemini CLI’s settings file.
{
"mcpServers": {
"clerk": {
"type": "http",
"url": "https://mcp.clerk.com/mcp"
}
}
}Zed puts servers under context_servers in its settings. Cline needs "type": "streamableHttp", or it assumes SSE.
Client only starts local servers? Bridge it with npx -y mcp-remote https://mcp.clerk.com/mcp.
Embed
Show Clerk in a README or on your site. Each embed links to this page, uses the server’s own URL, and sets no cookies. How embeds work
The card, the iframe and the JSON are in English. Add ?lang=it, fr, de or es to their address for another language.
README badge
[](https://mcp.tc/i/clerk)<a href="https://mcp.tc/i/clerk"><img src="https://mcp.tc/i/clerk/badge.svg" alt="Clerk on mcp.tc" height="20"></a>It follows the reader’s light or dark mode. Add ?theme=light or ?theme=dark to fix it, or ?style=compact to show the mark without the word.
Website card
<script src="https://mcp.tc/w/clerk.js" async></script>The card appears where the tag is. Add data-theme="dark" or data-size="compact" to the tag to change it. The file holds everything it needs, so it makes no other requests and sets no cookies.
iframe
<iframe src="https://mcp.tc/embed/clerk" title="Clerk on mcp.tc" width="420" height="200" loading="lazy" allow="clipboard-write" style="border:0;border-radius:8px;max-width:100%"></iframe>Use it on pages that don’t allow scripts. Add ?theme=light or ?theme=dark to the address to fix the colors.
JSON
The listing as data for your own pages and tools: name, tagline, the server’s own URL, tools and the “Add to” links. Any site can read it (CORS is open).
https://mcp.tc/i/clerk.jsonAI prompt
Paste this into an AI coding assistant, such as Claude Code or Cursor, and it adds the Clerk card to your site.
Add the mcp.tc card for Clerk, an MCP server, to my website. It is one static script: no build step, no package to install, no cookies.
Put this tag where the card should appear. The card renders right before it:
```html
<script src="https://mcp.tc/w/clerk.js" async></script>
```
To show the card somewhere else, put this placeholder there and load the same script once, for example before `</body>`. Keep the link inside: visitors without JavaScript see it.
```html
<div data-mcptc="clerk"><a href="https://mcp.tc/i/clerk">Clerk on mcp.tc</a></div>
```
Options:
- `data-theme="light"` or `"dark"` on the tag or the placeholder fixes the colors. Without it, the card follows the visitor’s light or dark mode.
- `data-size="compact"` gives a smaller card without the tagline.
- The CSS variable `--mcptc-max-width` on the placeholder or a parent sets the width (default `520px`).
- `?lang=` on the script URL sets the card’s language: `en`, `it`, `fr`, `de` or `es`.
If the site has a Content Security Policy, allow `script-src https://mcp.tc` and `img-src data:` (the icon is inline).
For a README or other Markdown docs, use the badge instead:
```markdown
[](https://mcp.tc/i/clerk)
```
Reference: https://mcp.tc/embedChange history
Its tools are behind a sign-in, so we can’t read them. New versions it reports and edits by its owner show up here.
-
20 tools changed.
Details, 9 Oct 2026, 01:34 UTC
Changed 20
check_domain_dnshintsopenWorldHintyes changed to no
create_applicationhintsopenWorldHintyes changed to no
create_production_instancehintsopenWorldHintyes changed to no
create_userhintsopenWorldHintyes changed to no
disable_billinghintsopenWorldHintyes changed to no
disable_organizationshintsopenWorldHintyes changed to no
enable_billinghintsopenWorldHintyes changed to no
enable_organizationshintsopenWorldHintyes changed to no
get_applicationhintsopenWorldHintyes changed to no
get_deploy_oauth_providershintsopenWorldHintyes changed to no
get_domain_statusget_instance_configget_instance_config_schemalist_applicationslist_domainslist_userspatch_instance_configput_instance_configset_oauth_provider_credentialswhoami -
21 tools added and 2 tools changed.
New tool marked destructive
Details, 8 Oct 2026, 22:30 UTC
Added 21
check_domain_dnsWritesAsk Clerk to re-check DNS records for an application domain now, then read status with get_domain_status.
create_applicationWritesCreate a new application in the connected workspace (like `clerk apps create`).
create_production_instanceCan deleteCreate the production instance for an application on a domain you own, cloned from development (the first step of `clerk deploy`). Irreversible; requires confirm: true. Returns the DNS records to add and the next steps.
create_userWritesCreate a user in an instance (like `clerk users create`). Named fields are merged over body, the raw Backend API create-user request.
disable_billingWritesDisable billing for organizations and/or users (like `clerk disable billing`). Leaves organizations themselves enabled.
disable_organizationsWritesDisable organizations on an instance (like `clerk disable orgs`). Refuses while organization billing is enabled.
enable_billingWritesEnable billing for organizations and/or users (like `clerk enable billing`). Organization billing also enables organizations.
enable_organizationsWritesEnable organizations on an instance (like `clerk enable orgs`).
get_applicationRead-onlyGet one Clerk application that the connected account can access.
get_deploy_oauth_providersRead-onlyList OAuth providers enabled on the development instance, the credential fields each needs in production, and whether production already has them (the OAuth step of `clerk deploy`).
get_domain_statusRead-onlyRead DNS, SSL, and email verification status for an application domain.
get_instance_configRead-onlyRead instance configuration (like `clerk config pull`). Sensitive values are redacted. Pass keys to limit the top-level sections returned.
get_instance_config_schemaRead-onlyRead the JSON schema for instance configuration (like `clerk config schema`). Pass keys to limit the top-level sections returned.
list_applicationsRead-onlyList the applications in the connected workspace (like `clerk apps list`).
list_domainsRead-onlyList an application's domains, including the DNS records each one needs (dns_targets).
list_usersRead-onlyList users of an instance (like `clerk users list`). Filters match the Backend API list-users query.
patch_instance_configCan deletePartially update instance configuration (like `clerk config patch`). Use dry_run first to validate without applying.
put_instance_configCan deleteReplace the entire instance configuration (like `clerk config put`). config must include every top-level key, so start from get_instance_config. Use dry_run first.
set_oauth_provider_credentialsCan deleteSave production OAuth credentials for a provider on an instance (the credential step of `clerk deploy`). Use get_deploy_oauth_providers for the required fields.
submit_feedbackWritesSend feedback to the Clerk team about a problem you hit while working with Clerk for the user. Call this when a Clerk task fails, needed a workaround, a Clerk tool returned a confusing or wrong result, documentation was missing, or the user asks you to report a problem. Never include secrets, API keys, tokens, or personal data about end users. Reports are read by the Clerk team and used to improve Clerk.
whoamiRead-onlyShow the connected Clerk account, its active workspace, and the granted scopes (like `clerk whoami`).
Changed 2
clerk_sdk_snippethintsreadOnlyHintno changed to yesidempotentHintnot set changed to yes
list_clerk_sdk_snippetshintsreadOnlyHintno changed to yesidempotentHintnot set changed to yes
-
Tracking started: 2 tools.
FAQ
Can I paste mcp.tc/i/clerk into my MCP client?
No. mcp.tc links are pages, not server addresses. Connect with https://mcp.clerk.com/mcp, so your client talks to Clerk directly. The sign-in token only works there anyway. The quick link is for sharing: it opens this page, with setup steps for every client.
Does Clerk need an API key or a sign-in?
Yes, you need a Clerk account. The first time your client connects, it opens Clerk’s sign-in page. The token goes straight to the server’s own URL, never through mcp.tc.
Is Clerk a remote or a local server?
Remote. Clerk hosts it at https://mcp.clerk.com/mcp, and it speaks Streamable HTTP. There’s nothing to install.
What can Clerk do?
It has 23 tools, including clerk_sdk_snippet, list_clerk_sdk_snippets and whoami. You can list available Clerk SDK snippets and bundles, filter snippets by tag to find specific functionality and fetch a Clerk SDK snippet by slug.
Which clients can use it?
Any client that supports remote MCP servers: Claude Code, Claude Desktop, claude.ai, ChatGPT, Cursor, VS Code, Devin Desktop, Codex, Gemini CLI, Zed and others. The setup steps cover each one.
Does mcp.tc track changes to Clerk?
Partly. Clerk’s tools are behind a sign-in, so we can’t read them. Its History tab shows the new versions it reports and edits by its owner. Follow the listing to get an email when it changes.
Who wrote this page?
mcp.tc’s robot read Clerk’s own metadata (its MCP handshake, tool list and public pages), and an AI model drafted the text from it. A person reviews anything the checks can’t confirm. The text can still be wrong, so if you spot a mistake, use Report this listing on this page.
mcp.tc isn’t affiliated with Clerk. This page was built from Clerk’s public metadata, last checked on 17 Nov 2026, and an AI model wrote the description, so it can be wrong. Names and marks belong to their owners. Something off? Report this listing.