Clerk MCP Server Template
@dyeoman2
About Clerk MCP Server Template
A production-ready template for building Model Context Protocol (MCP) servers with Clerk authentication on Cloudflare Workers
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Clerk MCP Server Template?
A production-ready template for building Model Context Protocol (MCP) servers that integrate Clerk authentication with Cloudflare Workers. It provides a complete OAuth 2.0 flow, Durable Objects for session state, and KV storage for temporary OAuth sessions. Designed for developers who want to connect their existing Clerk-authenticated applications to Claude AI through secure MCP tools.
How to use Clerk MCP Server Template?
Clone the repository, run npm install, configure environment variables (CLERK_SECRET_KEY, CLERK_PUBLISHABLE_KEY, APP_URL) in a .dev.vars file, create a KV namespace with Wrangler, update the namespace ID in wrangler.jsonc, and start the development server with npm run dev. Requires Node.js 22+, a Clerk account, a Cloudflare account with Workers enabled, and an existing application using Clerk for authentication.
Key features of Clerk MCP Server Template
- Complete OAuth 2.0 flow integrated with Clerk
- Serverless deployment on Cloudflare Workers
- Persistent session state via Durable Objects
- Temporary OAuth session storage in KV
- HMAC-signed state parameters for security
- Automatic token refresh and session cleanup
- Full TypeScript type safety and example tools
Use cases of Clerk MCP Server Template
- Give Claude AI authenticated access to user data in SaaS applications
- Enable Claude to query customer support systems with proper user context
- Provide Claude with authenticated access to your APIs for data analysis
- Create secure, user-specific workflow automations
FAQ from Clerk MCP Server Template
What does Clerk MCP Server Template do vs alternatives?
It bridges your existing Clerk-authenticated application with Claude AI through MCP tools. Unlike generic MCP servers, it provides a ready-made OAuth flow and session management tailored for Clerk, reducing integration effort.
What are the dependencies/runtime requirements?
You need Node.js 22+, a Clerk account with API keys, a Cloudflare account with Workers enabled, and an existing application that uses Clerk for authentication.
Where does data live?
OAuth session data is stored temporarily in Cloudflare KV. MCP session state is managed in Durable Objects. All application data remains in your existing Clerk-powered application.
What transports/auth are supported?
The server uses SSE (Server-Sent Events) transport and OAuth 2.0 authentication with Clerk. JWT tokens are used for API requests, and state parameters are protected with HMAC signatures.
Are there known limits?
The README does not list hard limits, but the template relies on Cloudflare Workers and Durable Objects β scale and performance depend on those platforms. OAuth sessions in KV expire automatically.
More Developer Tools MCP servers
test
harlancA simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).π¦
mcp-excalidraw
yctimlinMCP server and Claude Code skill for Excalidraw β programmatic canvas toolkit to create, edit, and export diagrams via AI agents with real-time canvas sync.

Sentry
modelcontextprotocolModel Context Protocol Servers
JetBrains MCP Proxy Server
JetBrainsA model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android Studio
Stakpak Agent CLI
stakpakShip your code, on autopilot. An open source agent that lives on your machines 24/7 and keeps your apps running. π¦
Comments