---
title: "Building ChatGPT Apps with Supabase Edge Functions and mcp-use"
description: "ChatGPT apps built on OpenAI's Apps SDK consist of an MCP server backend and an iframe-rendered web component, and mcp-use lets that MCP server run on Supabase Edge Functions by using Hono instead of the Express-based official SDK."
url: "https://swe.quest/articles/building-chatgpt-apps-with-supabase-edge-functions-and-mcp-use-0df00526c3d8cd4e"
canonical: "https://supabase.com/blog/building-chatgpt-apps-with-supabase"
source: "Supabase"
published: "2025-12-17"
difficulty: "medium"
kind: "How-to"
reading_minutes: 9
tags: ["ai-agents","serverless","typescript","react"]
---

# Building ChatGPT Apps with Supabase Edge Functions and mcp-use

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2025-12-17, 9 min read, How-to. Original: [https://supabase.com/blog/building-chatgpt-apps-with-supabase](https://supabase.com/blog/building-chatgpt-apps-with-supabase)

## Summary

ChatGPT apps built on OpenAI's Apps SDK consist of an MCP server backend and an iframe-rendered web component, and mcp-use lets that MCP server run on Supabase Edge Functions by using Hono instead of the Express-based official SDK. The walkthrough builds a database explorer exposing list-tables, show-table, execute-SQL and Supabase-status tools, each returning React widgets. It distinguishes display-only widgets, which are auto-registered as tools and fetch data client-side, from data-returning widgets, where the server sends separate props to the UI and output to the LLM. It closes with deployment via an mcp-use script and connecting the endpoint in ChatGPT developer mode.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [React](https://swe.quest/tags/react.md) (Web & mobile)

## Prerequisites

- TypeScript ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))
- React components ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- Model Context Protocol basics
- Supabase projects

## Keywords

Supabase Edge Functions, mcp-use, OpenAI Apps SDK, ChatGPT, MCP, Hono, Deno

## Related posts

- [Supabase MCP Server](https://swe.quest/articles/supabase-mcp-server-d66dd26bdd24699a.md): Supabase · 2025-04-04 · Medium · 6 min read · AI agents, PostgreSQL, Developer tools, LLMs
  Supabase ships an official MCP server with 20+ tools that let AI clients like Cursor and Claude create projects, manage tables via migrations, run SQL, create database branches, fetch config and logs, and generate TypeScript types.
- [Give your Supabase app its own MCP server](https://swe.quest/articles/give-your-supabase-app-its-own-mcp-server-db89f29412fb7983.md): Supabase · 2026-10-22 · Medium · 5 min read · AI agents, Identity & auth, PostgreSQL, Serverless, TypeScript
  Supabase apps can expose their own MCP server so customers use the app from ChatGPT, Claude or other MCP clients, signed in with their existing account.
- [Building ChatGPT Plugins with Supabase Edge Runtime](https://swe.quest/articles/building-chatgpt-plugins-with-supabase-edge-runtime-b0cdffa93584d3d5.md): Supabase · 2023-05-15 · Medium · 6 min read · AI agents, Serverless, TypeScript, API design
  A TypeScript template for ChatGPT Plugins runs on Supabase Edge Runtime (Deno).
- [Mozilla Llamafile in Supabase Edge Functions](https://swe.quest/articles/mozilla-llamafile-in-supabase-edge-functions-f67e9f7e5ebbcb62.md): Supabase · 2024-08-21 · Medium · 4 min read · Serverless, Inference & serving, LLMs, TypeScript
  Supabase Edge Functions can now use Mozilla Llamafile, alongside Ollama, as the inference server via an OpenAI-API-compatible mode.
- [AI Inference now available in Supabase Edge Functions](https://swe.quest/articles/ai-inference-now-available-in-supabase-edge-functions-9d09d3bcda534938.md): Supabase · 2024-04-16 · Medium · 5 min read · Serverless, Inference & serving, Vector search, LLMs
  Supabase Edge Functions gain a built-in Supabase.ai.Session API for running AI inference in a few lines of code, starting with gte-small embeddings for storage in pgvector and experimental, invite-only Llama and Mistral LLMs with streaming responses.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
