clerk Ai Agent Nextjs Default variant

Clerk MCP Server Starter

OAuth-secured Model Context Protocol server — agents authenticate with Clerk and call your tools

Variant: clerk/nextjs-mcp/oauth-server

clerk/authvercel/project

Build command

stripe projects build my-app --template clerk/nextjs-mcp/oauth-server

This targets the specific oauth-server variant directly.

Source

https://github.com/clerk/stripe-projects-templates

Pinned ref: ce57c21c40828630d21ef151b2fd5acc9c3c7f09

Setup

Install command

pnpm install

Next steps

Run locally

pnpm dev

Build product with Codex

codex "Help me turn this into a real MCP server. Follow prompts/starter-to-product.md."

Build product with Claude

claude "Help me turn this into a real MCP server. Follow prompts/starter-to-product.md."

Deploy

pnpm run deploy

Other variants

Browse the other stacks published under clerk/nextjs-mcp.

View all variants
Clerk OAuth • MCP server • agent tools • Default