Eia Energy MCP Server
Browse and query the EIA API v2 — electricity, petroleum, natural gas, coal, forecasts via MCP.
Connect it
Settings → Connectors → Add custom connector
URL: https://eia-energy.caseyjhand.com/mcpSettings → Apps & Connectors → Advanced → Developer mode
Create connector with URL: https://eia-energy.caseyjhand.com/mcp{
"mcpServers": {
"eia-energy-mcp-server": {
"url": "https://eia-energy.caseyjhand.com/mcp"
}
}
}claude mcp add --transport http eia-energy-mcp-server https://eia-energy.caseyjhand.com/mcp{
"servers": {
"eia-energy-mcp-server": {
"type": "http",
"url": "https://eia-energy.caseyjhand.com/mcp"
}
}
}{
"mcpServers": {
"eia-energy-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/eia-energy-mcp-server@0.4.4"
],
"env": {
"EIA_API_KEY": "<value>"
}
}
}
}claude mcp add eia-energy-mcp-server -- npx -y @cyanheads/eia-energy-mcp-server@0.4.46 tools, verified live
eia_browse_routesread-onlyLists child routes under a given path in the EIA dataset taxonomy. Start with no path to get the 14 top-level categories (electricity, petroleum, natural-gas, steo, aeo, ieo, seds, etc.), then drill into subcategories. Each result includes an isLeaf flag â leaf routes are queryable endpoints; non-leaf routes have children to browse. When isLeaf is true on the browsed path itself, switch to eia_d
eia_describe_routeread-onlyReturns metadata for a leaf route: available facets with their valid values, data column names and units, frequency options, and date range. Call this before eia_query_route to discover valid facet IDs, facet values, column IDs, and frequency codes. Each facet returns a capped window of its values with value_count and values_truncated alongside; pass facet and values_offset to page through the res
eia_search_routesread-onlyFuzzy text search across route names, descriptions, and category labels. Resolves natural-language queries like "electricity retail sales by state" or "natural gas imports" to matching route paths. Multi-term queries are also matched term by term, so combining a commodity, a metric, and a sector â "electricity price residential", "coal generation industrial sector" â reaches the route carrying
eia_query_routeread-onlyFetches data from a leaf route with optional facet filters, date range, frequency, and column selection. Use eia_describe_route first to discover valid facet IDs, facet values, column IDs, and frequency codes. Data values are strings in the response (EIA API returns all numeric values as strings, e.g. "9.13"); cast to DOUBLE in SQL when arithmetic is needed. Returns a preview inline and stages not
eia_dataframe_describeread-onlyList canvas dataframes (df_<id>) materialized by eia_query_route calls that passed stage: true, with provenance, expiry, row count, and column schema. Nothing is staged until such a call runs, so an empty list on a fresh session means no query has staged yet, not that staging failed. Drops entries for dataframes the canvas no longer holds before responding, so the list is always current. Pass a sp
eia_dataframe_queryread-onlyRun a single-statement SELECT against canvas dataframes registered by eia_query_route calls that passed stage: true â a query that staged nothing leaves no table to select from. Standard DuckDB SQL â joins, aggregates, window functions, CTEs all supported. Reference dataframes by the df_<id> handles returned by eia_query_route or listed by eia_dataframe_describe. Read-only: writes, DDL, DROP,
Alternatives in Developer Tools
Compare →MLMicrosoft Learn MCPOfficialA
Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.
GIGitHubOfficialA
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
GIGitDiagramA
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
MDMCP Docs ServerOfficialA
AI access to Mapbox docs, API references, style specs, and guides. No token required.
MGMCP GrafanaOfficialA
An MCP server giving access to Grafana dashboards, data and more.
MDMCP Devkit ServerOfficialA
Provides AI assistants with direct access to Mapbox developer APIs and documentation.