MCP server exposing 3 tools for un-energy.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/un-energy/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
un_energy_balance — Country 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 (primary production, imports, exports, total energy supply, transformation, final consumption, ...) for a year or range. Use for questions like "total natural gas supply of Egypt in 2023 in TJ" or "total coal supply in Israel 2020". Coverage is annual, ~190 countries. Example: un_energy_balance({ country: "Israel", commodity: "coal", flow: "total energy supply", year: 2020 }). Product groups here are broad; for one named fuel (aviation gasoline, kerosene, lignite) use un_energy_statistics.un_energy_statistics — Energy 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, ...) against one flow (production, imports, exports, total energy supply, final energy consumption, consumption by industry, ...) by country and year, in the unit the country reported (tonnes, cubic metres, GWh or TJ) with the conversion factor UNSD uses and the value converted to TJ. Use for "final energy consumption of aviation gasoline in Brazil in 2022 (thousand metric tons)". Example: un_energy_statistics({ country: "Brazil", commodity: "aviation gasoline", flow: "final energy consumption", year: 2022 }).un_energy_codes — Browse 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_energy_codes({ kind: "commodity", query: "gasoline" }).Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/un-energy/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io