L'Atlas / Serveurs MCP / eia-energy-mcp-server
Serveur MCP

eia-energy-mcp-server

io.github.cyanheads/eia-energy-mcp-server

Serveur MCP OK 6 outils

Faire examiner Voir les tarifs

Browse and query the EIA API v2 — electricity, petroleum, natural gas, coal, forecasts via MCP.

Fiche technique

Auteur
cyanheads (espace de noms du registre)
Dépôt
github.com/cyanheads/eia-energy-mcp-server
Site
—
Version
0.6.0
Transport
Streamable HTTP stdio
Authentification
Aucune (constatée par notre test)
Adresse du serveur
https://eia-energy.caseyjhand.com/mcp Streamable HTTP
Paquets
@cyanheads/eia-energy-mcp-server 0.6.0 npm stdio
@cyanheads/eia-energy-mcp-server 0.6.0 npm Streamable HTTP
Outils
6
Catégories
—
Dernière mise à jour
15 nov. 2026
Publication
15 nov. 2026

Auteur vérifié et popularité

Fiche pas encore revendiquée. C’est votre projet ? Revendiquez-la

Pas « Populaire » pour l’instant Retiré tout seul dès que les critères ne sont plus remplis.

  • Visiteurs distincts de la fiche sur 30 jours : 0 (il en faut 30) pas encore
  • ou configurations d’installation copiées sur 30 jours : 0 (il en faut 5) pas encore
  • et un test réussi de moins de 14 jours : testé le 28 nov. 2026 rempli

Badge à jour tout seul. Toujours « testé le … », jamais « certifié ». Comment ça marche

MarkdownREADME.md
[![Statut sur L’Atlas](https://latlas.dev/badge/statut/mcp/io.github.cyanheads/eia-energy-mcp-server.svg)](https://latlas.dev/mcp/io.github.cyanheads/eia-energy-mcp-server)
HTML
<a href="https://latlas.dev/mcp/io.github.cyanheads/eia-energy-mcp-server"><img src="https://latlas.dev/badge/statut/mcp/io.github.cyanheads/eia-energy-mcp-server.svg" alt="Statut sur L’Atlas" height="20"></a>

Badge pour votre README

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/io.github.cyanheads/eia-energy-mcp-server.svg)](https://latlas.dev/mcp/io.github.cyanheads/eia-energy-mcp-server)
HTML
<a href="https://latlas.dev/mcp/io.github.cyanheads/eia-energy-mcp-server"><img src="https://latlas.dev/badge/fiche/io.github.cyanheads/eia-energy-mcp-server.svg" alt="Référencé sur L’Atlas" height="20"></a>

Nos tests

Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode

Adresse
https://eia-energy.caseyjhand.com/mcp
Dernier résultat
OK 28 nov. 2026, 10:22
Temps de réponse
1 545 ms (initialize + tools/list)
Version du protocole
2025-11-25
Nom annoncé
eia-energy-mcp-server 0.6.0
Outils
6

Historique

DateRésultatRéponseOutils
28 nov. 2026, 10:22OK1 545 ms6

Outils exposés (6, réponse à tools/list, 28 nov. 2026)

eia_browse_routes

Browse EIA Routes

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 queryable endpoints; non-leaf routes have children to browse. When isLeaf is true on the browsed path itself, switch to eia_describe_route. The first call after server start waits up to 20s for the route tree to warm, then answers from EIA directly.

ParamètreTypeRequisDescription
pathstringnonRoute path to browse (e.g. "electricity", "petroleum/pri"). Omit for root. Whitespace and slashes are normalized, then one complete leading v2 segment is removed: "/v2/electricity/retail-sales/" resolves to "electricity/retail-sales", and "/v2/" to root. A path naming an EIA endpoint is refused: pa…

eia_describe_route

Describe EIA Route

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 window of its values with value_count and values_truncated alongside; pass facet and values_offset to page through the rest of one facet. To find a value by name in a large facet (plant, entity, and mine IDs run to thousands), pass values_query: each facet keeps only the values whose id, name, or alias contains it — on a balancing-authority facet, also a value whose ISO/RTO acronym does, so "ERCOT" finds ERCO — values_matched counts them, and values_offset pages the matches. A values_offset past the last value of a facet returns an empty window for it and a notice naming the count to page against. Facet values are fetched from separate EIA endpoints, merged, and cached per route for 24 hours, after which the next call fetches the route again; a facet whose values EIA did not return is left out of facets, named in unavailable_facets, and fetched again by the next call. When a refresh fails, the cached values are served instead, with a notice naming when they were fetched.

ParamètreTypeRequisDescription
routestringouiLeaf route path (e.g. "electricity/retail-sales", "steo"). Discoverable via eia_browse_routes or eia_search_routes. Whitespace and slashes are normalized, then one complete leading v2 segment is removed: "/v2/electricity/retail-sales/" resolves to "electricity/retail-sales". A path naming an EIA en…
facetstringnonRestrict the response to one facet by ID (e.g. "stateid"). Use with values_offset to page a facet whose values were truncated, or with values_query to find a value in it. Omit to get every facet.
values_offsetintegernonIndex of the first facet value to return, applied to every facet in the response. Use the value named in a truncation hint to continue past the cap. With values_query, indexes the matching values.
values_querystringnonKeep only the facet values whose id, name, or alias contains this text, ignoring case (e.g. "palo verde" on plantCode). On the balancing-authority facets of electricity routes (respondent, fromba, toba, parent, balancing_authority_code), a value also matches when its ISO/RTO acronym contains the te…

eia_search_routes

Search EIA Routes

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 its column — "nameplate capacity", "gross generation" — to the route that publishes it. 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 that data even when no single entry reads like the whole phrase. A query spelling the end of a route path in words — "retail sales" for electricity/retail-sales — ranks that route first. STEO, SEDS, and Monthly Energy Review (total-energy) series names are indexed so queries like "crude oil production forecast", "motor gasoline total consumption", or "primary energy consumption total" also resolve — a series also by its ID, such as "PATCPUSX", "MGTCB", or "TETCBUS" — and so are facet values, so a fuel type or sector term like "wind" or "anthracite coal" resolves to the route that exposes it, with filter_hint carrying the filter to pass on. That includes the series and product names of the daily and weekly petroleum and natural-gas routes and the RTO balancing authorities, so benchmarks like "Henry Hub", "WTI crude spot price", "Cushing", or "Electric Reliability Council of Texas" resolve before any describe; a balancing aut…

ParamètreTypeRequisDescription
querystringouiFree-text search terms to match against route names and descriptions, or a legacy APIv1 series ID (e.g. "PET.RWTC.W": three or more dot-separated segments ending in a frequency code A, Q, M, W, D, H, HL, or 4; any case). Leading and trailing whitespace is ignored, and only the first 256 characters…
limitnumbernonMaximum results to return. Default 10; a larger value returns at most 30 and says so. truncated says whether more matches exist.

eia_query_route

Query EIA Route Data

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 numeric values as strings, e.g. "9.13"); cast to DOUBLE in SQL when arithmetic is needed. Returns a preview inline and stages nothing by default — one upstream request, whatever total says. Pass stage: true to also page past the preview and stage the accumulated set as a DataCanvas table, then pass the returned dataset name to eia_dataframe_describe for its column names and eia_dataframe_query for SQL. Every dataset a tenant stages lands in the same canvas, so tables from different routes cross-join by name with nothing to thread between calls.

ParamètreTypeRequisDescription
routestringouiLeaf route path (e.g. "electricity/retail-sales", "steo"). Discoverable via eia_browse_routes or eia_search_routes. Whitespace and slashes are normalized, then one complete leading v2 segment is removed: "/v2/electricity/retail-sales/" resolves to "electricity/retail-sales". A path naming an EIA en…
filtersobjectnonFacet filters keyed by facet ID (e.g. { "stateid": "TX", "sectorid": ["RES", "COM"] }). Use the facets[].id values returned by eia_describe_route as keys here. Every value travels in the request URI, which EIA caps at about 8 KB — a few hundred values across all filters; split a longer list across…
columnsarray<string>nonData column IDs to return (reduces payload). Defaults to all. IDs discoverable via eia_describe_route data_columns[].id. Every row also carries period and each facet ID whatever this lists, so naming those here is unnecessary and they are dropped from the request.
frequencystringnonAggregation frequency ID (e.g. "monthly", "annual"). Defaults to route default. Valid IDs from eia_describe_route.
startstringnonPeriod start in the route date format (e.g. "2020-01" for monthly, "2020" for annual). Format from eia_describe_route. EIA reads a bound as the period of the effective frequency containing its first day, so a coarser bound selects that one period ("2020" is 2020-01 at monthly, "2020-Q4" is 2020-10)…
endstringnonPeriod end, read the same way as start: a coarser end selects only its first period, so "2020" ends at 2020-01 at monthly — use "2020-12" to include the whole year. At hourly a date-only end covers its whole day.
sortarray<object>nonResult ordering.
offsetintegernonRow offset into the matching set (default 0). An offset at or beyond total returns zero rows.
lengthnumbernonRows per page. Default 25; a larger value returns at most 5,000 and says so. With stage: true, staging is not bounded by this — it pages past the page on its own.
stagebooleannonStage the matching rows as a DataCanvas table for SQL (default false). Off, the call makes one upstream request and returns the preview alone. On, the service pages past the preview up to the staging row cap this server sets and registers the accumulated rows, starting at offset, returning the hand…

eia_dataframe_describe

Describe EIA Dataframes

List canvas dataframes (df_ ) 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 specific name to inspect one dataframe; omit to list all active dataframes for this tenant. A name that is not staged comes back as found=false alongside the handles that are, never as an empty list. Listing is not use: only an eia_dataframe_query statement naming a dataframe extends its expiry, so a dataframe polled with this tool and never queried still lapses on schedule.

ParamètreTypeRequisDescription
namestringnondf_ handle to describe a single dataframe. Omit to list all active dataframes.

eia_dataframe_query

Query EIA Dataframes

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 by the df_ handles returned by eia_query_route or listed by eia_dataframe_describe. Read-only: writes, DDL, DROP, COPY, PRAGMA, ATTACH, file reads (read_* functions or a quoted file path), engine-setting functions (current_setting), and SQL built from a string (query_table) are rejected. System catalogs are denied: information_schema, pg_catalog, and the DuckDB internal metadata views (duckdb_tables, duckdb_columns, and the other duckdb_ views; sqlite_master and the other sqlite_ views; pragma_database_list; pg_class, pg_tables, and the other pg_ views) are refused as whole words anywhere in the statement outside string literals and comments, column aliases and CTE names included, as is any duckdb_ () call. A register_as name spelled like one of them is refused, since no statement could select from a table so named. EIA data values are VARCHAR — use CAST(col AS DOUBLE) for arithmetic and aggregation. Optional register_as chains results as a new dataframe with a fresh expiry. Every dataframe named in the statement has its expiry extended by the query. Inline rows stop at preview; a result cut short says how to reach the rest, including paging a register_as table with LIMIT/OFFSET and no ORDER BY, which…

ParamètreTypeRequisDescription
sqlstringouiSingle-statement SELECT against df_ tables. EIA data columns are VARCHAR — use CAST(col AS DOUBLE) for arithmetic. Example: SELECT period, CAST(value AS DOUBLE) AS val FROM df_XXXXX ORDER BY period
register_asstringnonWhen set, persist the result as a new dataframe with a fresh expiry. Use to chain analyses without re-running upstream queries. The name must be unused — reusing a staged name is rejected, and the fix is a different name, not dropping the existing dataframe. eia_dataframe_describe lists the names a…
previewnumbernonRows to include in the immediate response. Default 25; a larger value returns at most row_limit and says so. 0 returns none, useful when chaining via register_as.
row_limitnumbernonHard cap on rows materialized. Default 1,000; a larger value returns at most 10,000 and says so. Rows past the cap are dropped without being counted — the response then carries truncated: true and a totalRows equal to the cap rather than a true total. Pass register_as to materialize the whole resul…

Compatibilité clients

Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.

ClientTransports documentésCe serveurSource
Claude Codestdio Streamable HTTP SSEtransport acceptédoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport acceptédoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport acceptédoc
Cursorstdio Streamable HTTP SSEtransport acceptédoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport acceptédoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport acceptédoc
Gemini CLIstdio Streamable HTTP SSEtransport acceptédoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport acceptédoc

Configs prêtes à copier

Adresse distante utilisée : https://eia-energy.caseyjhand.com/mcp. Formats repris de la documentation de chaque client.

Claude Code
claude mcp add --transport http eia-energy-mcp-server https://eia-energy.caseyjhand.com/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : eia-energy-mcp-server ; URL : https://eia-energy.caseyjhand.com/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : eia-energy-mcp-server ; Server URL : https://eia-energy.caseyjhand.com/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "eia-energy-mcp-server": {
      "url": "https://eia-energy.caseyjhand.com/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "eia-energy-mcp-server": {
      "type": "http",
      "url": "https://eia-energy.caseyjhand.com/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "eia-energy-mcp-server": {
      "url": "https://eia-energy.caseyjhand.com/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "eia-energy-mcp-server": {
      "httpUrl": "https://eia-energy.caseyjhand.com/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.eia-energy-mcp-server]
url = "https://eia-energy.caseyjhand.com/mcp"

Citer cette source

Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.

eia-energy-mcp-server · L’Atlas · Test du

Markdown
[eia-energy-mcp-server — L’Atlas](https://latlas.dev/mcp/io.github.cyanheads/eia-energy-mcp-server)
Méthode et limites des tests

Source : Registre officiel MCP · relevé le 2 déc. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.