# Action2MCP: OpenAI Custom GPT to Remote MCP & SKILL.md Compiler (`kuroxreal/action2mcp`) Actor

Convert retiring OpenAI Custom GPT OpenAPI 3.0/3.1 JSON & YAML schemas into verified MCP tools/list schemas (preserving x-openai-isConsequential), SKILL.md, and a deployable Cloudflare Worker ZIP bundle.

- **URL**: https://apify.com/kuroxreal/action2mcp.md
- **Developed by:** [AK | Kurox](https://apify.com/kuroxreal) (community)
- **Categories:** AI, MCP servers, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 openapi to remote mcp bundle compilations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Action2MCP

**Automated OpenAI Custom GPT Action (`OpenAPI 3.0/3.1` JSON & YAML) to Cloudflare Workers Remote MCP & `SKILL.md` Compiler.**

OpenAI retires Custom GPTs on **December 11, 2026** (FedRAMP/approved Enterprise extended to Feb 11, 2027). OpenAI's Plugin migrator moves instructions and reference files, **but drops 100% of Custom Actions**. Action2MCP deterministically compiles those OpenAPI schemas into a working Remote MCP server in seconds.

### Features

- **Free Live Compiler (`POST /api/preview` & Web UI):** Parses OpenAPI 3.0/3.1 JSON or YAML, resolves local `$ref` pointers, converts path/query/header/`requestBody` schemas into MCP `tools/list` JSON Schema, maps `x-openai-isConsequential` to `destructiveHint` / `readOnlyHint`, flags 100k-char payload risks, and generates portable `SKILL.md` frontmatter.
- **$5 Deployable Cloudflare Worker ZIP Bundle:** Generates standalone `worker.js` (JSON-RPC 2.0 `initialize`, `ping`, `tools/list`, `tools/call` + Bearer/API-key auth forwarding), `wrangler.toml`, `package.json`, `.github/workflows/deploy.yml`, `SKILL.md`, and `SETUP_CHATGPT_PLUGIN.md`.
- **$15 Hosted Remote MCP Bridge (`/mcp/h/:token`):** Multi-tenant hosted Remote MCP endpoint signed via HMAC-SHA256 + deployable ZIP bundle.
- **Remote MCP Server (`POST /mcp`):** Exposes `convert_openapi_to_mcp` cleanly (`server.json` included).
- **Custom GPT Sniper (`scripts/gpt_action_sniper.py`):** Queries GitHub Code Search for public Custom GPT OpenAPI schemas containing `x-openai-isConsequential` or `chatgpt.com/g/g-` + `openapi`, test-compiles them via `/api/preview`, and drafts proof-first outreach emails.

### Local Development & Tests

```bash
node --test test_worker.mjs
python scripts/test_sniper.py
```

### Required GitHub Actions / Cloudflare Secrets

- `CF_API_TOKEN` & `CF_ACCOUNT_ID`
- `STRIPE_SECRET_KEY`
- `KUROX_SIGNING_SECRET`
- `SMTP_USER` & `SMTP_PASS` (optional, for automated sniper email delivery)

# Actor input Schema

## `schema_url` (type: `string`):

Public HTTP/HTTPS URL to an OpenAPI 3.0 or 3.1 JSON/YAML schema (used when inline schema is empty)

## `schema` (type: `string`):

Optional raw OpenAPI 3.0/3.1 JSON or YAML string (overrides schema_url when provided)

## `instructions` (type: `string`):

Optional Custom GPT system instructions embedded into the generated SKILL.md

## `auth_type` (type: `string`):

Authentication scheme for the generated Cloudflare MCP server

## `auth_header` (type: `string`):

Optional header name when auth_type is api_key_header (default X-API-Key)

## `include_zip` (type: `boolean`):

Save a ready-to-deploy bundle.zip into the run Key-Value Store

## Actor input object example

```json
{
  "schema_url": "https://raw.githubusercontent.com/julien040/anyquery/main/other/llm/openapi.yaml",
  "auth_type": "auto",
  "include_zip": true
}
```

# Actor output Schema

## `dataset` (type: `string`):

Structured compilation output including mcp_tools, skill_md, files, and bundle_zip_url

## `bundle_zip` (type: `string`):

Downloadable Cloudflare Remote MCP Worker + SKILL.md ZIP archive

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("kuroxreal/action2mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("kuroxreal/action2mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call kuroxreal/action2mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kuroxreal/action2mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/tlY5SqvXVt0pnBH91/builds/LAU1Qd7Oe3VGRO0Dh/openapi.json
