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 keshavkatwe Verified · npm:@toolgrain

Clerk provides OAuth access-token verification for Toolgrain MCP servers. Toolgrain is a TypeScript framework for building schema-validated MCP tools with Zod and serving them over stdio or HTTP. It is aimed at developers who want to protect HTTP endpoints with Clerk.

  • Score 75
  • 0 stars
  • 135 a week
  • MIT
  • Updated

Install Clerk

Built from the published package, never by AI.

claude mcp add clerk -- npx -y @toolgrain/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 is the @toolgrain/clerk package in the Toolgrain project. It verifies Clerk OAuth access tokens, so protected HTTP endpoints can check the caller's identity. Toolgrain itself lets developers define reusable tools with Zod, compose them into MCP servers, and serve them from an existing Node or Bun application. Handlers can read typed, verified identities.

The project supports stdio and HTTP transports and implements MCP directly, without the official SDK. It requires Node.js ^24.20.0 and a TypeScript project in strict mode, using Zod ^4.6.6. It is aimed at developers who want to expose application services to MCP clients with schema-validated tools and authorization.

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

What you need

  • Node.js ^24.20.0
  • TypeScript 5.5.4 or later with strict mode
  • Zod ^4.6.6
  • ESM module format

Try asking

  • Check my Clerk OAuth token before running the protected MCP tools
  • Set up an HTTP MCP endpoint that requires Clerk authorization
  • Show me how to read the verified identity inside an MCP tool handler

Good to know

  • Sessions, SSE, resumability, resources, prompts, and elicitation are not implemented
  • Progress reporting and subscriptions are outside the current implementation
  • Node 26 is in preview
  • HTTP uses independent POST requests with JSON responses

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

What you can do with it

  • Protect an HTTP MCP endpoint with Clerk OAuth
  • Build MCP servers from typed TypeScript tools
  • Serve MCP tools over stdio or HTTP

Alternatives to Clerk

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Clerk: common questions

What does the Clerk package do in Toolgrain?

It verifies Clerk OAuth access tokens for Toolgrain MCP servers. The source lists it as a package for Clerk OAuth access-token verification.

Which MCP protocol versions does Toolgrain support?

The source lists MCP 2026-07-28 and initialization-based 2025-06-18. Both share the same tool API over stdio and HTTP.

Can I use Toolgrain with Bun?

Yes, the source lists Bun applications with the version range >=1.4.4 <2 as supported.

How do I install Clerk?

In Claude Code run claude mcp add clerk -- npx -y @toolgrain/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:@toolgrain 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 75 of 100. Grades: maintenance A, licence A, quality C. 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.