Best for
- Developers who want to rapidly bootstrap a SaaS product with a built-in AI platform and MCP functionality
- Teams that need comprehensive authentication and authorization for AI agents (OAuth, API keys)
This template is feature-rich but complex, suitable for experienced developers. Its MCP server integration is well-designed, with tools auto-derived from OpenAPI and support for multiple client connection methods.
This is an open-source SaaS template for running a Next.js app on Cloudflare Workers. It uses Vinext (Cloudflare's experimental Vite-based implementation of Next.js) as the build and dev toolchain, supporting App Router, React Server Components, and more. The template integrates user authentication (Lucia Auth), database (Drizzle + D1), email service, team subscription billing (Stripe), content management system, admin dashboard, and an AI agent platform including a public REST API, OAuth 2.1, and a remote MCP server. The MCP server derives its tools from an OpenAPI document and supports authentication via OAuth or API keys.
This template requires self-deployment. After deployment, the MCP server endpoint is at /mcp. To connect, point an MCP client to that URL. For CLI and editor clients, you can use an Authorization: Bearer header (with an API key) or the OAuth flow.