OpenAPI to MCP Converter avatar

OpenAPI to MCP Converter

Pricing

from $100.00 / 1,000 spec converteds

Go to Apify Store
OpenAPI to MCP Converter

OpenAPI to MCP Converter

Convert an OpenAPI 3 / Swagger spec (JSON or YAML) into MCP tools/list definitions, Anthropic tool schemas and OpenAI function specs, plus an HTTP binding map.

Pricing

from $100.00 / 1,000 spec converteds

Rating

0.0

(0)

Developer

Colton Mcclain

Colton Mcclain

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 days ago

Last modified

Categories

Features

Limited permissions

Share

Turn an API spec into agent-ready tool definitions in one run.

What problem does it solve?

Exposing an existing REST API to an AI agent means hand-writing a tool schema per endpoint.

What it does

  • Maps each operation to a tool: name from operationId, description from summary/description, input schema from parameters and request body.
  • Resolves local $refs (depth-limited) and outputs three formats: MCP tools/list, Anthropic tools, OpenAI functions.
  • Includes a method/path binding map so you can wire the calls.

Pricing (pay per event)

EventPrice
Actor start (once per run, per GB of memory, minimum one)$0.0050
Spec converted (per spec converted)$0.1000

You pay only for the events above plus nothing else from ELYRAON; Apify platform usage is covered by the event prices. The start event is charged on every run, including a run rejected for invalid input (nothing else is charged in that case). If you set a maximum charge per run, the Actor stops when it is reached and reports PARTIAL_MAX_CHARGE in the OUTPUT record, so you are never silently billed beyond your cap and never told a partial result is complete.

Input

FieldTitleRequiredDescription
specOpenAPI spec (JSON object)noProvide exactly one of Spec, Spec text, Spec URL.
spec_textSpec text (JSON or YAML)noPaste the spec as text.
spec_urlSpec URLnoPublic URL of a JSON/YAML spec.
max_toolsMax toolsnoOperations beyond this are skipped and listed.

Example input:

{
"spec_url": "https://example.com/openapi.json"
}

Output

Results go to the run's default dataset (download as JSON, CSV or Excel). Each item:

FieldTypeDescription
api_titlestringAPI title.
api_versionstringAPI version.
base_urlstringFirst server URL.
tool_countintegerTools generated.
mcp_tools_listobjectMCP tools/list result.
anthropic_toolsarrayClaude tool definitions.
openai_functionsarrayOpenAI function-calling definitions.
http_bindingsarrayTool to HTTP method/path map.
skippedarrayOperations skipped.

Example item:

{
"tool_count": 12,
"mcp_tools_list": {
"tools": [
"..."
]
},
"anthropic_tools": [
"..."
],
"openai_functions": [
"..."
]
}

The key-value store holds OUTPUT (run summary: status, counts, warnings, limitations, version, source commit) and REPORT.md (readable summary). OUTPUT.status is SUCCEEDED, PARTIAL_MAX_CHARGE, PARTIAL_RESULT_LIMIT or FAILED (with a structured error code/message/field). Invalid or empty input fails the run immediately with an explanation and returns no results.

Use from code

curl -X POST "https://api.apify.com/v2/acts/colt2822~openapi-to-mcp-converter/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" -d '{"spec_url": "https://example.com/openapi.json"}'
from apify_client import ApifyClient
run = ApifyClient("$APIFY_TOKEN").actor("colt2822/openapi-to-mcp-converter").call(run_input={"spec_url": "https://example.com/openapi.json"})

This Actor can also be called by AI agents through the Apify MCP server (https://mcp.apify.com), which exposes Actors as tools.

Limitations

  • Generates tool DEFINITIONS only; it does not host an MCP server or call your API.
  • Remote $refs are not fetched; auth schemes are not translated.
  • Large specs are capped by max_tools (default 100).

Support

Questions or problems: https://elyraon.com.co/contact/ (ELYRAON). Source revision: factory-65d07d3. Actor version 1.0.