apps-sdk-template
Verified Safeby axite-ai
Overview
Production-ready starter template for building ChatGPT MCP (Model Context Protocol) apps with Next.js, OAuth 2.1, and optional Stripe subscriptions.
Installation
pnpm devEnvironment Variables
- DATABASE_URL
- REDIS_URL
- BETTER_AUTH_SECRET
- BETTER_AUTH_URL
- ENCRYPTION_KEY
- MCP_PORT
- WEB_URL
- MCP_SERVER_URL
Security Notes
The template demonstrates robust security practices for a starter: it uses Better Auth OAuth 2.1 for authentication, explicit encryption (`crypto` module) for sensitive data, environment variable validation (`zod`, `dotenv`) to prevent hardcoded secrets, and secure session management with `jose` for JWTs. It also includes CORS and CSP middleware configurations to address common web security concerns. Secrets like `BETTER_AUTH_SECRET` and `ENCRYPTION_KEY` are explicitly required to be generated by the user. No `eval` or other inherently dangerous patterns were identified without clear justification.
Similar Servers
mcp-chat
A reference open-source AI chat application leveraging Pipedream's Model Context Protocol (MCP) to integrate with thousands of APIs and tools, supporting conversational AI, automatic tool discovery, and document creation/editing with real-time feedback.
mcp-tools
This library provides utilities for developers to build MCP (Model Context Protocol) clients and servers, facilitating secure authentication and data access for AI applications, particularly with Clerk integration.
SageMCP
A scalable platform for hosting MCP servers with multi-tenant support, OAuth integration, and connector plugins for various services, deployed on Kubernetes.
remote-mcp-oauth-github
Provides a Cloudflare Workers-based Model Context Protocol (MCP) server with GitHub OAuth for secure custom integrations with Claude.ai.