mcp-server-eia
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-eiaCO2 emissions by state in 2023"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-server-eia
Model Context Protocol server for the U.S. EIA Open Data API — domain tools for plants, operations, retail and historical fuel spot prices, AEO projections, and state CO₂ (not raw route mirrors).
Give any AI agent structured access to U.S. energy data from the Energy Information Administration (EIA Open Data API v2).
Scope: stateless live calls to the EIA API only — no database, no hosted projections. Tools return a consistent { "data", "meta" } shape so agents can rely on stable fields.
Prerequisites
Python 3.11+ (see
requires-pythoninpyproject.toml)A free EIA API key (below)
An MCP client that supports stdio (Cursor, Claude Desktop, etc.)
Related MCP server: EIA MCP Server
API key
Register: EIA Open Data registration.
Recommended: set
EIA_API_KEYin the MCP serverenv(see below). Keys stay out of the repo; each machine uses its own key.Optional: for a terminal,
export EIA_API_KEY=...beforepython -m mcp_server_eia.
Do not commit API keys or paste them into issues/PRs.
Cursor / Claude Desktop / any stdio MCP host
Point the client at this repo’s Python module and pass your key in env:
{
"mcpServers": {
"eia": {
"command": "python3",
"args": ["-m", "mcp_server_eia"],
"cwd": "/absolute/path/to/mcp-server-eia",
"env": {
"EIA_API_KEY": "paste-your-key-here"
}
}
}
}cwdmust be the folder where you clonedmcp-server-eia(so imports resolve afterpip install -e .).Optional: add
"EIA_AEO_RELEASE": "2025"toenvif you need a different AEO release path than the default.
Where to edit config: Cursor — MCP settings (UI or JSON, depending on version). Claude Desktop — macOS: ~/Library/Application Support/Claude/claude_desktop_config.json. Windows: %APPDATA%\Claude\claude_desktop_config.json (path may vary slightly by version).
Why not call the EIA API directly?
Fuel types are coded (
BIT,NG, …), not “coal” and “gas”.Plant inventory is generator-level; useful answers need aggregation to plant.
AEO data uses table IDs, scenario codes, and region facets that are hard to guess.
This server wraps those details behind nine domain tools and a stable
{ "data", "meta" }response shape.
Quick start (install)
git clone https://github.com/abrose1/mcp-server-eia.git
cd mcp-server-eia
python3 -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]"Then add the MCP JSON block above (or export EIA_API_KEY for a one-off terminal run).
Troubleshooting
Issue | What to check |
Import / module errors |
|
| Key typo, or key not passed in |
Slow calls or | EIA rate-limits heavy use; back off and retry. This server retries transient errors; sustained 429s need a pause or fewer parallel tools. |
Tools
Tool | Purpose |
| EIA-860 inventory aggregated to plants (fuel, state, capacity, status). |
| EIA-923 facility-fuel: generation, fuel use, CF, heat rate. |
| 860 + recent 923 in one response. |
| EIA-923 |
| EIA-860 |
|
|
| AEO national fuel prices or regional EMM series (prices, capacity, emissions). |
| Historical spot/market fuel prices: natural gas (Henry Hub, U.S. citygate/wellhead), coal by basin ( |
| STEO (Short-Term Energy Outlook) 18-month forecasts with historical actuals (monthly or quarterly). |
| SEDS state CO2 (million metric tons) by sector/fuel group. |
Example prompts (natural language)
get_fuel_prices returns historical benchmark (spot/market) fuel prices:
Example prompt | What you’ll get |
|
|
|
|
|
|
|
|
|
|
|
|
get_steo_forecast returns STEO historical actuals + forecast:
Example prompt | What you’ll get |
|
|
|
|
|
|
|
|
STEO series keys: natural_gas_price, crude_oil_price, electricity_demand; frequency is monthly or quarterly.
Plant IDs must be STATE-plantid (e.g. OH-3470), not a bare numeric code.
Development
pytest
ruff check src testsLive API smoke test (optional)
After pip install -e ., set EIA_API_KEY (same as in MCP env) and run:
export EIA_API_KEY=your-key
python scripts/smoke_eia.pyThis hits the real EIA API (tens of seconds), checks two different plants for get_plant_operations, and exercises every tool (including get_generation_mix, get_capacity_by_fuel, and get_fuel_prices). Use before releases or after changing EIA integration code. CI runs unit tests only; smoke needs EIA_API_KEY locally.
Contributing
Issues and PRs welcome. Run pytest, ruff check src tests, and (if you touch EIA calls) python scripts/smoke_eia.py with your key before submitting.
Related
Project Burnout — a separate web dashboard (Burnout / Stranded Assets) that explores US fossil plants using EIA-backed data and its own hosted stack. It is a different product from this MCP server: no shared install, and this repo’s tools are for live EIA API access from MCP clients, not the Burnout app UI.
Releases
See CHANGELOG.md and tags on GitHub.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/abrose1/mcp-server-eia'
If you have feedback or need assistance with the MCP directory API, please join our Discord server