Eia

v0.2.1
io.github.pipeworx-io/eia Checked 1 day ago Published 1 month ago

EIA MCP — US Energy Information Administration API v2

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

eia_series

Search EIA for any energy data series by route path. Returns historical data points with timestamps and values. Use for specific energy metrics not covered by category tools.(e.g., "petroleum/pri/gnd" for gasoline prices, "natural-gas/pri/sum" for gas prices, "electricity/retail-sales" for electricity, "total-energy/data" for total energy). Returns time series with period, value, and metadata.

ParameterTypeDescription
_apiKey *stringEIA API key (free from eia.gov)
route *stringEIA data route path. Common routes: "petroleum/pri/gnd" (gasoline/diesel prices), "petroleum/pri/spt" (crude oil spot prices), "petroleum/stoc/wstk" (petroleum stocks), "petroleum/sum/sndw" (petroleum…
endstringEnd date (optional)
frequencystringData frequency: "weekly", "monthly", "quarterly", "annual" (optional)
limitnumberMax records to return (default: 12, max: 5000)
startstringStart date, e.g., "2023-01" for monthly, "2023" for annual (optional)

eia_petroleum

Get EIA petroleum time series data for a specific product (gasoline, diesel, crude, stocks, supply, production, imports). Returns prices or volumes by period with regional breakdowns. Requires free EIA API key.supply, production, and imports. Simplified interface to common EIA petroleum series.

ParameterTypeDescription
_apiKey *stringEIA API key
product *stringProduct type: "gasoline" (retail pump price), "diesel" (retail pump price), "crude" (WTI spot), "stocks", "supply", "production", "imports"
areastringRetail prices only: "US" (default, national average), "all" (every region EIA reports), or an EIA area code such as "R10" (East Coast) or "SCA" (California).
endstringEnd date (optional)
frequencystringFrequency: "weekly", "monthly", "annual" (optional; retail prices default to weekly)
gradestringGasoline grade, for product "gasoline" only: "regular" (default — the national headline price), "midgrade", "premium", or "all" (all grades combined).
startstringStart date (optional)

us_fuel_price

US gas station prices: the weekly national average retail pump price per gallon of regular, midgrade or premium gasoline, or diesel, from the U.S. Energy Information Administration's Weekly Retail Gasoline and Diesel Prices survey. Answers "current average US gas price", "national average price of regular unleaded", "how much is a gallon of gas", "diesel price at the pump". Pass fuel "gasoline" with grade (regular is the default, the national headline figure) or fuel "diesel"; area defaults to the US average. Returns the latest week first with the series name, so the grade and area are stated…

ParameterTypeDescription
_apiKey *stringEIA API key
areastring"US" (default, national average), "all" (every region EIA reports), or an EIA area code such as "R10" (East Coast) or "SCA" (California).
endstringLatest week to include, YYYY-MM-DD (optional).
fuelstringFuel: "gasoline" (default) or "diesel".
gradestringGasoline grade: "regular" (default — the national headline price), "midgrade", "premium", or "all" (all grades combined). Ignored for diesel.
startstringEarliest week to include, YYYY-MM-DD (optional; default the most recent 24 weeks).

eia_natural_gas

Get EIA natural gas time series for a named series (prices, production, consumption, storage, spot_prices). Returns period, value, and area metadata. Requires free EIA API key.Includes Henry Hub spot prices, underground storage, marketed production, and consumption by sector.

ParameterTypeDescription
_apiKey *stringEIA API key
series *stringData series: "prices", "production", "consumption", "storage", "spot_prices"
endstringEnd date (optional)
frequencystringFrequency: "weekly", "monthly", "annual" (optional)
startstringStart date (optional)

eia_electricity

Get EIA electricity data for a named series (generation, retail_sales, prices, state_generation). Returns time series with period and value across fuel sources and regions. Requires free EIA API key.Covers coal, natural gas, nuclear, hydro, wind, and solar generation.

ParameterTypeDescription
_apiKey *stringEIA API key
series *stringData series: "generation", "retail_sales", "prices", "state_generation"
endstringEnd date (optional)
frequencystringFrequency: "monthly", "quarterly", "annual" (optional)
startstringStart date (optional)

eia_ethanol

Get fuel ethanol production volumes, stocks, and imports. Returns time series for ethanol supply chain metrics.Key energy-agriculture intersection: most US ethanol is made from corn. Uses EIA petroleum supply data filtered for ethanol (EPOOXE product code).

ParameterTypeDescription
_apiKey *stringEIA API key
series *stringEthanol data type: "production", "stocks", "imports"
endstringEnd date (optional)
frequencystringFrequency: "weekly", "monthly" (optional, defaults to weekly)
startstringStart date (optional)