Read-only electricity, gas, and weather data with structured provenance and units.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Unified Python SDK for European and U.S. energy market data.
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), and ENTSOG (EU gas). 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.
For the interactive setup wizard and CLI tools:
Some providers (ENTSO-E, TenneT) require a personal API key issued by the upstream data source. Clarigrid supports two ways to supply these keys.
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:
cg.connect("entsoe") once in an interactive terminal β the browser
flow logs you in and stores your CLARIGRID_API_KEY locally.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:
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:
All functions return a pandas.DataFrame with:
| Property | Value |
|---|---|
| Index | DatetimeIndex named utc_time, tz-aware |
| Timezone | UTC by default; change with cg.set_timezone() |
| Price column | price_mwh |
| Load column | load_mw |
| Generation columns | fuel-type specific, e.g. solar_mw, wind_onshore_mw, nuclear_mw |
| Gas flow column | flow_kwh_d |
| Gas storage | inventory in *_mwh; daily rates in *_mwh_d |
| LNG inventory | *_thousand_m3; send-out in *_mwh_d |
| Cross-border columns | signed MW; imports positive, exports negative |
| Installed capacity | *_capacity_mw; storage energy uses *_energy_mwh |
| Frequency | frequency_hz |
| Renewable shares | *_pct |
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.
Data is always fetched and cached as UTC. Timezone conversion is applied at the output boundary only.
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:
Requires pip install clarigrid[auth].
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/clarigrid)<a href="https://allmcps.com/mcp/clarigrid"><img src="https://allmcps.com/api/badge/clarigrid?style=directory" alt="Clarigrid on AllMCPs" /></a>