Clerk — Claude Code MCP server: what it does, how to install
MCP server for Clerk authentication. It lets your coding agent fetch SDK snippets and patterns for users, sessions, and organizations.
no license 407 installs updated 2026-03-27
claude mcp add --transport http clerk https://clerk.run.toolsWhat Clerk does
This server hooks Claude Code directly to the remote endpoint https://clerk.run.tools over HTTP. You do not need to run local background processes because all queries target the hosted address.
It exposes tools named list_clerk_sdk_snippets and clerk_sdk_snippet. The first searches code samples by tag, while the second pulls specific SDK code patterns. That allows the assistant to look up authentication workflows, user metadata, account bans, and organization invites.
Network access is mandatory here since calls go straight to an external domain.
What it helps with
- search Clerk SDK examples filtered by functional tags
- integrate user authentication and session checks into application code
- inspect user profile metadata and ban statuses
- set up organization membership and invitation handling
Example prompts for the agent
- List all Clerk SDK snippets tagged with react
- Fetch the Clerk SDK code pattern for updating user metadata
- Show available snippets for handling user sessions and invitations
How to install Clerk
Platform CLI: remote server
claude mcp add --transport http clerk https://clerk.run.toolsPlatform CLI: remote server
codex mcp add clerk --url https://clerk.run.toolsConfig file
{
"mcpServers": {
"clerk": {
"url": "https://clerk.run.tools"
}
}
}Config file
{
"servers": {
"clerk": {
"type": "http",
"url": "https://clerk.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http clerk https://clerk.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Clerk
How to install Clerk in Claude Code?
Run the command claude mcp add --transport http clerk https://clerk.run.tools.
What does the Clerk MCP server do?
It connects your assistant to Clerk resources to retrieve SDK code patterns and manage user sessions, invites, and account details.
Which tools are included in this server?
The server provides list_clerk_sdk_snippets for filtering SDK code samples and clerk_sdk_snippet for fetching specific implementation snippets.