mcp-clerk
Provides tools for interacting with the Clerk Backend API, enabling user search and retrieval, profile and metadata updates, user creation/deletion, and moderation actions such as banning, locking, or revoking sessions.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-clerk
An MCP server for the Clerk Backend API. Ask your AI assistant to find users, check their status, update profiles and metadata, and ban, lock or sign out abusive accounts.
Status: pre-release. The package is not on npm yet. Until it is, run it from source.
Clerk's own MCP server (mcp.clerk.com) helps you set up and configure Clerk apps. This one is for operating them: support and moderation work on the users you already have.
Not affiliated with or endorsed by Clerk.
Tools
Toolset | Tool | What it does |
|
| Find users by email, phone, username, name or ID, or list an organization's members |
| Full profile: banned/locked status, emails, connected accounts, metadata, organizations | |
| Create a user | |
| Change name, username, external ID, primary email, locale or timezone | |
| Merge keys into public, private or unsafe metadata | |
| Permanently delete a user (only with | |
|
| Ban signs the user out everywhere and blocks sign-in until unbanned |
| Block sign-in until the lock expires or is lifted | |
| Sign the user out on every device |
Both toolsets are on by default. More (sessions, organizations, invitations, allow/blocklists) are coming.
Related MCP server: MCP Fivetran
Install
You need your instance's secret key from the Clerk Dashboard → API keys. Use a development instance's sk_test_ key while you try it out.
Claude Code
claude mcp add clerk -e CLERK_SECRET_KEY=sk_live_... -- npx -y @tembo/mcp-clerkCursor, Claude Desktop, Windsurf and other JSON-configured clients
{
"mcpServers": {
"clerk": {
"command": "npx",
"args": ["-y", "@tembo/mcp-clerk"],
"env": { "CLERK_SECRET_KEY": "sk_live_..." }
}
}
}VS Code (.vscode/mcp.json)
{
"inputs": [
{ "id": "clerk-secret-key", "type": "promptString", "description": "Clerk secret key", "password": true }
],
"servers": {
"clerk": {
"command": "npx",
"args": ["-y", "@tembo/mcp-clerk"],
"env": { "CLERK_SECRET_KEY": "${input:clerk-secret-key}" }
}
}
}Codex (~/.codex/config.toml)
[mcp_servers.clerk]
command = "npx"
args = ["-y", "@tembo/mcp-clerk"]
env = { CLERK_SECRET_KEY = "sk_live_..." }Using Bun? Replace npx -y with bunx.
Options
Pass options as flags after the package name, or set the environment variable.
Flag | Environment variable | Default | |
|
|
| Comma-separated toolsets, or |
|
| off | Only expose tools that read |
|
| off | Expose tools that permanently delete data |
|
| none | Users that can't be banned, locked, signed out or deleted |
|
| none | Same, for every member of these organizations |
For example, to give a support teammate lookup-only access:
claude mcp add clerk -e CLERK_SECRET_KEY=sk_live_... -- npx -y @tembo/mcp-clerk --read-onlySafety
A Clerk secret key has full control of your instance, and this server can act on any user. It has guardrails:
Your client asks first. Every tool that changes something is marked as such, so MCP clients ask you to approve it.
Reasons are required for ban, lock, sign-out and delete.
Protect your own team. Set
--protected-org-idsto your company's Clerk organization so nobody on it can be banned, locked, signed out or deleted by mistake.Deletes are off unless you pass
--allow-delete. Banning is reversible; deleting isn't.Audit log. Each write prints one JSON line to stderr with the tool, target user, reason and outcome. Most MCP clients keep server stderr in their logs.
Read-only mode for people who only need to look things up.
Keep the secret key out of shared config files and source control.
Development
bun install
bun run test # builds dist/stdio.js, then runs the tests
bun run typecheck
bun run lintTry it from source with the MCP Inspector:
bun run build
CLERK_SECRET_KEY=sk_test_... npx @modelcontextprotocol/inspector node dist/stdio.jsOr point a client at your checkout: claude mcp add clerk -e CLERK_SECRET_KEY=sk_test_... -- node /path/to/mcp-clerk/dist/stdio.js.
The package is built with Bun into a single Node-compatible file, so npx users don't need Bun.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read users, organizations, sessions and invitations; ban users and revoke sessions in Clerk.
Manage Clerk applications, users, and production domains, and get Clerk SDK code snippets.
Search users and B2B members, read sessions, and revoke a user session in Stytch.
Manage ClerkChat AI support agents: knowledge, channels, conversations, automations, analytics.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query and manage Clerk organizations, users, members, and metadata via the Model Context Protocol. It supports both hosted and per-request secret key modes for flexible integration with various AI environments.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Fivetran users and connections, including inviting users, listing connections, and triggering syncs.-
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to manage Clerk applications, domains, application transfers, instance users, JWT templates, and instance configuration via the Clerk Platform API.-
- FlicenseNot gradedqualityCmaintenanceEnables delegated Microsoft Entra-authenticated access to Microsoft 365 user profile data, exposing read, capability, and description tools for AI assistants.-