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
POST https://disasterprepbuilder.usefulweb.site/api/v1/calculate– run Disaster Prep BuilderGET https://disasterprepbuilder.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
guideline | select (readygov, bbk) | "readygov" | Guideline |
adults (required) | integer | 2 | Adults (and teenagers) |
children | integer | 0 | Children |
infants | integer | 0 | Infants |
dogs | integer | 0 | Dogs |
cats | integer | 0 | Cats |
days | integer | — | Days of supply. Empty = guideline default (BBK: 10 days; Ready.gov says "several days", this tool uses 3). |
hazards | multiselect (power-outage, flood, heat, winter-storm, earthquake, wildfire, pandemic) | ["power-outage"] | Hazards to prepare for |
medicalNeeds | boolean | false | Someone needs regular medication or medical devices |
kcalPerAdultDay | number | 2200 | Food energy per adult per day. 2,200 kcal is the basis of the German BLE stock calculator; Ready.gov gives no calorie figure. |
kcalPerChildDay | number | 1500 | Food energy per child per day. Tool assumption; adjust to your children's ages. |
dogWaterLitersPerDay | number | — | Water per dog per day (optional). The sources give no amount; ask your vet. Leave empty to list pet water without a quantity. |
catWaterLitersPerDay | number | — | Water per cat per day (optional) |
currency | text | "EUR" | Currency |
budget | number | — | Budget (optional) |
unitPrices | table | — | 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)
- Streamable HTTP endpoint:
https://disasterprepbuilder.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
disaster_prep_builder - Local stdio connector:
node src/mcp-stdio.ts --tool=disaster-prep-builder
{
"mcpServers": {
"disaster-prep-builder": { "type": "http", "url": "https://disasterprepbuilder.usefulweb.site/mcp" }
}
}