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.
Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find.
Install from
M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.
Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.
Better Auth Has Two-Factor Authentication Bypass via Premature Session Caching (session.cookieCache)
Next.js is vulnerable to RCE in React flight protocol
@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse
Anthropic's MCP TypeScript SDK has a ReDoS vulnerability
Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default
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)