TemplatesGPT Monetization with Stripe

GPT Monetization with Stripe

A Next.js + MCP application for monetizing ChatGPT apps using Stripe

GPT Monetization with Stripe preview

Sell products directly from ChatGPT through Stripe's external checkout integration.

Features

  • Stripe product listing and checkout integration
  • React widgets for product display in ChatGPT
  • Success and cancel pages for checkout flow
  • MCP endpoint at /mcp via Next.js adapter
  • Custom hooks for tool invocation and external links
  • Ready-to-deploy on Vercel

Getting Started

Prerequisites

You need a Stripe account with:

  • Sandbox mode enabled
  • Some one-off products created
  • Your secret key (sk_test_...)

1. Create the project

2. Environment setup

Add your Stripe secret key:

3. Install & run

This starts both the xmcp dev server and Next.js concurrently.

Project Structure

Testing with ChatGPT

  1. Deploy your app and get the MCP endpoint URL (https://your-app.vercel.app/mcp)
  2. In ChatGPT, go to Apps & ConnectorsAdvanced Settings and enable developer mode
  3. Create a new connector with your MCP server URL (no authentication required)
  4. Start a new chat and use / to access your connector

Deploy

Deploy with Vercel

Or build manually:

Learn More

Other templates

One framework to rule them all