Command Palette

Search for a command to run...

UnylyUnyly
Browse all

gridcarbon/clients

FreeNot checked

Grid carbon intensity (gCO2eq/kWh) for 45 electricity zones: 33 European bidding zones (ENTSO-E), 11 US balancing authorities (EIA-930), and Great Britain (NESO

GitHubEmbed

About

Grid carbon intensity (gCO2eq/kWh) for 45 electricity zones: 33 European bidding zones (ENTSO-E), 11 US balancing authorities (EIA-930), and Great Britain (NESO). Tools: getcarbonintensity, getintensityhistory, listzones, comparezones. Every response carries the interval timestamp and how stale the reading is, so an agent can tell a current value from an hours-old one. Pre-alpha; history currently reaches back about three months. No API key or account — npx -y gridcarbon-mcp.

README

Official client libraries for the gridcarbon API — hourly electricity grid carbon intensity in gCO2eq/kWh for 45 zones across Europe, the United States and Great Britain.

No API key. No signup. Open CORS.

curl -s "https://api.gridcarbon.dev/v1/intensity/latest?zone=FR"
{"unit":"gCO2eq/kWh","data":[{"zone":"FR","ts":"2026-08-26T01:00:00Z","gco2eq_kwh":49,"method":"computed:v1"}]}
Package Registry Install
python/ PyPI gridcarbon pip install gridcarbon
typescript/ npm gridcarbon npm install gridcarbon
mcp/ npm gridcarbon-mcp npx gridcarbon-mcp

Both SDKs have zero runtime dependencies — the Python one uses urllib, the TypeScript one uses global fetch. The MCP server depends on the official MCP SDK; that cost is documented in its README.

Two things to know before you use the numbers

Great Britain is measured on a different basis. GB figures come from NESO and use operational (combustion-only) emission factors — wind, solar, nuclear and hydro count as zero. Every other zone uses IPCC AR5 lifecycle factors, where those sources are not zero. GB is therefore structurally lower than a lifecycle number for the same physical grid. Do not rank GB against the other 44 zones. Both SDKs expose this as is_lifecycle / isLifecycle on every reading, and the MCP server excludes GB from rankings with an explanation rather than silently mixing bases.

"Latest" means newest published, not now. European zones typically run 2–4 hours behind and US zones 11–28 hours behind, because that is when the upstream operators publish. Every reading carries its interval start; use it rather than assuming the value is current.

The full method, the complete emission factor table, and a candid list of known biases are at gridcarbon.dev/methodology.

Status

Pre-alpha. History is uneven by region: Great Britain from 2017-09, the 11 US zones from 2019-01, and the 33 European zones from 2024-08 (two years). It grows hourly. One limit is configured: 60 requests per minute per IP, loosely enforced — Cloudflare's is deliberately permissive and eventually consistent — each isolate counts separately — so bursts well above that usually succeed. Measured 2026-09-01: 150 requests in 14 seconds from one IP, no 429. Treat 60/min as the intent, not the ceiling, and do not build against the headroom. Please do not poll faster than every five minutes — that is the Cache-Control max-age on /v1/intensity/latest, and the data only changes hourly. Breaking changes are possible before 1.0; they will be noted in each package's changelog.

Attribution

The data these clients retrieve is derived from:

  • ENTSO-E Transparency Platform — European generation by production type
  • U.S. Energy Information Administration (EIA) — EIA-930 hourly generation by fuel type
  • NESO Carbon Intensity API — Great Britain

gridcarbon is not endorsed by, sponsored by, or affiliated with any of these organisations. If you redistribute or display these values, carry the same attribution.

Licence

Client code in this repository: MIT. The derived intensity values served by the API: CC BY 4.0.

The data terms, the required attribution notice, the upstream sources and their non-endorsement statements are all in DATA-LICENSE.md.

Citation

A fixed, citable snapshot of the data (1,460,467 hourly values to 2026-09-04) is archived on Zenodo: doi:10.5281/zenodo.22299989 (CC BY 4.0); the concept DOI 10.5281/zenodo.22299988 always resolves to the latest snapshot. Machine-readable metadata is in CITATION.cff at the repository root.

Contributing

Corrections to the method are genuinely welcome — especially from people who work with grid data professionally. The emission factors and their known biases are documented openly precisely so they can be argued with.

Issues and pull requests are the best channel. This repository holds the client libraries; the API backend is not open source.

from github.com/gridcarbon/clients

Installing gridcarbon/clients

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/gridcarbon/clients

FAQ

Is gridcarbon/clients MCP free?

Yes, gridcarbon/clients MCP is free — one-click install via Unyly at no cost.

Does gridcarbon/clients need an API key?

No, gridcarbon/clients runs without API keys or environment variables.

Is gridcarbon/clients hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install gridcarbon/clients in Claude Desktop, Claude Code or Cursor?

Open gridcarbon/clients on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare gridcarbon/clients with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs