A Next.js-based MCP server template that implements OAuth 2.1 authentication with support for both SSE and Streamable HTTP transports. Provides a reference implementation for building authenticated MCP servers that work with Claude, Cursor, VSCode, and other MCP clients.
Install from
M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.
process.env. You'll be asked to provide them before it can run.BETTER_AUTH_SECRET— "any random string"DATABASE_URL— "postgresql://user:pass@server/database"DISCORD_CLIENT_ID— your_discord_client_idDISCORD_CLIENT_SECRET— your_discord_client_secretGITHUB_CLIENT_ID— your_github_client_idGITHUB_CLIENT_SECRET— your_github_client_secretGOOGLE_CLIENT_ID— "a Google OAuth client ID"GOOGLE_CLIENT_SECRET— "a Google OAuth client secret"NEXT_PUBLIC_BASE_URLREDIS_URL— "redis://user:pass@host:6379"[](https://m8ven.ai/mcp/dteam-top-mcp-oauth-kiem21)