OpenAPI to MCP Converter
Pricing
from $100.00 / 1,000 spec converteds
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Categories
Features
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)
| Event | Price |
|---|---|
| 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
| Field | Title | Required | Description |
|---|---|---|---|
spec | OpenAPI spec (JSON object) | no | Provide exactly one of Spec, Spec text, Spec URL. |
spec_text | Spec text (JSON or YAML) | no | Paste the spec as text. |
spec_url | Spec URL | no | Public URL of a JSON/YAML spec. |
max_tools | Max tools | no | Operations 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:
| Field | Type | Description |
|---|---|---|
api_title | string | API title. |
api_version | string | API version. |
base_url | string | First server URL. |
tool_count | integer | Tools generated. |
mcp_tools_list | object | MCP tools/list result. |
anthropic_tools | array | Claude tool definitions. |
openai_functions | array | OpenAI function-calling definitions. |
http_bindings | array | Tool to HTTP method/path map. |
skipped | array | Operations 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 ApifyClientrun = 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.