Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Clerk

MCP server by clerk Verified · npm:clerk

Sets up Clerk authentication in your app and manages Clerk users, instances, keys, and deploys from the terminal. Built for developers and coding agents working with Next.js, React Router, Astro, Nuxt, TanStack Start, Expo, and similar frameworks.

  • Score 94
  • 57 stars
  • 143k a week
  • MIT
  • Updated

Install Clerk

Built from the published package, never by AI.

claude mcp add clerk -- npx -y clerk

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Clerk in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the clerk block.

About

Clerk CLI is the official command-line interface for Clerk, an authentication service. Running npx -y clerk@latest init detects the framework, installs the matching Clerk SDK in npm-based projects when it is missing, and scaffolds provider wiring, middleware or proxy files, and sign-in and sign-up routes. For Next.js, Astro, Nuxt, TanStack Start, and React Router, agent runs can start without a Clerk account, creating an unclaimed development application with local keys. A doctor command checks the integration afterward.

The CLI also manages users, applications, instances, configuration, environment variables, logs, webhooks, and deploys from the terminal. Scripts and agents can use the --json flag for stable output, and --input-json accepts command options as JSON. It is aimed at developers and coding agents building apps with Clerk. Usage telemetry is collected by default and can be turned off with clerk telemetry disable or CLERK_TELEMETRY_DISABLED=1.

Written from the project's README and checked against it.

Tools it gives your assistant

  • initDetects the framework, installs Clerk SDK packages, and scaffolds Clerk wiring in the project.
  • doctorChecks your project's Clerk integration health.
  • appsManages your Clerk applications.
  • usersManages Clerk users.
  • deployDeploys a Clerk application to production.
  • logsReads your instance's Application Logs.
  • webhooksStreams webhook events to a local handler and verifies their signatures.
  • mcpManages the Clerk remote MCP server connection for AI editors and CLIs.
  • apiCalls any Clerk API endpoint, with 200+ endpoints available to browse.
  • envManages environment variables.

What you need

  • Node.js and npm for the npx and npm install commands
  • Homebrew, if installing on macOS or Linux that way
  • A Clerk account or linked app for frameworks without accountless support

Try asking

  • Add Clerk authentication to my Next.js app and check the setup with doctor
  • List the Clerk users in my linked app and show their status
  • Show the latest Application Logs for my Clerk instance

Good to know

  • Frameworks without accountless support need an authenticated app target before keys can be pulled.
  • Human-readable output can change in any release, so scripts should use --json.
  • Feedback reports cannot be deleted by the CLI; removal requires contacting Clerk support with the report id.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Clerk

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Clerk: common questions

Do I need a Clerk account to try it?

For Next.js, Astro, Nuxt, TanStack Start, and React Router, unauthenticated agent runs can start without a Clerk account or browser login. Frameworks without accountless support need an authenticated app target, which can be set with --app, a linked project, or --login.

Does the Clerk CLI collect telemetry?

Yes, it collects usage telemetry such as command name, flag names, and app or instance IDs, but not raw command arguments, option values, file paths, or personal data. Opt out with clerk telemetry disable or by setting CLERK_TELEMETRY_DISABLED=1.

How should scripts read the CLI output?

Scripts and agents should use --json, since its shape is a contract that changes only in major versions. The human output, including tables and colors, can change in any release and should not be parsed.

How do I install Clerk?

In Claude Code run claude mcp add clerk -- npx -y clerk. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Clerk the official server?

Clerk is published by npm:clerk from its verified domain in the official MCP Registry.

Is Clerk free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Clerk safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Clerk?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Clerk work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Add to stack

Loading.