# Clerk

MCP server for Clerk authentication. It lets your coding agent fetch SDK snippets and patterns for users, sessions, and organizations.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 407 installs
- Author: clerk
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/clerk
- Updated: 2026-03-27
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/clerk

## What it 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.

## Requirements
- Remote server: `https://clerk.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http clerk https://clerk.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add clerk --url https://clerk.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "clerk": {
            "url": "https://clerk.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "clerk": {
            "type": "http",
            "url": "https://clerk.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http clerk https://clerk.run.tools
```

## When to use it
- 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
- 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

## Similar
- [clerk-webhooks](https://affpapa.org/en/nevibecode/skills/clerk-webhooks.md) — skill · 55700 installs
- [clerk-cli](https://affpapa.org/en/nevibecode/skills/clerk-cli.md) — skill · 36500 installs
- [clerk-nextjs-skills](https://affpapa.org/en/nevibecode/skills/clerk-nextjs-skills.md) — skill · 438 installs
- [clerk-authentication](https://affpapa.org/en/nevibecode/skills/clerk-authentication.md) — skill · 724 installs
- [clerk-auth](https://affpapa.org/en/nevibecode/skills/clerk-auth.md) — skill · 62 installs
- [clerk-production](https://affpapa.org/en/nevibecode/skills/clerk-production.md) — skill · ★ 741 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
