EIA MCP Server
Provides access to U.S. Energy Information Administration (EIA) data, covering electricity grid operations, retail sales, and natural gas production metrics. It enables natural language querying of energy market statistics, infrastructure profiles, and real-time balancing authority data.
README
EIA MCP Server
An MCP (Model Context Protocol) server for the U.S. Energy Information Administration (EIA) API, providing access to electricity and natural gas data.
Features
Electricity Data
- Retail Sales - Sales to customers by state and sector, pricing, and customer counts
- Operational Data - Monthly/annual generation, fuel consumption, and emissions
- RTO Data - Hourly/daily operations by balancing authority (CISO, PJM, MISO, ERCOT, etc.)
- State Profiles - State-level electricity profiles and infrastructure data
- Generator Capacity - Inventory of operable generators in the U.S.
- Facility Fuel - Individual power plant operational data
Natural Gas Data
- Summary - Overview of natural gas survey data
- Prices - Spot prices, futures, citygate, residential, commercial, industrial prices
- Exploration & Reserves - Resource discovery and stockpile levels
- Production - Output metrics and production volumes
- Imports/Exports - Cross-border flows and pipeline movement data
- Storage - Inventory levels, injections, and withdrawals
- Consumption - End use data by sector
Installation
cd eia-mcp
pip install -e .
Configuration
- Get an API key from EIA Open Data
- Set the environment variable:
export EIA_API_KEY=your_api_key_here
Usage with Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"eia": {
"command": "python",
"args": ["-m", "eia_mcp.server"],
"cwd": "/Users/yanpan/eia-mcp",
"env": {
"EIA_API_KEY": "your_api_key_here"
}
}
}
}
Or if installed as a package:
{
"mcpServers": {
"eia": {
"command": "eia-mcp",
"env": {
"EIA_API_KEY": "your_api_key_here"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
eia_electricity_retail_sales |
Get electricity retail sales data by state and sector |
eia_electricity_operational_data |
Get power generation and fuel consumption data |
eia_electricity_rto |
Get real-time grid operations by balancing authority |
eia_electricity_state_profiles |
Get state-level electricity profiles |
eia_electricity_generator_capacity |
Get generator inventory and capacity data |
eia_electricity_facility_fuel |
Get individual power plant data |
eia_natural_gas_summary |
Get natural gas summary data |
eia_natural_gas_prices |
Get natural gas price data |
eia_natural_gas_exploration_reserves |
Get exploration and reserves data |
eia_natural_gas_production |
Get production data |
eia_natural_gas_imports_exports |
Get import/export and pipeline data |
eia_natural_gas_storage |
Get storage facility data |
eia_natural_gas_consumption |
Get consumption data by sector |
eia_explore_routes |
Explore available API routes and metadata |
Example Queries
Just ask Claude naturally:
- "What were California's electricity retail sales in 2024?"
- "Show me the current electricity generation in ERCOT"
- "What are the natural gas storage levels this week?"
- "How much electricity did Texas generate last month?"
- "Compare natural gas prices across different regions"
- "What's the electricity demand in PJM right now?"
- "Show me natural gas import/export data for 2024"
API Reference
Base URL: https://api.eia.gov/v2/
For full API documentation, visit: https://www.eia.gov/opendata/documentation.php
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.