API & MCP

Everything a person can do on Disaster Prep Builder, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Disaster Prep Builder

Enter your household (adults, children, infants, pets), the number of days and the hazards you face. The tool calculates water and food quantities from the official guideline you choose (Ready.gov in the US or the German BBK), builds a grouped checklist with hazard-specific additions quoted from the sources, and estimates cost only if you enter your own prices.

Inputs of Disaster Prep Builder
FieldTypeDefaultDescription
guidelineselect (readygov, bbk)"readygov"Guideline
adults (required)integer2Adults (and teenagers)
childreninteger0Children
infantsinteger0Infants
dogsinteger0Dogs
catsinteger0Cats
daysinteger—Days of supply. Empty = guideline default (BBK: 10 days; Ready.gov says "several days", this tool uses 3).
hazardsmultiselect (power-outage, flood, heat, winter-storm, earthquake, wildfire, pandemic)["power-outage"]Hazards to prepare for
medicalNeedsbooleanfalseSomeone needs regular medication or medical devices
kcalPerAdultDaynumber2200Food energy per adult per day. 2,200 kcal is the basis of the German BLE stock calculator; Ready.gov gives no calorie figure.
kcalPerChildDaynumber1500Food energy per child per day. Tool assumption; adjust to your children's ages.
dogWaterLitersPerDaynumber—Water per dog per day (optional). The sources give no amount; ask your vet. Leave empty to list pet water without a quantity.
catWaterLitersPerDaynumber—Water per cat per day (optional)
currencytext"EUR"Currency
budgetnumber—Budget (optional)
unitPricestable—Your unit prices (optional). Costs are only estimated for items you price here.

Example request

US family of four, power outage + winter storm

curl -X POST https://disasterprepbuilder.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"guideline":"readygov","adults":2,"children":2,"dogs":1,"hazards":["power-outage","winter-storm"],"currency":"USD"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "disaster-prep-builder": { "type": "http", "url": "https://disasterprepbuilder.usefulweb.site/mcp" }
  }
}