TemplatesGPT Monetization with Stripe
GPT Monetization with Stripe
A Next.js + MCP application for monetizing ChatGPT apps using Stripe
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
/mcpvia 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
- Deploy your app and get the MCP endpoint URL (
https://your-app.vercel.app/mcp) - In ChatGPT, go to Apps & Connectors → Advanced Settings and enable developer mode
- Create a new connector with your MCP server URL (no authentication required)
- Start a new chat and use
/to access your connector
Deploy
Or build manually:

