Un Energy
liveMarketsEnergyGeographyUN energy statistics: the United Nations Statistics Division energy balances and the Energy Statistics Database, by country, product (commodity) and flow (transaction) and year.
Tools
un_energy_balanceCountry energy balance from the UN Statistics Division, always in terajoules (TJ): one product group (coal and peat, oil products, natural gas, electricity, total energy, ...) against one flow (primar
No parameters required.
Try it
un_energy_statisticsEnergy Statistics Database of the UN Statistics Division: one named fuel or product (aviation gasoline, hard coal, lignite, kerosene-type jet fuel, natural gas, fuelwood, hydro electricity, ...) again
No parameters required.
Try it
un_energy_codesBrowse the valid countries, products and flows for the UN energy tools, with codes. kind picks the list: country, balance_commodity, balance_flow, commodity, flow. query filters by words. Example: un_
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/un-energy/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/un-energy/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"un_energy_balance","arguments":{}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("un_energy_balance", {});// Or ask in plain English:
const answer = await px.ask("un energy statistics: the united nations statistics division energy balances and the energy statistics database, by country, product (commodity) and flow (transaction) and year");