Clerk is a Security MCP server that lets Claude Code, Cursor, Windsurf and any MCP-compatible AI agent manage Clerk users, sessions, and organizations for auth flows from any MCP client. Install in 1 minute with mcpizy install clerk.
Security
Manage Clerk users, sessions, and organizations for auth flows from any MCP client.
Official homepagemcpizy install clerknpx -y @clerk/mcp-serverlist_usersList users in the Clerk application
Inputs
limitnumberoptionalget_userGet a single user by ID
Inputs
user_idstringrequiredcreate_userCreate a new user
Inputs
email_addressstringrequiredpasswordstringoptionaldelete_userDelete a user
Inputs
user_idstringrequiredlist_organizationsList organisations in the app
list_sessionsList active sessions
Works identically across clients. Only the config file path differs.
~/.claude.json{
"mcpServers": {
"clerk": {
"command": "npx",
"args": [
"-y",
"@clerk/agent-toolkit",
"--mcp"
],
"env": {
"CLERK_SECRET_KEY": "sk_test_..."
}
}
}
}.cursor/mcp.json{
"mcpServers": {
"clerk": {
"command": "npx",
"args": [
"-y",
"@clerk/agent-toolkit",
"--mcp"
],
"env": {
"CLERK_SECRET_KEY": "sk_test_..."
}
}
}
}~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"clerk": {
"command": "npx",
"args": [
"-y",
"@clerk/agent-toolkit",
"--mcp"
],
"env": {
"CLERK_SECRET_KEY": "sk_test_..."
}
}
}
}Copy your secret key from the Clerk dashboard
CLERK_SECRET_KEYPaste any of these prompts into Claude Code, Cursor or another MCP-compatible client.
“List the 20 most recent signups in my app”
Uses: list_users
“Create a test user with email [email protected]”
Uses: create_user
“Show me every organisation and its member count”
Uses: list_organizations
“How many active sessions are there right now?”
Uses: list_sessions
Boost security in dev lifecycle via SAST, SCA, secrets scanning, and supply chain security.
AI-powered security insights for Kubernetes and cloud workloads. Threat detection.
Manage 1Password vaults, items, and secrets from AI agents via the Model Context Protocol.
Manage Okta users, groups, and application assignments for identity from AI agents.
If Clerk doesn't fit your stack, these Security MCP servers solve similar problems.
The Clerk MCP server is an Security Model Context Protocol server that lets Claude Code, Cursor, Windsurf, VS Code with Copilot, and other MCP-compatible AI agents manage Clerk users, sessions, and organizations for auth flows from any MCP client. It exposes Clerk's capabilities as tools the AI can call directly from your editor or CLI.
The fastest way is the MCPizy CLI: run `mcpizy install clerk` and MCPizy will add the server to your `.claude.json` automatically. You can also install it manually by adding an entry under `mcpServers` in `.claude.json` with the command `npx -y @clerk/mcp-server` and restarting Claude Code.
Yes. The Clerk MCP server is free and open source (see the GitHub repository linked on this page). You may still need a Clerk account or API key to connect the server to the underlying service, but the MCP layer itself has no MCPizy subscription cost.
Yes. Any MCP-compatible client works — including Claude Code, Claude Desktop, Cursor (via `.cursor/mcp.json`), Windsurf, VS Code with Copilot Chat, and custom agents built on the MCP SDK. The same install command targets all of them; only the config file path differs.
Once installed, your AI agent can manage Clerk users, sessions, and organizations for auth flows from any MCP client directly inside your conversation. Typical use cases include asking Claude Code or Cursor to run Clerk operations, inspect results, chain Clerk with other MCP servers (see our Workflow Recipes), and automate repetitive security tasks without leaving your editor.