OpenAPI to MCP Converter

Converts OpenAPI operations into Model Context Protocol tool definitions with JSON Schema input, mapping path, query, header and body parameters.

POST /v1/developer/openapi-to-mcp $0.03 per call

Specification

Endpoint
POST /v1/developer/openapi-to-mcp
Price
$0.03 per call · tier strategy_intelligence
Payment
x402 on X Layer (chain 196) · settled in USDG or USDT0 · scheme exact
Data source
Deterministic local computation on caller-supplied input
Timeout
15 seconds
Max request
2 MB
Version
1.0.0

Calling it

The first call returns a 402 with the payment challenge. Retry with a signed authorisation in the X-PAYMENT header — see the payment guide for the exact shape.

curl -i -X POST "https://api.dana-edu.pp.ua/v1/developer/openapi-to-mcp" \
  -H "content-type: application/json" \
  -d '{ ... }'

Response

Real output, captured by running this endpoint at build time — not written by hand. Volatile fields such as timestamps are elided. Captured 2026-07-30.

{
  "tool_count": 1,
  "tools": [
    {
      "name": "getItem",
      "description": "Fetch one item",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "path parameter"
          },
          "verbose": {
            "type": "boolean",
            "description": "query parameter"
          }
        },
        "required": [
          "id"
        ]
      },
      "_http": {
        "method": "GET",
        "url": "https://demo.example/v1/items/{id}",
        "path_params": [
          "id"
        ],
        "query_params": [
          "verbose"
        ],
        "header_params": [],
        "has_body": false
      }
    }
  ],
  "skipped": [],
  "base_url": "https://demo.example/v1",
  "source_title": "Demo"
}

Every response is wrapped in the same envelope: data plus warnings, sources, confidence, informational_only and a measured processing_ms. See the envelope reference.

Related endpoints