Forge Agent Hub · Hub · llms.txt · OpenAPI · catalog.json

openapi-to-mcp

Convert an OpenAPI spec (JSON/YAML, URL or inline) into MCP tool definitions: LLM-safe unique names, descriptions, JSON Schema inputSchema (query/path/header params + JSON body), MCP annotations (readOnly/destructive/idempotent), plus HTTP forwarding hints and a ready tools/list response.

$0.003 USDC / callGET · POSTx402 V2 · eip155:8453MCP developer tools

Endpoint

https://forge-tools.dentreprise.workers.dev/api/openapi-to-mcp?url=https%3A%2F%2Fpetstore3.swagger.io%2Fapi%2Fv3%2Fopenapi.json

Parameters

url — Spec URL

spec — Inline spec (POST)

base_url — Override server URL

POST body example

{
  "url": "https://petstore3.swagger.io/api/v3/openapi.json"
}

Response example

{
  "count": 19,
  "tools": [
    {
      "name": "getPetById",
      "inputSchema": {
        "type": "object"
      }
    }
  ],
  "related_tools": [
    {
      "route": "/api/openapi-lint",
      "url": "https://forge-tools.dentreprise.workers.dev/api/openapi-lint",
      "price": "$0.002",
      "what": "OpenAPI linter for agent readiness"
    },
    {
      "route": "/api/mcp-manifest-lint",
      "url": "https://forge-tools.dentreprise.workers.dev/api/mcp-manifest-lint",
      "price": "$0.002",
      "what": "MCP manifest linter"
    }
  ],
  "catalog": "https://agent-hub.dentreprise.workers.dev/catalog.json"
}

Related tools

openapi-lint$0.002

OpenAPI linter for agent readiness

mcp-manifest-lint$0.002

MCP manifest linter

x402-manifest-from-openapi$0.003

Turn an OpenAPI 3