# GPT Action & OpenAPI to MCP Server Generator (`brasspage/gpt-action-to-mcp`) Actor

Turn a custom GPT action or any OpenAPI 3 schema into a remote MCP server: a ready-to-deploy Cloudflare Worker zip with one MCP tool per operation, API key or OAuth sign-in, a rate limit and a test. Lists every tool in the dataset. $0.10 per server.

- **URL**: https://apify.com/brasspage/gpt-action-to-mcp.md
- **Developed by:** [Brasspage](https://apify.com/brasspage) (community)
- **Categories:** MCP servers, Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $100.00 / 1,000 mcp server generateds

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

### GPT Action & OpenAPI to MCP Server Generator

Paste the OpenAPI schema of a custom GPT action, or any OpenAPI 3 schema. The Actor turns it into a remote MCP server: a ready-to-deploy Cloudflare Worker project in a zip, with one MCP tool per API operation.

- **One tool per operation:** each `get`, `post`, `put`, `patch` and `delete` becomes a tool with a strict input schema made from its parameters and JSON body.
- **Sign-in like your GPT action:** none, an API key kept as an encrypted Worker secret, or OAuth, where each person signs in with the API's own OAuth app.
- **Ready to deploy:** `src`, `tools.json`, `wrangler.toml`, `package.json`, a test, and a README with the deploy steps. Runs on a free Cloudflare account.
- **A check of your schema:** the dataset lists every operation, as a tool or with the reason it was left out.

Custom GPTs are set to retire on Dec 11, 2026 (the date can change), and custom actions do not move with them. An MCP server is how an action keeps working in apps that take MCP.

**$0.10 per server.** No API key needed to run it. The schema is read as data only: no code in it runs, and no API in it is called.

### How to use

1. Open the Actor in the Apify Console and go to the **Input** tab.
2. Paste your schema into **OpenAPI 3 schema or its URL**, or give one https URL. JSON or YAML, OpenAPI 3.0 or 3.1.
3. Pick the **Sign-in** your GPT action used. For OAuth, copy the authorization URL and token URL from the action's settings.
4. Click **Start**. Download `mcp-server.zip` from the **Output** tab and follow its README.

The prefilled input is a three-operation exchange rate API that needs no key. Run it as is to see the output.

### Input example

```json
{
    "schema": "https://api.example-api.com/openapi.json",
    "authType": "oauth",
    "oauthAuthorizationUrl": "https://auth.example-api.com/oauth/authorize",
    "oauthTokenUrl": "https://auth.example-api.com/oauth/token",
    "oauthScopes": "read",
    "serverName": "example-api-mcp",
    "rateLimitPerMinute": 60
}
```

Never put API keys or client secrets in the input. You set them as Worker secrets on your own Cloudflare account, after you deploy.

### Output example

One dataset row per operation:

```json
{
    "status": "mapped",
    "tool": "get_historical_rates",
    "method": "GET",
    "path": "/{date}",
    "params": [
        { "name": "date", "in": "path", "required": true },
        { "name": "base", "in": "query", "required": false },
        { "name": "symbols", "in": "query", "required": false }
    ],
    "body": false,
    "description": "Exchange rates on one past date (working days, back to 1999-01-04)."
}
```

An operation that cannot become a tool has `"status": "skipped"` and a `reason`, like `cookie parameter "session" is not mapped`. The `mcp-server.zip` record holds the project, and `OUTPUT` holds a summary with the tool names and the zip's download URL.

The zip, for the prefilled schema:

```
exchange-rates/
  README.md          deploy steps for your sign-in type
  package.json       MCP TypeScript SDK, JSON Schema checks, wrangler
  wrangler.toml      Worker name, workers.dev URL, rate limit
  tools.json         the tools: names, descriptions, input schemas
  tools.test.js      checks every tool with a fake API, no network
  src/index.js       the Worker
  src/mcp.js         stateless Streamable HTTP, a fresh server for each request
  src/tools.js       argument checks and the API call
```

### What the generated server does

- Serves MCP over stateless Streamable HTTP at `/mcp`, with plain JSON answers. No sessions, nothing shared between callers.
- Checks arguments against each tool's input schema before any API call. Unknown arguments are refused.
- Takes the API host and base path only from `tools.json`. A call that would leave them is refused.
- Rate limits each IP address (60 a minute by default). Does not follow API redirects, times out after 10 seconds, and refuses answers over 100,000 characters.
- API key: the key stays a Worker secret and is never shown to the model. An optional `MCP_TOKEN` secret locks the server to clients that send it.
- OAuth: the Worker is the OAuth 2.1 server for MCP clients (dynamic client registration, PKCE), shows a consent page for each client, then signs each person in to the API. API tokens are stored encrypted, and renewed when the API gives a refresh token.

### Pricing

Pay per event: **$0.10 for each MCP server generated**, plus a tiny start fee ($0.00005). You are charged only when the zip is saved. A schema with no operation that can become a tool fails the run and costs only the start fee.

The prefilled input makes one server, so a one-click run costs $0.10 plus the start fee.

### FAQ

**Do I need to know how to code?** No, but you need a terminal for about 10 minutes: `npm install`, `npx wrangler login`, `npx wrangler deploy`. The zip's README lists each command.

**Where does the server run?** On your own Cloudflare account, on the free Workers plan for most uses. Nothing runs on Apify after the Actor finishes.

**Does the Actor call my API?** No. It reads the schema only. Your API is first called by the server you deploy.

**My schema has `$ref`s.** `$ref`s inside the schema are followed. `$ref`s to other files or URLs are not, and a schema that refers to itself (a tree, for example) cannot become a flat tool schema. Those operations are listed as skipped, with the reason.

**Can I change the tools later?** Yes. Edit names and descriptions in `tools.json`, then run the test and deploy again. No code change is needed.

### Limits

- OpenAPI 3.0 and 3.1 only (convert Swagger 2.0 first). Up to 2 MB of schema and 100 tools per server.
- Request bodies must be JSON. Cookie parameters, file uploads and streaming answers are not mapped.
- API answers must be JSON (or empty).
- Operations with their own `servers` URL are skipped. Use **Server URL** to pick a different base URL for the whole API.

### Issues and support

Found a bug or need a feature? Open an issue in this Actor's **Issues** tab. We check it every day and reply there.

# Changelog

This Actor's version history is a separate document: https://apify.com/brasspage/gpt-action-to-mcp/changelog.md

# Actor input Schema

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

Paste the schema of your custom GPT action (OpenAPI 3.0 or 3.1, JSON or YAML, up to 2 MB), or one https URL where it lives. It is read as data only: no code in it runs and no API in it is called. $refs must point inside the schema. Never paste API keys here.

## `authType` (type: `string`):

How the server signs in to the API, like the Authentication setting of your GPT action. none: no sign-in. apiKey: one key you keep as a Worker secret. oauth: each person signs in with the API's own OAuth app.

## `apiKeyIn` (type: `string`):

Optional, for apiKey. bearer: Authorization: Bearer <key>. basic: Authorization: Basic <key>. header or query: a header or query parameter named below. Empty: taken from the schema's securitySchemes, else bearer.

## `apiKeyName` (type: `string`):

Optional, for a custom header or query parameter, for example X-API-Key. Empty: taken from the schema, else X-API-Key or api_key.

## `oauthAuthorizationUrl` (type: `string`):

For oauth: the Authorization URL from your GPT action settings (https). Empty: taken from the schema's oauth2 securityScheme.

## `oauthTokenUrl` (type: `string`):

For oauth: the Token URL from your GPT action settings (https). Empty: taken from the schema.

## `oauthScopes` (type: `string`):

Optional, for oauth: the scopes to ask for, separated by spaces. Empty: every scope the schema lists.

## `oauthTokenAuth` (type: `string`):

For oauth, like the Token Exchange Method setting of your GPT action. body: client ID and secret in the POST body (the default). basic: in a Basic authorization header.

## `serverUrl` (type: `string`):

Optional. The API's https base URL, if the schema has none or you want another one. Empty: the first "servers" URL in the schema.

## `serverName` (type: `string`):

Optional. The Cloudflare Worker name, also part of its URL. Empty: made from the schema's title. Lowercase letters, digits and dashes are kept.

## `rateLimitPerMinute` (type: `integer`):

Requests a minute the Worker takes from one IP address, so nobody can use it to flood the API.

## Actor input object example

```json
{
  "schema": "{\n  \"openapi\": \"3.1.0\",\n  \"info\": {\n    \"title\": \"Exchange rates\",\n    \"description\": \"Daily reference exchange rates from Frankfurter (frankfurter.dev). No API key.\",\n    \"version\": \"1.0.0\"\n  },\n  \"servers\": [{ \"url\": \"https://api.frankfurter.dev/v1\" }],\n  \"paths\": {\n    \"/currencies\": {\n      \"get\": {\n        \"operationId\": \"listCurrencies\",\n        \"summary\": \"List the currency codes this API supports, with their names.\",\n        \"responses\": { \"200\": { \"description\": \"Currency codes and names.\" } }\n      }\n    },\n    \"/latest\": {\n      \"get\": {\n        \"operationId\": \"getLatestRates\",\n        \"summary\": \"Latest daily exchange rates for one base currency.\",\n        \"parameters\": [\n          {\n            \"name\": \"base\",\n            \"in\": \"query\",\n            \"description\": \"Three-letter base currency code, like USD. EUR if left out.\",\n            \"schema\": { \"type\": \"string\", \"pattern\": \"^[A-Z]{3}$\" }\n          },\n          {\n            \"name\": \"symbols\",\n            \"in\": \"query\",\n            \"description\": \"Comma-separated codes to return, like EUR,GBP. All if left out.\",\n            \"schema\": {\n              \"type\": \"string\",\n              \"pattern\": \"^[A-Z]{3}(,[A-Z]{3}){0,40}$\"\n            }\n          },\n          {\n            \"name\": \"amount\",\n            \"in\": \"query\",\n            \"description\": \"Amount of the base currency to convert. 1 if left out.\",\n            \"schema\": {\n              \"type\": \"number\",\n              \"exclusiveMinimum\": 0,\n              \"maximum\": 1000000000\n            }\n          }\n        ],\n        \"responses\": {\n          \"200\": { \"description\": \"Rates for the base currency.\" }\n        }\n      }\n    },\n    \"/{date}\": {\n      \"get\": {\n        \"operationId\": \"getHistoricalRates\",\n        \"summary\": \"Exchange rates on one past date (working days, back to 1999-01-04).\",\n        \"parameters\": [\n          {\n            \"name\": \"date\",\n            \"in\": \"path\",\n            \"required\": true,\n            \"description\": \"The date as YYYY-MM-DD.\",\n            \"schema\": { \"type\": \"string\", \"pattern\": \"^\\\\d{4}-\\\\d{2}-\\\\d{2}$\" }\n          },\n          {\n            \"name\": \"base\",\n            \"in\": \"query\",\n            \"description\": \"Three-letter base currency code, like USD. EUR if left out.\",\n            \"schema\": { \"type\": \"string\", \"pattern\": \"^[A-Z]{3}$\" }\n          },\n          {\n            \"name\": \"symbols\",\n            \"in\": \"query\",\n            \"description\": \"Comma-separated codes to return, like EUR,GBP. All if left out.\",\n            \"schema\": {\n              \"type\": \"string\",\n              \"pattern\": \"^[A-Z]{3}(,[A-Z]{3}){0,40}$\"\n            }\n          }\n        ],\n        \"responses\": { \"200\": { \"description\": \"Rates on that date.\" } }\n      }\n    }\n  }\n}\n",
  "authType": "none",
  "apiKeyName": "X-API-Key",
  "oauthAuthorizationUrl": "https://auth.example-api.com/oauth/authorize",
  "oauthTokenUrl": "https://auth.example-api.com/oauth/token",
  "oauthScopes": "read write",
  "serverUrl": "https://api.example-api.com/v1",
  "serverName": "my-api-mcp",
  "rateLimitPerMinute": 60
}
```

# Actor output Schema

## `server` (type: `string`):

The Cloudflare Worker project: src, tools.json, wrangler.toml, package.json, a test and a README with deploy steps.

## `tools` (type: `string`):

One row per API operation: the tool name, method, path and arguments, or why it was skipped.

## `summary` (type: `string`):

Worker name, API URL, sign-in type, tool names, skipped operations and the zip's download URL.

# 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 = {
    "schema": "{\n  \"openapi\": \"3.1.0\",\n  \"info\": {\n    \"title\": \"Exchange rates\",\n    \"description\": \"Daily reference exchange rates from Frankfurter (frankfurter.dev). No API key.\",\n    \"version\": \"1.0.0\"\n  },\n  \"servers\": [{ \"url\": \"https://api.frankfurter.dev/v1\" }],\n  \"paths\": {\n    \"/currencies\": {\n      \"get\": {\n        \"operationId\": \"listCurrencies\",\n        \"summary\": \"List the currency codes this API supports, with their names.\",\n        \"responses\": { \"200\": { \"description\": \"Currency codes and names.\" } }\n      }\n    },\n    \"/latest\": {\n      \"get\": {\n        \"operationId\": \"getLatestRates\",\n        \"summary\": \"Latest daily exchange rates for one base currency.\",\n        \"parameters\": [\n          {\n            \"name\": \"base\",\n            \"in\": \"query\",\n            \"description\": \"Three-letter base currency code, like USD. EUR if left out.\",\n            \"schema\": { \"type\": \"string\", \"pattern\": \"^[A-Z]{3}$\" }\n          },\n          {\n            \"name\": \"symbols\",\n            \"in\": \"query\",\n            \"description\": \"Comma-separated codes to return, like EUR,GBP. All if left out.\",\n            \"schema\": {\n              \"type\": \"string\",\n              \"pattern\": \"^[A-Z]{3}(,[A-Z]{3}){0,40}$\"\n            }\n          },\n          {\n            \"name\": \"amount\",\n            \"in\": \"query\",\n            \"description\": \"Amount of the base currency to convert. 1 if left out.\",\n            \"schema\": {\n              \"type\": \"number\",\n              \"exclusiveMinimum\": 0,\n              \"maximum\": 1000000000\n            }\n          }\n        ],\n        \"responses\": {\n          \"200\": { \"description\": \"Rates for the base currency.\" }\n        }\n      }\n    },\n    \"/{date}\": {\n      \"get\": {\n        \"operationId\": \"getHistoricalRates\",\n        \"summary\": \"Exchange rates on one past date (working days, back to 1999-01-04).\",\n        \"parameters\": [\n          {\n            \"name\": \"date\",\n            \"in\": \"path\",\n            \"required\": true,\n            \"description\": \"The date as YYYY-MM-DD.\",\n            \"schema\": { \"type\": \"string\", \"pattern\": \"^\\\\d{4}-\\\\d{2}-\\\\d{2}$\" }\n          },\n          {\n            \"name\": \"base\",\n            \"in\": \"query\",\n            \"description\": \"Three-letter base currency code, like USD. EUR if left out.\",\n            \"schema\": { \"type\": \"string\", \"pattern\": \"^[A-Z]{3}$\" }\n          },\n          {\n            \"name\": \"symbols\",\n            \"in\": \"query\",\n            \"description\": \"Comma-separated codes to return, like EUR,GBP. All if left out.\",\n            \"schema\": {\n              \"type\": \"string\",\n              \"pattern\": \"^[A-Z]{3}(,[A-Z]{3}){0,40}$\"\n            }\n          }\n        ],\n        \"responses\": { \"200\": { \"description\": \"Rates on that date.\" } }\n      }\n    }\n  }\n}\n"
};

// Run the Actor and wait for it to finish
const run = await client.actor("brasspage/gpt-action-to-mcp").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 = { "schema": """{
  \"openapi\": \"3.1.0\",
  \"info\": {
    \"title\": \"Exchange rates\",
    \"description\": \"Daily reference exchange rates from Frankfurter (frankfurter.dev). No API key.\",
    \"version\": \"1.0.0\"
  },
  \"servers\": [{ \"url\": \"https://api.frankfurter.dev/v1\" }],
  \"paths\": {
    \"/currencies\": {
      \"get\": {
        \"operationId\": \"listCurrencies\",
        \"summary\": \"List the currency codes this API supports, with their names.\",
        \"responses\": { \"200\": { \"description\": \"Currency codes and names.\" } }
      }
    },
    \"/latest\": {
      \"get\": {
        \"operationId\": \"getLatestRates\",
        \"summary\": \"Latest daily exchange rates for one base currency.\",
        \"parameters\": [
          {
            \"name\": \"base\",
            \"in\": \"query\",
            \"description\": \"Three-letter base currency code, like USD. EUR if left out.\",
            \"schema\": { \"type\": \"string\", \"pattern\": \"^[A-Z]{3}$\" }
          },
          {
            \"name\": \"symbols\",
            \"in\": \"query\",
            \"description\": \"Comma-separated codes to return, like EUR,GBP. All if left out.\",
            \"schema\": {
              \"type\": \"string\",
              \"pattern\": \"^[A-Z]{3}(,[A-Z]{3}){0,40}$\"
            }
          },
          {
            \"name\": \"amount\",
            \"in\": \"query\",
            \"description\": \"Amount of the base currency to convert. 1 if left out.\",
            \"schema\": {
              \"type\": \"number\",
              \"exclusiveMinimum\": 0,
              \"maximum\": 1000000000
            }
          }
        ],
        \"responses\": {
          \"200\": { \"description\": \"Rates for the base currency.\" }
        }
      }
    },
    \"/{date}\": {
      \"get\": {
        \"operationId\": \"getHistoricalRates\",
        \"summary\": \"Exchange rates on one past date (working days, back to 1999-01-04).\",
        \"parameters\": [
          {
            \"name\": \"date\",
            \"in\": \"path\",
            \"required\": true,
            \"description\": \"The date as YYYY-MM-DD.\",
            \"schema\": { \"type\": \"string\", \"pattern\": \"^\\\\d{4}-\\\\d{2}-\\\\d{2}$\" }
          },
          {
            \"name\": \"base\",
            \"in\": \"query\",
            \"description\": \"Three-letter base currency code, like USD. EUR if left out.\",
            \"schema\": { \"type\": \"string\", \"pattern\": \"^[A-Z]{3}$\" }
          },
          {
            \"name\": \"symbols\",
            \"in\": \"query\",
            \"description\": \"Comma-separated codes to return, like EUR,GBP. All if left out.\",
            \"schema\": {
              \"type\": \"string\",
              \"pattern\": \"^[A-Z]{3}(,[A-Z]{3}){0,40}$\"
            }
          }
        ],
        \"responses\": { \"200\": { \"description\": \"Rates on that date.\" } }
      }
    }
  }
}
""" }

# Run the Actor and wait for it to finish
run = client.actor("brasspage/gpt-action-to-mcp").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 '{
  "schema": "{\\n  \\"openapi\\": \\"3.1.0\\",\\n  \\"info\\": {\\n    \\"title\\": \\"Exchange rates\\",\\n    \\"description\\": \\"Daily reference exchange rates from Frankfurter (frankfurter.dev). No API key.\\",\\n    \\"version\\": \\"1.0.0\\"\\n  },\\n  \\"servers\\": [{ \\"url\\": \\"https://api.frankfurter.dev/v1\\" }],\\n  \\"paths\\": {\\n    \\"/currencies\\": {\\n      \\"get\\": {\\n        \\"operationId\\": \\"listCurrencies\\",\\n        \\"summary\\": \\"List the currency codes this API supports, with their names.\\",\\n        \\"responses\\": { \\"200\\": { \\"description\\": \\"Currency codes and names.\\" } }\\n      }\\n    },\\n    \\"/latest\\": {\\n      \\"get\\": {\\n        \\"operationId\\": \\"getLatestRates\\",\\n        \\"summary\\": \\"Latest daily exchange rates for one base currency.\\",\\n        \\"parameters\\": [\\n          {\\n            \\"name\\": \\"base\\",\\n            \\"in\\": \\"query\\",\\n            \\"description\\": \\"Three-letter base currency code, like USD. EUR if left out.\\",\\n            \\"schema\\": { \\"type\\": \\"string\\", \\"pattern\\": \\"^[A-Z]{3}$\\" }\\n          },\\n          {\\n            \\"name\\": \\"symbols\\",\\n            \\"in\\": \\"query\\",\\n            \\"description\\": \\"Comma-separated codes to return, like EUR,GBP. All if left out.\\",\\n            \\"schema\\": {\\n              \\"type\\": \\"string\\",\\n              \\"pattern\\": \\"^[A-Z]{3}(,[A-Z]{3}){0,40}$\\"\\n            }\\n          },\\n          {\\n            \\"name\\": \\"amount\\",\\n            \\"in\\": \\"query\\",\\n            \\"description\\": \\"Amount of the base currency to convert. 1 if left out.\\",\\n            \\"schema\\": {\\n              \\"type\\": \\"number\\",\\n              \\"exclusiveMinimum\\": 0,\\n              \\"maximum\\": 1000000000\\n            }\\n          }\\n        ],\\n        \\"responses\\": {\\n          \\"200\\": { \\"description\\": \\"Rates for the base currency.\\" }\\n        }\\n      }\\n    },\\n    \\"/{date}\\": {\\n      \\"get\\": {\\n        \\"operationId\\": \\"getHistoricalRates\\",\\n        \\"summary\\": \\"Exchange rates on one past date (working days, back to 1999-01-04).\\",\\n        \\"parameters\\": [\\n          {\\n            \\"name\\": \\"date\\",\\n            \\"in\\": \\"path\\",\\n            \\"required\\": true,\\n            \\"description\\": \\"The date as YYYY-MM-DD.\\",\\n            \\"schema\\": { \\"type\\": \\"string\\", \\"pattern\\": \\"^\\\\\\\\d{4}-\\\\\\\\d{2}-\\\\\\\\d{2}$\\" }\\n          },\\n          {\\n            \\"name\\": \\"base\\",\\n            \\"in\\": \\"query\\",\\n            \\"description\\": \\"Three-letter base currency code, like USD. EUR if left out.\\",\\n            \\"schema\\": { \\"type\\": \\"string\\", \\"pattern\\": \\"^[A-Z]{3}$\\" }\\n          },\\n          {\\n            \\"name\\": \\"symbols\\",\\n            \\"in\\": \\"query\\",\\n            \\"description\\": \\"Comma-separated codes to return, like EUR,GBP. All if left out.\\",\\n            \\"schema\\": {\\n              \\"type\\": \\"string\\",\\n              \\"pattern\\": \\"^[A-Z]{3}(,[A-Z]{3}){0,40}$\\"\\n            }\\n          }\\n        ],\\n        \\"responses\\": { \\"200\\": { \\"description\\": \\"Rates on that date.\\" } }\\n      }\\n    }\\n  }\\n}\\n"
}' |
apify call brasspage/gpt-action-to-mcp --silent --output-dataset

```

## MCP server setup

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

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/zwio1iJjMZycPd949/builds/h5xVKbvPeJGfhTiyr/openapi.json
