Back to Home
Nami7723 icon

chatgpt-apps-sdk-nextjs-starter

Verified Safe

by Nami7723

Overview

This project demonstrates building ChatGPT applications using the Model Context Protocol (MCP) with Next.js, providing tools and resources renderable natively within ChatGPT.

Installation

Run Command
pnpm start

Environment Variables

  • NODE_ENV
  • VERCEL_ENV
  • VERCEL_PROJECT_PRODUCTION_URL
  • VERCEL_BRANCH_URL
  • VERCEL_URL

Security Notes

The server uses `Access-Control-Allow-Origin: *` in its middleware, which provides broad access for cross-origin requests. While this might be intended for integration with the ChatGPT host, it is generally a security risk that could be tightened for production if specific origins are known. Dynamic client-side JavaScript is injected via `app/layout.tsx` to handle OpenAI SDK integration, but the script is inline and originates from the codebase, not an external untrusted source. No direct `eval` of untrusted user input or hardcoded sensitive secrets found. The base URL is derived from environment variables, which is good practice.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassLow
Avg Tokens500
Stars0
Forks0
Last Update2026-01-19

Tags

ChatGPT AppsNext.jsOpenAI SDKModel Context ProtocolWeb Development