ChatGPT Interactive Components Examples
Used as an example product in product search and checkout demonstrations.
Deployment platform for hosting the MCP servers with configuration examples provided.
Integrates with ChatGPT to deliver interactive branded UI components and widgets through the Model Context Protocol.
Provides interactive widgets for Target shopping experience including authentication flows, product search with recommendations, shopping cart management, checkout processing, and Circle 360 membership signups.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ChatGPT Interactive Components ExamplesSearch for fitness trackers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ChatGPT MCP Server Examples
Build interactive, branded components for ChatGPT using the Model Context Protocol (MCP)
This repository contains complete, production-ready examples of MCP servers that demonstrate how to create rich, interactive experiences within ChatGPT. Each example showcases different UI patterns, state management techniques, and integration strategies.
šÆ What You'll Learn
How to build MCP servers that serve interactive widgets to ChatGPT
State management across user sessions
Dark/light mode support
Multi-step UI flows with transitions
API integration and data presentation
Deployment strategies
Related MCP server: ChatGPT Apps SDK Next.js Starter
š Live MCP Server URLs
You can connect to these live servers directly in ChatGPT:
MCP Server | URL | Description |
Authentication |
| Session-based authentication with 3-screen flow |
Product Search |
| Interactive product carousel with Agentforce recommendations |
Checkout |
| Shopping cart and checkout flow |
Membership |
| Circle 360 membership signup with tier selection |
How to Connect
Open ChatGPT ā Settings ā Connectors
Click "Add Connector"
Paste one of the URLs above
Start chatting! Try: "Log me into my Target account" or "Search for fitness trackers"
š What's Included
4 Complete MCP Server Examples
1. Authentication Server (/mcp)
3-screen authentication flow (login ā verification ā success)
Session management with unique session IDs
State persistence across tool calls
Demo credentials for testing
Example prompt: "I need to sign in to Target"
2. Product Search Server (/mcp2)
Product carousel widget with images, prices, ratings
Agentforce personalized recommendations
Integration with Unwrangle API
Detail view for individual products
Dark/light mode support
Example prompt: "Search Target for fitness trackers"
3. Checkout Server (/mcp3)
Add-to-cart confirmation widget
Complete checkout flow with pre-filled payment/shipping
Order summary and success animations
Single-item cart enforcement
Example prompt: "Add the Fitbit to my cart and checkout"
4. Membership Server (/mcp4)
Circle 360 membership signup
3-tier selection UI
Dynamic order summary
Processing screen with success confetti
Demo reset endpoint for testing
Example prompt: "Sign me up for Circle 360"
šļø Repository Structure
ChatGPT Components/
āāā server.js # Main Node.js MCP server (all 4 servers)
āāā widgets/ # Interactive HTML components
ā āāā target-auth.html # Authentication widget
ā āāā product-carousel.html # Product search widget
ā āāā add-to-cart.html # Add to cart widget
ā āāā checkout.html # Checkout widget
ā āāā circle-signup.html # Membership signup widget
āāā public/ # Static pages
ā āāā auth.html # External auth page (Custom GPT Actions)
ā āāā privacy.html # Privacy policy
āāā docs/ # Documentation
ā āāā BUILDING_MCP_SERVERS.md # Tutorial: Build your own
ā āāā ARCHITECTURE.md # System design overview
ā āāā examples/ # Detailed example docs
ā āāā authentication.md
ā āāā product-search.md
ā āāā checkout.md
ā āāā membership.md
āāā package.json # Dependencies
āāā Procfile # Heroku deployment config
āāā README.md # You are hereš Getting Started
Prerequisites
Node.js 20.x or higher
npm 10.x or higher
(Optional) Heroku CLI for deployment
Local Development
Clone the repository
git clone <your-repo-url>
cd ChatGPT-ComponentsInstall dependencies
npm installSet environment variables
export UNWRANGLE_API_KEY=your_api_key_here # For product searchStart the server
npm startTest in ChatGPT
Add connector:
http://localhost:8000/mcp(or/mcp2,/mcp3,/mcp4)Start chatting!
Deploy to Heroku
heroku create your-app-name
heroku config:set UNWRANGLE_API_KEY=your_api_key_here
git push heroku mainYour MCP servers will be available at:
https://your-app-name.herokuapp.com/mcphttps://your-app-name.herokuapp.com/mcp2https://your-app-name.herokuapp.com/mcp3https://your-app-name.herokuapp.com/mcp4
š Learn More
Building MCP Servers Tutorial - Step-by-step guide to creating your own MCP server
Architecture Overview - How the system works under the hood
Example Documentation - Deep dives into each example server
šØ Key Features Demonstrated
UI/UX Patterns
ā Multi-screen flows with smooth transitions
ā Loading states and progress indicators
ā Success animations (checkmarks, confetti)
ā Dark/light mode support (respects ChatGPT theme)
ā Responsive design
ā Form validation and error handling
Technical Patterns
ā Session management with unique IDs
ā State persistence across tool calls
ā SSE (Server-Sent Events) for real-time communication
ā Multiple MCP servers on one Node.js app
ā External API integration
ā Widget-to-server communication
ā
window.openaiAPI usage
Business Logic
ā Authentication flows
ā Product recommendations
ā Shopping cart management
ā Payment/checkout flows
ā Membership signups
š§ Customization
Each widget is self-contained in widgets/ and can be customized:
Styling: Modify CSS within each HTML file
Branding: Change colors, logos, and text
Flow: Add/remove steps in multi-screen flows
Behavior: Edit JavaScript event handlers
Server logic is in server.js:
Tools: Add new tool definitions in each
createMcpXServerfunctionSessions: Customize state management in
authSessions,cartStorage, etc.APIs: Integrate your own backend services
š¤ Contributing
This repository is designed to be:
Educational: Learn by example
Modular: Copy what you need
Production-ready: Use as-is or customize
Feel free to fork, modify, and build upon these examples!
š License
MIT License - feel free to use this code in your own projects!
š Support
Issues: Open a GitHub issue
Questions: Check the documentation
Examples: See detailed guides in docs/examples/
š What's Next?
After exploring these examples, try:
Building your own MCP server from scratch
Combining multiple tools in creative ways
Integrating with your own APIs and services
Deploying to production
Check out BUILDING_MCP_SERVERS.md to get started!
Built with ā¤ļø using the Model Context Protocol
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceA Model Context Protocol server that enables AI assistants to interact with a complete e-commerce application, providing authentication, product browsing, and shopping cart management through standardized MCP tools.Last updated
- Flicense-qualityDmaintenanceA minimal MCP server demonstrating how to build ChatGPT-compatible applications using Next.js with widget rendering capabilities. Provides a starter template for integrating Next.js applications with the ChatGPT Apps SDK through the Model Context Protocol.Last updated
- Flicense-qualityDmaintenanceAn MCP server template for building ChatGPT-compatible React widgets using the OpenAI Apps SDK. It automatically registers UI components as MCP tools and resources, featuring built-in support for theme detection and ecommerce-focused interactive elements.Last updated
- Flicense-qualityCmaintenanceAn MCP server template integrated with the OpenAI Apps SDK for building ChatGPT-compatible widgets with automatic tool registration. It provides a suite of interactive UI components and ecommerce examples for creating type-safe, theme-aware widgets.Last updated
Related MCP Connectors
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/skyrmionz/chatgpt-mcp-server-interactive-components'
If you have feedback or need assistance with the MCP directory API, please join our Discord server