# OpenAI Apps SDK

CreateWithAI Hub page: https://createwithaihub.com/apis-sdks/openai-apps-sdk
Latest version of this file: https://createwithaihub.com/apis-sdks/openai-apps-sdk.md

- Type: API / SDK · Category: APIs & SDKs
- Publisher: OpenAI
- Pricing: Free
- Works with: OpenAI Codex, ChatGPT

OpenAI's framework for building apps in ChatGPT: an MCP server with optional interactive UI, now documented under ChatGPT plugins.

The Apps SDK lets developers bring their service into ChatGPT by building an MCP server whose tools ChatGPT can call, with optional interactive UI rendered in the chat. The UI uses the MCP Apps standard (ui:// resources and JSON-RPC over postMessage) with optional ChatGPT extensions through window.openai. OpenAI's developer docs now present this as building plugins, which bundle apps (MCP servers) with skills and can run in ChatGPT and Codex and be submitted to the ChatGPT Directory.

Useful for: Letting ChatGPT users search your product catalogue and see results in an interactive card inside the chat.

## Key features

- MCP server tools that ChatGPT and Codex can call
- Optional in-chat UI via MCP Apps ui:// resources, with ChatGPT extensions through window.openai
- Quickstarts in TypeScript (@modelcontextprotocol/sdk and @modelcontextprotocol/ext-apps), Go and Ruby
- OAuth-based MCP authorization for signed-in users
- Publish to the ChatGPT Directory under the plugin guidelines
- MIT-licensed example apps (Node and Python) in openai/openai-apps-sdk-examples

## Connection

- SDK language: Python, TypeScript / JS, Go, Ruby

## Before you start

- ChatGPT account
- A publicly reachable HTTPS endpoint for the MCP server

## Install steps from the official documentation

TypeScript MCP server:

```
npm install @modelcontextprotocol/sdk @modelcontextprotocol/ext-apps zod
```

## Limitations

- Docs now live under 'Plugins' and refer to window.openai as legacy APIs; naming is in transition
- Testing a custom MCP server in ChatGPT depends on your plan, workspace role and region
- Some tools or interactive views work only on desktop, web or mobile; local MCP apps need ChatGPT Desktop

## Official links

- Website: https://developers.openai.com/plugins
- Source repository: https://github.com/openai/openai-apps-sdk-examples
- Documentation: https://developers.openai.com/plugins/build/app-quickstart
- Source: https://developers.openai.com/plugins/build/app-quickstart (Build an MCP server for ChatGPT and Codex with optional UI; MCP Apps standard, ui:// resources, window.openai extensions; npm install command; testing via ChatGPT Plugins > Add custom MCP server)
- Source: https://developers.openai.com/plugins (Plugins combine skills, MCP servers and optional UI; ChatGPT Directory submission; window.openai listed as legacy reference)
- Source: https://help.openai.com/en/articles/20001256-plugins-in-chatgpt (Plugins bring apps and skills together; availability depends on plan, workspace, role and region; desktop-only cases)
- Source: https://github.com/openai/openai-apps-sdk-examples ('Example apps for the Apps SDK'; MIT license; Pizzaz, Solar system, Authenticated, Kitchen sink lite, Shopping cart examples)
