OpenAI Apps MCP

OpenAI Apps MCP is a skill for Claude Code from coco-research/coco. It costs 72 tokens per session (4,724 once invoked), scanned A, original, Apache-2.0.

A development guide for building ChatGPT apps with MCP servers, which let an AI assistant call custom tools and display interactive web interfaces.

In plain words
What is it for?
Use it to build ChatGPT extensions, create MCP servers on Cloudflare Workers, and troubleshoot widget, browser, and deployment issues.
Why use it?
It helps resolve the setup and integration problems that can prevent those apps from working correctly.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to build ChatGPT extensions, create MCP servers on Cloudflare Workers, and troubleshoot widget, browser, and deployment issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coco-research/coco/openai-apps-mcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add coco-research/coco --skill openai-apps-mcp
Clone the repo
git clone --depth 1 https://github.com/coco-research/coco

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for OpenAI Apps MCP

README.md
[![agentmods](https://agentmods.dev/badge/skills/coco-research/coco/openai-apps-mcp/github.svg)](https://agentmods.dev/skills/coco-research/coco/openai-apps-mcp)
Your own site
<a href="https://agentmods.dev/skills/coco-research/coco/openai-apps-mcp"><img src="https://agentmods.dev/badge/skills/coco-research/coco/openai-apps-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for OpenAI Apps MCP

Your own site · 80×15
<a href="https://agentmods.dev/skills/coco-research/coco/openai-apps-mcp"><img src="https://agentmods.dev/badge/skills/coco-research/coco/openai-apps-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,724 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.04724
Opus 5.5 $0.00029 $0.01890
Sonnet 5.5 $0.00014 $0.00945
Haiku 4.5 $0.00007 $0.00472

Measured 2mo ago against content hash 5d83efa87c64, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

OpenAI Apps MCP scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/example-script.sh, templates/basic/vite.config.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

app.get('/widgets/*', async (c) => c.env.ASSETS.fetch(c.req.raw));
skills/openai-apps-mcp/SKILL.md · 511 lines

How it starts

The opening of the file, as written. The whole thing — 511 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Building OpenAI Apps with Stateless MCP Servers

Status: Production Ready Last Updated: 2026-01-21 Dependencies: cloudflare-worker-base, hono-routing (optional) Latest Versions: @modelcontextprotocol/[email protected], [email protected], [email protected], [email protected]


Overview

Build ChatGPT Apps using MCP (Model Context Protocol) servers on Cloudflare Workers. Extends ChatGPT with custom tools and interactive widgets (HTML/JS UI rendered in iframe).

Architecture: ChatGPT → MCP endpoint (JSON-RPC 2.0) → Tool handlers → Widget resources (HTML)

Status: Apps available to Business/Enterprise/Edu (GA Nov 13, 2025). MCP Apps Extension (SEP-1865) formalized Nov 21, 2025.


Quick Start

1. Scaffold & Install

npm create cloudflare@latest my-openai-app -- --type hello-world --ts --git --deploy false
cd my-openai-app
npm install @modelcontextprotocol/[email protected] [email protected] [email protected]
npm install -D @cloudflare/[email protected] [email protected]

2. Configure wrangler.jsonc

{
  "name": "my-openai-app",
  "main": "dist/index.js",
  "compatibility_flags": ["nodejs_compat"],  // Required for MCP SDK
  "assets": {
    "directory": "dist/client",
    "binding": "ASSETS"  // Must match TypeScript
  }
}

3. Create MCP Server (src/index.ts)

import { Hono } from 'hono';
import { cors } from 'hono/cors';
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
import { ListToolsRequestSchema, CallToolRequestSchema } from '@modelcontextprotocol/sdk/types.js';

const app = new Hono<{ Bindings: { ASSETS: Fetcher } }>();

// CRITICAL: Must allow chatgpt.com
app.use('/mcp/*', cors({ origin: 'https://chatgpt.com' }));

const mcpServer = new Server(
  { name: 'my-app', version: '1.0.0' },
  { capabilities: { tools: {}, resources: {} } }
);

// Tool registration
mcpServer.setRequestHandler(ListToolsRequestSchema, async () => ({
  tools: [{
    name: 'hello',
    description: 'Use this when user wants to see a greeting',
    inputSchema: {
      type: 'object',
      properties: { name: { type: 'string' } },
      required: ['name']
    },
    annotations: {
      openai: { outputTemplate: 'ui://widget/hello.html' }  // Widget URI
    }
  }]
}));

// Tool execution
mcpServer.setRequestHandler(CallToolRequestSchema, async (request) => {
  if (request.params.name === 'hello') {
    const { name } = request.params.arguments as { name: string };
    return {
      content: [{ type: 'text', text: `Hello, ${name}!` }],
      _meta: { initialData: { name } }  // Passed to widget
    };
  }
  throw new Error(`Unknown tool: ${request.params.name}`);
});

app.post('/mcp', async (c) => {
  const body = await c.req.json();
  const response = await mcpServer.handleRequest(body);
  return c.json(response);
});

app.get('/widgets/*', async (c) => c.env.ASSETS.fetch(c.req.raw));

export default app;

Read the full file on GitHub · 511 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 511 lines · 72 tokens per session scan A 5d83efa87c64

Subscribe to this mod's changes

OpenAI Apps MCP is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 72 tokens to every session and 4,724 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

OpenAI Apps MCP compared with skills from other repositories

OpenAI Apps MCP next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
OpenAI Apps MCPcoco-research/cocoSkill323yesterdayApache-2.0A72Claude Code
cloudflare-platform-skillmarcusquinn/aidevopsSkill476todayMITA93Claude Code
heygenmarcusquinn/aidevopsSkill476todayMITA14Claude Code
designing-data-intensive-applicationsciembor/agent-rules-booksSkill3.4k2mo agoMITA34Claude Code, Codex
patterns-of-enterprise-application-architectureciembor/agent-rules-booksSkill3.4k2mo agoMITA38Claude Code, Codex
clean-architectureciembor/agent-rules-booksSkill3.4k2mo agoMITA27Claude Code, Codex
domain-driven-design-distilledciembor/agent-rules-booksSkill3.4k2mo agoMITA33Claude Code, Codex