{
  "openapi": "3.1.0",
  "info": {
    "title": "US Disaster Declarations (FEMA) MCP",
    "description": "FEMA disaster declarations by state and county.\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-disaster-declarations-mcp.donniertf.workers.dev/mcp. Manifest: https://us-disaster-declarations-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-disaster-declarations-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. FEMA disaster declarations by state and county."
  },
  "servers": [
    {
      "url": "https://us-disaster-declarations-mcp.donniertf.workers.dev",
      "description": "US Disaster Declarations (FEMA) MCP origin"
    }
  ],
  "tags": [
    {
      "name": "x402",
      "description": "USDC on Base pay-per-call routes"
    }
  ],
  "paths": {
    "/x402/recent_disasters": {
      "post": {
        "summary": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). Latest 5 FEMA disaster declarations for a US state (hurricanes, floods, fires, storms) with counties.",
        "description": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). Latest 5 FEMA disaster declarations for a US state (hurricanes, floods, fires, storms) with counties.",
        "operationId": "post_x402_recent_disasters",
        "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": {
                  "state": {
                    "type": "string",
                    "description": "2-letter state, e.g. FL"
                  }
                },
                "required": [
                  "state"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). Latest 5 FEMA disaster declarations for a US state (hurricanes, floods, fires, storms) with counties. (query or 402 probe)",
        "description": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). Latest 5 FEMA disaster declarations for a US state (hurricanes, floods, fires, storms) with counties. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_recent_disasters",
        "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": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "2-letter state, e.g. FL"
            }
          }
        ]
      }
    },
    "/x402/county_history": {
      "post": {
        "summary": "PRO. All FEMA declarations for a county (e.g. 'Harris (County)') in a state since a year, with frequency by incident type.",
        "description": "PRO. All FEMA declarations for a county (e.g. 'Harris (County)') in a state since a year, with frequency by incident type.",
        "operationId": "post_x402_county_history",
        "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": {
                  "state": {
                    "type": "string"
                  },
                  "county": {
                    "type": "string"
                  },
                  "since_year": {
                    "type": "number"
                  }
                },
                "required": [
                  "state",
                  "county"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. All FEMA declarations for a county (e.g. 'Harris (County)') in a state since a year, with frequency by incident type. (query or 402 probe)",
        "description": "PRO. All FEMA declarations for a county (e.g. 'Harris (County)') in a state since a year, with frequency by incident type. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_county_history",
        "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": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "county",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since_year",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ]
      }
    },
    "/x402/new_declarations": {
      "post": {
        "summary": "PRO. All new disaster declarations nationwide in the last N days (default 7) — for restoration contractors, adjusters, insurers and lenders.",
        "description": "PRO. All new disaster declarations nationwide in the last N days (default 7) — for restoration contractors, adjusters, insurers and lenders.",
        "operationId": "post_x402_new_declarations",
        "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": {
                  "days": {
                    "type": "number"
                  },
                  "incident_type": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. All new disaster declarations nationwide in the last N days (default 7) — for restoration contractors, adjusters, insurers and lenders. (query or 402 probe)",
        "description": "PRO. All new disaster declarations nationwide in the last N days (default 7) — for restoration contractors, adjusters, insurers and lenders. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_new_declarations",
        "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": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "incident_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  }
}