$ shortage api --spec
> base https://api.shortage.life/v1
> 10 endpoints · OpenAPI 3.1
> mcp.shortage.life/mcpBRENT $84.27 ▲ TTF €31.50 ▼ OPEC_SP 3.8 mb/d ● SPR_US 372.4 Mb FAO_FFPI 121.4 ▲
Free, anonymous, rate-limited. Every commodity, every country, every scenario — reads only, no SDK, no key. Responses are JSON; the dataset is CC-BY-4.0 with a required backlink. Base URL https://api.shortage.life/v1.
List every tracked commodity with current spot, stress index and last update.
Current strategic reserve for a commodity and country, with fill percentage and cover.
Normalised time-series for a reserve metric over an arbitrary date range.
Full country profile: stress index, top exposures, autonomy, supplier concentration.
Full commodity sheet: producers, consumers, flows and the current stress reading.
List prospective crisis scenarios with probability, severity and status.
Tagged geopolitical events — conflict, sanction, disaster, policy, infrastructure.
Latest editorial briefings for a language, newest first.
Semantic search across briefings and scenarios, powered by the RAG layer.
Conversational endpoint — a natural-language question, answered with cited sources. Rate-limited hard.
AI agents — Claude Desktop, Cursor and others — can query the data directly over SSE at mcp.shortage.life/mcp. Tools exposed: get_reserve, get_price, compare_countries, list_scenarios, search_briefings, get_country_profile.
The full machine-readable contract is published as OpenAPI 3.1. Three discovery files sit under /.well-known/ for AI crawlers and agents.