Eia logo

Eia

Queries U.S. energy data from EIA, including fuel prices, production, storage, electricity generation, and ethanol metrics.

Install Eia

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "eia": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-eia"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

Eia MCP server connects AI agents to the U.S. Energy Information Administration API v2 for energy prices, production, consumption, storage, imports, exports, and generation data. Its tools cover route-based series queries plus focused petroleum, natural gas, electricity, ethanol, and U.S. fuel-price lookups. Use it for historical and regional energy analysis when official EIA data is appropriate, rather than for intraday market pricing. It is available through a hosted MCP endpoint or an npm-based local stdio bridge.

Use cases

  • Compare weekly U.S. gasoline and diesel prices
  • Track natural gas storage, production, or Henry Hub prices
  • Analyze electricity generation by fuel and state
  • Retrieve petroleum production, imports, supply, or stock data
  • Measure ethanol production, inventories, and imports

Key features

  • Route-based EIA time-series queries
  • Weekly national fuel-price lookups by grade
  • Petroleum, natural gas, electricity, and ethanol datasets
  • Regional and state-level energy data
  • Hosted MCP and local npm stdio connection modes

Tools6

What Eia lets your agent do. Expand a tool for its parameters.

Verified live~1.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

9/9 checks healthy over the last 46d

What it can do

From the 6 tools this server returned when we ran it.

Handles credentials · 3Read-only tools · 6
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age190 days
Maintainers1

Observed 2026-10-23 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · @pipeworx/mcp-eia (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads440Package downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Tools exposed6Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Eia works

What Eia does

Eia exposes U.S. Energy Information Administration data through MCP tools. The available datasets include petroleum and other liquids, natural gas, electricity, ethanol, and broader energy series accessed through route paths. Results generally include time periods, values, and metadata such as the relevant area or series name.

The server supports questions about gasoline and diesel prices, crude oil, natural gas storage and production, electricity generation by fuel and region, retail electricity sales, and ethanol supply-chain measures. Electricity data can include state-level generation, while petroleum and other datasets may provide regional breakdowns.

How it works

A hosted connection uses the Pipeworx gateway endpoint at https://gateway.pipeworx.io/eia/mcp. MCP clients can connect directly to that URL, or use the full Pipeworx gateway at https://gateway.pipeworx.io/mcp. The hosted pack endpoint also exposes shared Pipeworx meta-tools, including routing and discovery functions, in addition to the Eia tools.

For local MCP configuration, the @pipeworx/mcp-eia package runs as a stdio bridge. It forwards requests over the network to the same hosted Eia endpoint, so it does not provide offline access. The gateway also offers HTTP tool calls for clients that do not use MCP.

Setup and configuration

A remote MCP client can use this configuration:

config.json
{
  "mcpServers": {
    "eia": {
      "url": "https://gateway.pipeworx.io/eia/mcp"
    }
  }
}

For a local stdio connection, run the package with npx:

config.json
{
  "mcpServers": {
    "eia": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-eia"]
    }
  }
}

The local bridge needs network access. Anonymous use is capped at 50 calls per day; a free Pipeworx account raises the limit to 200 calls per day. Add PIPEWORX_API_KEY to the client configuration to authenticate the bridge. Set PIPEWORX_META_TOOLS=1 when the local connection should also list the gateway-wide meta-tools.

Direct EIA API access requires a free EIA API key, passed through the relevant request as _apiKey. EIA keys are available from the EIA Open Data registration page.

Tools and capabilities

  • eia_series queries an EIA route path and returns historical values with timestamps and metadata. It is intended for series not covered by the specialized tools.
  • eia_petroleum retrieves petroleum data for products such as gasoline, diesel, crude, stocks, supply, production, and imports.
  • us_fuel_price returns weekly U.S. average retail prices for regular, midgrade, or premium gasoline and diesel. The result identifies the selected grade and area.
  • eia_natural_gas covers named natural-gas series such as prices, production, consumption, storage, and spot prices, including Henry Hub data.
  • eia_electricity returns generation, retail sales, prices, and state-generation series across sources including coal, gas, nuclear, hydro, wind, and solar.
  • eia_ethanol retrieves ethanol production, stocks, and imports using EIA petroleum supply data filtered for ethanol.

Limitations and notes

EIA reporting schedules vary. Petroleum prices are generally weekly with a reporting delay, while electricity generation is monthly and may lag by roughly two months. Natural gas values can use different volume or energy units, so comparisons may require conversion.

Electricity generation may use net-generation definitions and state classifications based on both fuel and primary mover. Aggregate results carefully to avoid double counting. Annual Energy Outlook values are scenario-based projections, not guaranteed outcomes. EIA spot prices are official end-of-day data and are not a substitute for a real-time commercial market feed.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Eia

Eia is an MCP server that connects AI agents to the U.S. Energy Information Administration API v2. Its main tools query general EIA series, petroleum, natural gas, electricity, ethanol, and weekly U.S. gasoline or diesel prices, returning historical values with periods, metadata, and regional details where available.

Install it as a local stdio server by configuring your MCP client to run `npx -y @pipeworx/mcp-eia`. The bridge forwards requests to the hosted Pipeworx Eia endpoint and requires network access. You can also connect directly to `https://gateway.pipeworx.io/eia/mcp` without installing the package.

Direct EIA API requests require a free EIA API key passed as `_apiKey`. The hosted or npm-based Pipeworx connection can run anonymously with a daily call limit; adding `PIPEWORX_API_KEY` authenticates the local bridge and increases the stated daily allowance.

No, Eia is not a real-time market-price feed. Its spot prices are official end-of-day data, petroleum prices generally update weekly, and electricity generation data is monthly with a reporting lag. Use a commercial market feed for intraday pricing.

Yes, Eia works with Cursor through its hosted MCP URL or the local npm stdio configuration. Add the Eia endpoint to Cursor's MCP server settings, or configure Cursor to launch `npx -y @pipeworx/mcp-eia`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewEia AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/eia?style=directory)](https://allmcps.com/mcp/eia)
HTML Embed
<a href="https://allmcps.com/mcp/eia"><img src="https://allmcps.com/api/badge/eia?style=directory" alt="Eia on AllMCPs" /></a>