{
  "openapi": "3.1.0",
  "info": {
    "title": "US EPA Compliance Check MCP",
    "description": "EPA compliance, violations, inspections and penalties for any US ZIP code or company.\n\nThis specification documents the HTTP x402 pay-per-call routes only (not the MCP /mcp transport). Unpaid calls return HTTP 402. Retry with a PAYMENT-SIGNATURE header (x402 v2, scheme exact, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). A payout address is included only in the live 402 challenge served by the Worker, not in this file. MCP endpoint: https://us-epa-compliance-mcp.donniertf.workers.dev/mcp. Manifest: https://us-epa-compliance-mcp.donniertf.workers.dev/.well-known/x402. Paper/free discovery routes are not billed.",
    "version": "1.0.0",
    "contact": {
      "name": "Donnie Morrison",
      "email": "dmorrisonwebdesign@gmail.com",
      "url": "https://us-epa-compliance-mcp.donniertf.workers.dev/"
    },
    "license": {
      "name": "See product landing page and source licences"
    },
    "x-guidance": "Use the paid HTTP routes documented in paths (POST JSON, or GET with query args). Unpaid calls return HTTP 402; retry with a PAYMENT-SIGNATURE header (x402 v2, USDC on Base; legacy X-PAYMENT v1 also accepted). The MCP transport is at /mcp. EPA compliance, violations, inspections and penalties for any US ZIP code or company."
  },
  "servers": [
    {
      "url": "https://us-epa-compliance-mcp.donniertf.workers.dev",
      "description": "US EPA Compliance Check MCP origin"
    }
  ],
  "tags": [
    {
      "name": "x402",
      "description": "USDC on Base pay-per-call routes"
    }
  ],
  "paths": {
    "/x402/epa_check": {
      "post": {
        "summary": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). EPA-regulated facilities in a US ZIP code with compliance status — count, violators and top 3 worst.",
        "description": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). EPA-regulated facilities in a US ZIP code with compliance status — count, violators and top 3 worst.",
        "operationId": "post_x402_epa_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "zip": {
                    "type": "string"
                  }
                },
                "required": [
                  "zip"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). EPA-regulated facilities in a US ZIP code with compliance status — count, violators and top 3 worst. (query or 402 probe)",
        "description": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). EPA-regulated facilities in a US ZIP code with compliance status — count, violators and top 3 worst. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_epa_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "zip",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/x402/facility_search": {
      "post": {
        "summary": "PRO. Search EPA facilities by company/facility name (+ optional state) — compliance, violations, inspections, penalties.",
        "description": "PRO. Search EPA facilities by company/facility name (+ optional state) — compliance, violations, inspections, penalties.",
        "operationId": "post_x402_facility_search",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Search EPA facilities by company/facility name (+ optional state) — compliance, violations, inspections, penalties. (query or 402 probe)",
        "description": "PRO. Search EPA facilities by company/facility name (+ optional state) — compliance, violations, inspections, penalties. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_facility_search",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/x402/area_report": {
      "post": {
        "summary": "PRO. Environmental due-diligence for a ZIP: all active facilities, significant violators, penalties — for property buyers, lenders and site selection.",
        "description": "PRO. Environmental due-diligence for a ZIP: all active facilities, significant violators, penalties — for property buyers, lenders and site selection.",
        "operationId": "post_x402_area_report",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "zip": {
                    "type": "string"
                  }
                },
                "required": [
                  "zip"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Environmental due-diligence for a ZIP: all active facilities, significant violators, penalties — for property buyers, lenders and site selection. (query or 402 probe)",
        "description": "PRO. Environmental due-diligence for a ZIP: all active facilities, significant violators, penalties — for property buyers, lenders and site selection. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_area_report",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "zip",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  }
}