API & MCP
Everything a person can do on Food Storage Guide, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://foodstorageguide.usefulweb.site/api/v1/calculate– run Food Storage GuideGET https://foodstorageguide.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Food Storage Guide
Choose a food and the date you stored or opened it. The guide shows the refrigerator and freezer limits exactly as published in the FoodSafety.gov Cold Food Storage Chart, the resulting dates, and whether the food is fine, should be used soon, or should be discarded.
| Field | Type | Default | Description |
|---|---|---|---|
food | select (salads, hot-dogs-opened, hot-dogs-unopened, luncheon-meat-opened, luncheon-meat-unopened, bacon, sausage-raw, sausage-cooked, sausage-purchased-frozen, ground-meat, steaks, chops, roasts, ham- | "leftover-meat-poultry" | Food |
storage | select (fridge, freezer, pantry) | "fridge" | Where is it stored? |
dateStored | date | — | Date stored / opened / cooked. Leave empty to use today. |
today | date | — | Today (optional). Defaults to the current date. |
Example request
Leftover chicken cooked 3 days ago
curl -X POST https://foodstorageguide.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"food":"leftover-meat-poultry","storage":"fridge","dateStored":"2026-10-09","today":"2026-10-12"}'
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://foodstorageguide.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
food_storage_guide - Local stdio connector:
node src/mcp-stdio.ts --tool=food-storage-guide
{
"mcpServers": {
"food-storage-guide": { "type": "http", "url": "https://foodstorageguide.usefulweb.site/mcp" }
}
}