
Clarigrid
energy.clarigrid由 clarigrid.energy 發布官方發布者v0.2.0更新於 Oct 24, 2026
Read-only electricity, gas, and weather data with structured provenance and units.
概覽
遠端 MCP 端點,讓助理以唯讀方式取得歐洲與美國電力、天然氣與天氣資料,並附上來源與單位資訊。
- 可以做什麼
- 依區域取得電價、負載、發電量與預測資料
- 讀取跨境潮流、裝置容量、頻率、再生能源占比與碳排放強度
- 讀取天然氣流量、容量、需求、儲氣與 LNG 庫存
- 依座標或區域取得天氣觀測與預報
- 資料具備一致單位、含時區的時間戳記與結構化來源資訊
- 適用情境
- 適合需要回答歐洲或美國電力與天然氣市場、電網運轉、碳排放強度或天氣相關能源分析問題的情境,不必自行建置資料介接。
- 執行需求
- 透過 streamable HTTP 存取的遠端 MCP 端點,需要 OAuth 驗證。清單未宣告環境變數或請求標頭。README 介紹的是 Python SDK,其中受金鑰保護的來源需使用上游金鑰或 ClarigGrid 帳戶金鑰,但託管端點本身的憑證需求未在此說明。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Clarigrid,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/energy.clarigrid%2Fclarigrid/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"clarigrid": {
"type": "http",
"url": "https://mcp.clarigrid.energy/mcp"
}
}
}README
Clarigrid
Unified Python SDK for European and U.S. energy market data.
What it is
Clarigrid provides a single, stable Python interface to access and normalise European and U.S. energy market data from multiple sources. All data comes back as timezone-aware pandas DataFrames with consistent column names and units.
Built-in free providers (no API key required) include Energy-Charts (Europe), Energinet (DK1/DK2), SMARD (DE), Elia (BE), NESO (GB), Elexon/BMRS (GB), ENTSOG (EU gas), and Gas Networks Ireland. Fingrid (FI), GIE AGSI/ALSI (European gas), and TenneT (NL) are also built in and use free API keys. For the United States, CAISO OASIS and NYISO provide no-auth market and system data. EIA-930 provides nationwide hourly balancing-authority load, forecasts, fuel generation, and physical interchange with a free EIA key. Global historical meteorology and solar data are available from NASA POWER without an API key; official U.S. hourly forecasts are available from NOAA/NWS. ENTSO-E and other key-protected sources can be configured as described in API key setup below.
Install
For the interactive setup wizard and CLI tools:
Quick start
API key setup
Some providers (ENTSO-E, TenneT) require a personal API key issued by the upstream data source. Clarigrid supports two ways to supply these keys.
Option 1 — ClarigGrid account (recommended)
Store all your provider keys in one place at clarigrid.energy/saved. The SDK then fetches them automatically using a single ClarigGrid API key.
First-time setup (interactive):
Or use the CLI:
Headless / CI environments: set one environment variable and no browser is ever needed:
The SDK uses CLARIGRID_API_KEY to fetch all your stored provider keys
from clarigrid.energy on the first connect() call of each session.
How to get a CLARIGRID_API_KEY:
- Log in at clarigrid.energy
- Add your provider API keys at clarigrid.energy/saved
- Run
cg.connect("entsoe")once in an interactive terminal — the browser flow logs you in and stores yourCLARIGRID_API_KEYlocally.
Option 2 — Manual key entry (no account needed)
If you prefer not to use a clarigrid.energy account, set provider keys
directly. Keys are stored in ~/.config/clarigrid/.env (permissions: 600).
Environment variable (recommended for CI):
Config file — add to ~/.config/clarigrid/.env:
Zone routing
Each call to cg.connect() registers a provider and its capability-specific
zone coverage in
an internal router. When you call get_prices("DE"), the router picks the
best connected provider for that zone and dataset automatically.
Multiple connect() calls accumulate coverage. If two providers both cover
the same zone/dataset pair, the later connect() call wins.
If no connected provider covers the requested zone/dataset, a helpful error is raised:
To bypass routing and force a specific provider:
Output format
All functions return a pandas.DataFrame with:
Price currency is stored in df.attrs["currency"] (for example "EUR",
"GBP", or "USD"):
European zone codes follow the ENTSO-E bidding zone convention (BE, DE_LU,
FR ...). U.S. electricity uses EIA/NERC balancing-authority codes (CISO,
ERCO, PJM, NYIS) and explicit market hubs (CISO_NP15). Common aliases
(DE → DE_LU, CAISO → CISO, ERCOT → ERCO) resolve automatically.
Timezone
Data is always fetched and cached as UTC. Timezone conversion is applied at the output boundary only.
Caching
Responses are cached locally at ~/.clarigrid/cache/ as Parquet files
(requires pip install clarigrid[cache]), keyed by provider + dataset +
zone + date range. Historical data is cached indefinitely; live data
expires after 1 hour by default.
Disable caching per call:
CLI reference
Requires pip install clarigrid[auth].
API reference
All data functions accept:
source="name"— override the router for this call onlyuse_cache=False— bypass the local cache
Built-in providers
MET Norway uses the official
Locationforecast 2.0
compact forecast. Pass a global point as lat,lon and optionally an integer
altitude in metres. Coordinates are rounded to the upstream four-decimal
limit, results are normalized to UTC, and the SDK supplies the identifying
User-Agent required by MET Norway. The endpoint serves current forecasts only;
historical model data is not fetched by this provider. Reuse requires
MET Norway attribution.
EirGrid uses the official Smart Grid Dashboard
JSON feed for 15-minute Republic of Ireland and Northern Ireland system demand.
The feed is keyless, timestamps are normalized from the dashboard's UTC values,
and reuse requires the attribution Supported by EirGrid Group Data under the
EirGrid Group Open Data Licence.
SFOE uses the Swiss Federal Office of Energy's versioned
Energy Dashboard public API
for the SDSC national electricity-consumption forecast. Source values are daily
GWh and are exposed as DST-aware daily-average MW in load_forecast_min_mw,
load_forecast_mw, and load_forecast_max_mw. Reuse is commercial and
non-commercial with mandatory source attribution under the
opendata.swiss terms.
Keys for entsoe and tennet are issued by the respective upstream provider.
Store them via a clarigrid.energy account or
set them manually as described in API key setup.
Architecture
Plugin system
External providers subclass DataProvider, declare their zones() and
capabilities(), and self-register on import. Providers whose capabilities
have different geographical coverage can additionally override
capability_zones():
After cg.connect("nordpool"), calls to cg.get_prices("NO1", …) route
to this provider automatically.
Development
License
Apache 2.0 — see LICENSE.
Copyright (c) 2026 Alexander Hoogsteyn.
來源:README.md,提交 8b35102
工具
0版本歷史
1- v0.2.0最新Sep 16, 2026
評分
已滿足適用檢查項的 75%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。