{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "name": "com.apikeg/dom-harvest",
  "title": "DOM Harvest & Table Grid Edge API",
  "description": "Turn noisy HTML tables, repeating product grids, and JSON-LD into clean typed JSON with >90% LLM token reduction. Dumping raw 300KB HTML into an LLM burns $0.05-$0.30 in context tokens and truncates past item 20; DIY regex/table parsers break on multi-row thead colspan + rowspan merges. DOM Harvest extracts all 500 items deterministically in <20ms for $0.001-$0.002.",
  "version": "1.0.0",
  "transports": [
    {
      "type": "streamable-http",
      "url": "https://dom-harvest.apikeg.com/mcp"
    }
  ],
  "capabilities": {
    "tools": true,
    "resources": true,
    "prompts": true
  },
  "authentication": {
    "required": false,
    "schemes": [
      "x402",
      "bearer",
      "none"
    ],
    "notes": "Zero-signup x402 is primary: initialize, tools/list, resources/*, and prompts/* are free, and paid tools settle inline via HTTP 402 (x402 v2 USDC). Alternatively, pass Authorization: Bearer ak_live_... with an active $5/$20/$50 monthly subscription from https://apikeg.com/account."
  },
  "payment": {
    "protocol": "x402",
    "version": 2,
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "manifestUrl": "https://dom-harvest.apikeg.com/.well-known/x402.json",
    "freeDiscovery": true
  },
  "documentation": {
    "landingPage": "https://dom-harvest.apikeg.com/",
    "llmsTxt": "https://dom-harvest.apikeg.com/llms.txt",
    "llmsFullTxt": "https://dom-harvest.apikeg.com/llms-full.txt",
    "openApi": "https://dom-harvest.apikeg.com/openapi.json",
    "apiCatalog": "https://dom-harvest.apikeg.com/.well-known/api-catalog"
  },
  "tools": [
    {
      "name": "harvest_page_structures",
      "title": "Auto-Harvest Tables, Repeating Cards & Metadata",
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.002",
        "unitDescription": "per HTML page structure harvest"
      },
      "restEndpoint": "https://dom-harvest.apikeg.com/v1/harvest-page-structures",
      "docUrl": "https://dom-harvest.apikeg.com/tools/harvest-page-structures"
    },
    {
      "name": "extract_by_schema",
      "title": "Extract Records by Declarative CSS Schema",
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.001",
        "unitDescription": "per declarative CSS-schema extraction"
      },
      "restEndpoint": "https://dom-harvest.apikeg.com/v1/extract-by-schema",
      "docUrl": "https://dom-harvest.apikeg.com/tools/extract-by-schema"
    }
  ]
}