Eia Energy Mcp Server
Read-only access to U.S. Energy Information Administration data: electricity, petroleum, natural gas, coal, and forecasts.
- CCM score
- 86 of 100
- GitHub stars
- 3
- tools
- 6
- auth
- Required
- transport
- STDIO, HTTP
- env vars
- 14
- last updated
- Nov 15, 2026
Own this MCP server? Claim it
What it does
- Browses and describes routes with
eia_browse_routes,eia_describe_route, andeia_search_routes, including facet values and series IDs like Henry Hub and WTI - Queries time series with
eia_query_route, which can stage results for SQL througheia_dataframe_describeandeia_dataframe_query - Requires an EIA API key;
eia_dataframe_dropneedsEIA_DATAFRAME_DROP_ENABLED=true, and the DataCanvas tools are off in Claude Desktop - Designed for analysts and researchers pulling national energy statistics into plain-language searches and SQL
Install
$ npx -y add-mcp https://eia-energy.caseyjhand.com/mcp --name eia-energy -yAdds the server to every agent config it finds in this project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http eia-energy https://eia-energy.caseyjhand.com/mcpRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 6 toolsVerified live against the running server on Nov 6, 2026.
eia_browse_routesLists 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 quer...1 params
Lists 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 quer...
pathstringeia_describe_routeReturns 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...4 params
Returns 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...
facetstringroute*stringvalues_offsetintegervalues_querystringeia_search_routesFuzzy text search across route names, descriptions, category labels, and the names of the data columns a route publishes. Resolves natural-language queries like "electricity retail sales by state" or "natural gas imports" to matching route paths, and a measure named only by it...2 params
Fuzzy text search across route names, descriptions, category labels, and the names of the data columns a route publishes. Resolves natural-language queries like "electricity retail sales by state" or "natural gas imports" to matching route paths, and a measure named only by it...
limitnumberquery*stringeia_query_routeFetches 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 numeri...10 params
Fetches 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 numeri...
columnsarrayendstringfiltersobjectfrequencystringlengthnumberoffsetintegerroute*stringsortarraystagebooleanstartstringeia_dataframe_describeList 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...1 params
List 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...
namestringeia_dataframe_queryRun 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...4 params
Run 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...
previewnumberregister_asstringrow_limitnumbersql*stringConfiguration
EIA_API_KEY*Free API key from api.eia.gov. Required — all requests use this as the api_key query parameter.
EIA_DATASET_TTL_SECONDSdefault: 86400Sliding per-dataframe TTL in seconds, extended by every query that references the dataframe. At most 31536000 (365 days).
EIA_DATAFRAME_DROP_ENABLEDdefault: falseSet to 'true' to expose eia_dataframe_drop for manual canvas cleanup. Has no effect with CANVAS_PROVIDER_TYPE=none.
EIA_CANVAS_MAX_ROWSdefault: 25000Cumulative row ceiling for eia_query_route DataCanvas staging on a stage: true call. Five requests at EIA's 5000-row-per-request ceiling. At most 250000.
EIA_FACET_VALUE_CAPdefault: 50Facet values eia_describe_route returns per facet before truncating. Page past it with the tool's facet and values_offset inputs, or narrow a facet with values_query. At most 1000.
EIA_CLAMP_LIMITSdefault: trueLower an over-cap eia_query_route length, eia_dataframe_query row_limit or preview, or eia_search_routes limit to its cap with a notice. 'false' advertises and enforces each cap as a schema maximum instead.
CANVAS_PROVIDER_TYPEdefault: duckdbDataCanvas provider. 'duckdb', the default, registers eia_dataframe_describe and eia_dataframe_query and lets eia_query_route stage rows when called with stage: true; eia_dataframe_drop also requires EIA_DATAFRAME_DROP_ENABLED=true. 'none' disables DataCanvas.
MCP_LOG_LEVELdefault: infoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_TRANSPORT_TYPEdefault: httpSelects the HTTP transport.
MCP_HTTP_HOSTdefault: 127.0.0.1The hostname for the HTTP server.
MCP_HTTP_PORTdefault: 3010The port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHdefault: /mcpThe endpoint path for the MCP server.
MCP_PUBLIC_URLPublic origin override for deployments behind a TLS-terminating reverse proxy (e.g. https://mcp.example.com).
MCP_AUTH_MODEdefault: noneAuthentication mode to use: 'none', 'jwt', or 'oauth'.
Readme
@cyanheads/eia-energy-mcp-server
Browse and query the U.S. Energy Information Administration API v2 — electricity, petroleum, natural gas, coal, forecasts, and more via MCP. STDIO or Streamable HTTP.
Details
- Repository
- github.com/cyanheads/eia-energy-mcp-server
- Categories
- Data & Analytics, Research & Academic
- Package
@cyanheads/eia-energy-mcp-server- Transport
- STDIO, HTTP
- Auth
- Required
- Registry
- MCP registry, active
- Resources
- 1
- Tools verified
- Nov 6, 2026
Questions
What does the eia-energy MCP server let an agent do?
It lets an agent browse and query the U.S. Energy Information Administration API v2, covering electricity, petroleum, natural gas, coal and forecasts. An agent can find datasets in plain language, query time series with facet filters, and run SQL over large results.
Which tools does the eia-energy MCP server provide?
It provides eia_browse_routes, eia_describe_route, eia_search_routes and eia_query_route for finding and fetching EIA data. Its eia_dataframe_describe and eia_dataframe_query tools run SQL over staged results, and eia_dataframe_drop frees memory when enabled.
How do I install the eia-energy MCP server in Claude Code?
Run this command in a terminal: claude mcp add --transport http eia-energy https://eia-energy.caseyjhand.com/mcp. After that, the agent can search and query EIA energy routes through the hosted server.
Does the eia-energy MCP server need an API key?
Yes, it requires the EIA_API_KEY environment variable, a free key from api.eia.gov, when you run the npm package locally. Every request to the EIA API uses this key as its api_key query parameter.
Where does the eia-energy MCP server rank among Data & Analytics servers?
It ranks in the top 50 on the Data & Analytics category page on Claude Marketplaces. It stands out by connecting an agent directly to U.S. Energy Information Administration data across electricity, petroleum, natural gas, coal and forecasts.
More from cyanheads
All 18- Mcp Ts Core155
- Openfec Mcp Server2
- Smithsonian Mcp Server2
- Git Mcp Server246
- Workflows Mcp Server32
- Ntfy Mcp Server27
- Mailchimp Mcp Server2
- Mcp Ts Template155
- Pubmed Mcp Server171
- Clinicaltrialsgov Mcp Server103
- Openalex Mcp Server18
- Congressgov Mcp Server2
- Obsidian Mcp Server721
- Open Meteo Mcp Server14
- Pubchem Mcp Server13
- Cdc Health Mcp Server5
- Usaspending Mcp Server5
Similar to Eia Energy Mcp Server
More Data & AnalyticsFred Mcp ServerMCP serverstefanoamorelli135 starsAccess to FRED economic time series: browse the catalog, search by keyword, and pull series data.
Statistics Canada MCP ServerMCP serveraryan-jhaveri8 starsRead-only access to Statistics Canada's public data tables, time series, and code sets via WDS and SDMX.
pudlSkillcatalyst-cooperative/agent-skills2.1K installsExplore PUDL energy data tables, column meanings, and loadable Parquet files without installing the PUDL package.
clickhousePluginanthropics/claude-plugins-official48.8K starsConnect Claude to your ClickHouse Cloud databases. Browse organizations, services, databases, and table schemas. Run read-only SQL queries against your data and
wind-mcp-skillSkillwind-alice/alicemarket268.5K installsWind-backed financial data retrieval via seven MCP services covering stocks, funds, indices, bonds, filings, macro, and analytics.
Financial Hub McpMCP serverykshah13091 starPublic SEC filings, XBRL financials, FRED economic series, and market quotes via three free or keyed APIs.