eia
EIA — U.S. Energy Information Administration
美国官方能源数据:石油、天然气、电力、煤炭、可再生能源、核能、总能源、国际能源。生产、消费、价格、储量、进出口——涵盖国家、州以及(电力)电厂层面。免费,需要免费API密钥。
属于 Pipeworx 的一部分——一个将AI代理连接到1476+实时数据源的MCP网关。
为什么这对AI代理很重要
对于能源问题——"天然气价格是多少?"、"太阳能发电量有多少?"、"汽油价格在上涨吗?"——EIA是权威来源。政府级数据,无商业加价。可与 FRED 搭配获取能源相关的宏观指标,与 NOAA 搭配获取与能源相关的天气背景。
常见流程:
现货价格。 "WTI原油现在交易价是多少?" → 原油现货价格序列。
州电力结构。 "加州电力中太阳能占比多少?" → 按来源划分的州级发电量。
零售汽油。 "上周每加仑平均价格?" → 每周零售价格。
天然气储存。 "储存中的工作气量是多少?" → 每周EIA-915报告。
Related MCP server: EIA MCP Server
认证
EIA开放数据API需要从 https://www.eia.gov/opendata/register.php 获取免费密钥。通过 _apiKey 传递。速率限制宽松。
主要数据集
数据集 | 频率 | 用途 |
石油及其他液体燃料 | 每周/每月 | 原油价格、汽油、馏分油、OPEC |
天然气 | 每周储存,每月生产 | 定价、储存、消费 |
电力 | 每月 | 按燃料发电、各州零售电价 |
煤炭 | 每月/每年 | 开采、价格、出口 |
可再生能源与替代燃料 | 每月 | 太阳能、风能、生物燃料、电动汽车充电 |
总能源/年度能源展望 | 年度 | 长期预测 |
系列ID
EIA系列遵循 dataset_id.frequency.region.product 模式。示例:
PET.RWTC.D— WTI原油,每日NG.RNGC1.D— 天然气Henry Hub,每日ELEC.GEN.SUN-CA-99.M— 加州太阳能发电,每月PET.EMM_EPMR_PTE_NUS_DPG.W— 美国每周平均常规汽油价格
使用 eia_search 工具查找ID,而不是手动构造。
常见陷阱
报告滞后时间不同。 石油价格每周更新,滞后约~3天。电力发电量每月更新,滞后约~2个月。不要假设各数据集之间的"当前"数据一致。
热含量与体积。 天然气以BCF(十亿立方英尺)、MMcf和能量单位(BTU、MMBtu)报告。跨燃料比较时换算很重要。
净发电量与总发电量。 电厂发电量有细微的定义差异。"净"发电量减去电厂内部使用。EIA主要发布净发电量。不要重复计算。
州电力按原动机分类。 EIA的州级结构按原动机(蒸汽轮机、联合循环等)和燃料分类——同一电厂可能有多种分类。请根据问题所需的层级进行汇总。
预测是情景。 AEO(年度能源展望)是参考案例预测加上其他案例。不要将参考案例视为"将会发生什么"。
没有市场实时价格。 EIA现货价格是官方收盘价;对于日内市场价格,你需要商业数据源,而不是EIA。
快速开始
添加到你的MCP客户端(Claude Desktop、Cursor、Windsurf等):
{
"mcpServers": {
"eia": {
"url": "https://gateway.pipeworx.io/eia/mcp"
}
}
}此端点实际提供什么
tools/list 位于 https://gateway.pipeworx.io/eia/mcp,返回上表中的工具 以及共享的Pipeworx元工具 — ask_pipeworx、discover_tools、search_within、remember/recall 以及网关范围内的其余工具。因此你看到的工具数量大于此表:单包端点目前列出约30个共享工具以及该包自身的工具。连接的 initialize 响应说明了其确切范围,并且是给定日期的权威答案。
这是有意为之,并非偶然的多路复用。元工具让受限连接能够回答此包未涵盖的问题——通过 ask_pipeworx,它会在整个目录中路由——而无需你添加第二个MCP服务器。目前无法在没有它们的情况下挂载包端点;如果额外的模式消耗的上下文比路由带来的价值更多,请一次性连接到完整网关,而不是连接多个包端点。
或者连接到完整的Pipeworx网关,直接列出每个包的工具,而不仅仅是这一个的:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}两个URL都到达同一个网关和相同的1476+数据源。唯一的区别是哪个包的工具被直接列出;ask_pipeworx 从任何一个都可以访问所有工具。
与 ask_pipeworx 一起使用
无需直接调用工具,你可以用纯英语提问——这在上面的包端点和完整网关上都可以使用:
ask_pipeworx({ question: "your question about Eia data" })网关会自动选择正确的工具并填充参数。
更多
许可证
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.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides access to comprehensive U.S. and international energy data from the EIA API, including electricity, natural gas, petroleum, coal, renewables, CO2 emissions, and energy forecasts.
- FlicenseAqualityDmaintenanceProvides 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.146
- AlicenseNot gradedqualityDmaintenanceProvides AI agents with structured access to the U.S. EIA Open Data API for energy data including power plants, operations, fuel prices, projections, and state CO2 emissions.MIT
- AlicenseNot gradedqualityCmaintenanceEnables real-time access to US electricity generation, fuel mix, and demand data through natural language queries.8MIT
Related MCP Connectors
Browse and query the EIA API v2 — electricity, petroleum, natural gas, coal, forecasts via MCP.
US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.
Access US federal award, recipient, agency, and spending analytics data from USAspending.gov.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/pipeworx-io/mcp-eia'
If you have feedback or need assistance with the MCP directory API, please join our Discord server