1. Examples
  2. OpenAI App

OpenAI App

Build a ChatGPT App that connects to your API using MCP.

Deploy to Zuplo
Deploy to Zuplo

Prerequisite: You need a Zuplo account to run this example. Sign up for free

An MCP (Model Context Protocol) server built with Zuplo that provides interactive GitHub profile statistics with rich visual rendering in ChatGPT using the OpenAI Apps SDK.

What This Example Does

When connected to ChatGPT, this MCP server provides a get_github_stats tool that:

  1. Accepts any GitHub username as a parameter
  2. Fetches their profile data (repos, followers, stars, languages)
  3. Returns a summary for the AI to reason about
  4. Renders an interactive visual widget showing:
    • Profile header with avatar and bio
    • Stats cards (repos, stars, followers, forks)
    • Language distribution bar chart
    • Top repositories list
    • Search box to look up any other GitHub user

This demonstrates how the OpenAI Apps SDK enables rich, interactive visualizations that would be impossible with text-only MCP responses.

Interactive Features

The widget includes a search input that lets users explore different GitHub profiles without leaving the widget:

  • Initial data is loaded when you ask about a user
  • Type any username in the search box and click "Search"
  • The widget calls window.openai.callTool() to fetch new data
  • Charts and stats update in real-time

Example prompts:

  • "Show me GitHub stats for Zuplo"

Configuration

Optional: Environment Variables

Set these in your Zuplo project settings:

VariableRequiredDescription
GITHUB_USERNAMENoFallback username if none specified in the request
GITHUB_TOKENNoGitHub Personal Access Token for higher rate limits (60 → 5000 requests/hour)

Setting Environment Variables in Zuplo

  1. Go to your Zuplo project dashboard
  2. Navigate to Settings → Environment Variables
  3. (Optional) Add GITHUB_USERNAME as a default fallback
  4. (Recommended) Add GITHUB_TOKEN with a GitHub Personal Access Token for better rate limits

Deployment

Prerequisites

  • A Zuplo account

Deploy to Zuplo

  1. Set up the project using a template

    Terminalbash
    npx create-zuplo-api@latest --example mcp-server-openai-apps-sdk
  2. Deploy to Zuplo

    Terminalbash
    npx zuplo deploy
  3. Get your MCP endpoint URL Your MCP server will be available at:

    text
    https://<your-project>.zuplo.app/mcp

Connecting to ChatGPT

  1. Open ChatGPT (in Developer Mode) and go to Settings → Connected Apps
  2. Add a new MCP server with your Zuplo endpoint URL
  3. Ask ChatGPT: "Show me GitHub stats for octocat"

Local Development

You can make changes to the code and develop this example locally by running

Terminalbash
npm run dev

This starts the Zuplo dev server, and a local version of the Zuplo Route Designer.

Resources

  • Zuplo MCP Server Docs
  • Zuplo OpenAI Apps SDK Integration
  • OpenAI Apps SDK

Quick Links

View on GitHubDocumentation

Run Locally

Clone and run this example:

npx create-zuplo-api --example mcp-server-openai-apps-sdk

On This Page

Related Examples

Explore more examples in this category

GraphQL MCP Server

Model Context Protocol (MCP)

Make your GraphQL API available to AI assistants like Claude and ChatGPT.

View Example

MCP Custom Tools

Model Context Protocol (MCP)

Create AI tools that combine multiple API calls into a single action.

View Example

MCP Server Prompts

Model Context Protocol (MCP)

Improve AI assistant interactions by adding guided prompts to your MCP Server.

View Example
Starter

Remote MCP Server with OAuth

Model Context Protocol (MCP)

Secure your MCP Server with OAuth authentication using Auth0.

View Example
Check all of our Examples

Scale your APIs with
confidence.

Start for free or book a demo with our team.
Book a demoStart for Free
SOC 2 TYPE 2High Performer Spring 2025Momentum Leader Spring 2025Best Estimated ROI Spring 2025Easiest To Use Spring 2025Fastest Implementation Spring 2025

Get Updates From Zuplo

Zuplo logo
© 2026 zuplo. All rights reserved.
Products & Features
API ManagementAI GatewayMCP ServersMCP GatewayDeveloper PortalRate LimitingOpenAPI NativeGitOpsProgrammableAPI Key ManagementMulti-cloudAPI GovernanceMonetizationSelf-Serve DevX
Developers
DocumentationBlogLearning CenterCommunityChangelogIntegrations
Product
PricingSupportSign InCustomer Stories
Company
About UsMedia KitCareersStatusTrust & Compliance
Privacy PolicySecurity PoliciesTerms of ServiceTrust & Compliance
Docs
Pricing
Sign Up
Login
ContactBook a demoFAQ
Zuplo logo
DocsPricingSign Up
Login