shortage.life · last_sync · 2026-07-03 16:59:58 UTCbuild 27d88d1 · node v22.22.2

// node

shortage.life
v0.3 · brussels · build f3a2c81
● online · 47/47 sources · 312ms

// $_ exec

$ shortage mcp --serve
> 10 tools · JSON-RPC 2.0
> protocol MCP 2024-11-05
> endpoint mcp.shortage.life/mcp

// readout · live

BRENT     $72.13/b 
TTF       €44.25/MWh 
OPEC_ORB  n/a
SPR_US    331.2 Mb 
FAO_FFPI  130.8 
auto-refresh 60slatency 312msbuild 0.3.0commit f3a2c81UTC 00:00:00
$_TICKER
BRENT$72.13● 0.0%TTF€44.25● 0.0%HH$3.25● 0.0%SPR_US331.2 Mb17.0dEU_GAS47.7%18c avgFAO_FFPI130.8▼0.2%WHT$6.00/bu● 0.0%BRENT$72.13● 0.0%TTF€44.25● 0.0%HH$3.25● 0.0%SPR_US331.2 Mb17.0dEU_GAS47.7%18c avgFAO_FFPI130.8▼0.2%WHT$6.00/bu● 0.0%
~/mcp·protocol MCP 2024-11-05·tools 10CC-BY-4.0

$_MCP SERVER

A public Model Context Protocol server. Connect any MCP-capable AI agent — Claude, Cursor and others — and let it query shortage.life data directly: strategic reserves, prices, scenarios, country profiles, incidents and more.

[ 01 ]  $_WHAT IS MCP

The Model Context Protocol is an open standard that lets AI assistants call external tools. shortage.life exposes its dataset as ten read-only MCP tools over JSON-RPC 2.0. No key, no account, no cost — the same CC-BY-4.0 data as the public API.

[ 02 ]  $_CONNECT

The server speaks JSON-RPC 2.0 over HTTP POST (MCP revision 2024-11-05). Add it to your client as a remote MCP server.

endpointhttps://mcp.shortage.life/mcp
transportJSON-RPC 2.0 · HTTP POST
protocolMCP 2024-11-05
authnone — public, no key
licenseCC-BY-4.0
// Claude Code · Claude Desktop
claude mcp add --transport http \
  shortage-life https://mcp.shortage.life/mcp
// Cursor
// ~/.cursor/mcp.json
{
  "mcpServers": {
    "shortage-life": {
      "url": "https://mcp.shortage.life/mcp"
    }
  }
}

[ 03 ]  $_TOOLS · 10 read-only

Each tool maps to one data query. Agents discover them through the tools/list call and run them through tools/call.

toolparamsreturns
get_reservecommodity, countryCurrent strategic reserve for a commodity in a country.
get_pricecommodityCurrent spot price for a commodity.
compare_countriescommodity, countries[]Compare a commodity's strategic reserves across several countries.
list_scenariosstatus?List prospective shortage scenarios, optionally filtered by status.
search_briefingsquery, lang?Keyword-search the published editorial briefings.
get_country_profileisoFull country profile — stress index, region and reserves.
list_incidentssince?, type?Geopolitical energy-infrastructure incidents, optionally since a date.
list_market_statementssince?Market-moving political statements, optionally since a date.
list_bankruptciesstatus?Per-country corporate bankruptcy data.
get_food_pricesCurrent food-commodity prices and their weekly series.

[ 04 ]  $_EXAMPLE · JSON-RPC calls

List the tools, then run one. No authentication required.

// tools/list
curl -s https://mcp.shortage.life/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
// tools/call
curl -s https://mcp.shortage.life/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call",
       "params":{"name":"get_price",
                 "arguments":{"commodity":"oil"}}}'

[ 05 ]  $_DISCOVERY

The MCP server is part of an AI-readability layer. The discovery files declare it in a machine-readable form.

/.well-known/agents.json — capability manifest/.well-known/agent-card.json — A2A skills/openapi.json — OpenAPI 3.1 spec for the REST API/llms.txt — curated index for AI systems/api-docs — the public REST API documentation