clerk Ai Agent Nextjs 1 variant

Clerk MCP Server Starter

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

clerk/authvercel/project
MCPAI AgentOAuthAuthNext.js

Default build command

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

This uses the registry’s default variant for clerk/nextjs-mcp. Use the variant-specific commands below to target a particular stack.

Default oauth-server

Clerk OAuth • MCP server • agent tools

Template selector: clerk/nextjs-mcp/oauth-server

Build command

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

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