npm gridcarbon-mcpstdioMITupdated 8d ago
Official client libraries for the gridcarbon API — hourly electricity grid carbon intensity in gCO 2 eq/kWh for 45 zones across Europe, the United States and Great Britain.
What can you do with gridcarbon mcp?
gridcarbon clients
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. The archive starts 2026-08-21 and grows hourly. No rate limits are enforced
yet — please do not poll faster than every five minutes, which is the edge-cache TTL on
/v1/intensity/latest. 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.
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.
Install
Add gridcarbon mcp to your client. Pick the one you use.
claude mcp add gridcarbon-mcp -- npx -y gridcarbon-mcpcodex mcp add gridcarbon-mcp -- npx -y gridcarbon-mcpamp mcp add gridcarbon-mcp -- npx -y gridcarbon-mcp{
"mcpServers": {
"gridcarbon-mcp": {
"command": "npx",
"args": [
"-y",
"gridcarbon-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"gridcarbon-mcp": {
"command": "npx",
"args": [
"-y",
"gridcarbon-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"gridcarbon-mcp","command":"npx","args":["-y","gridcarbon-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"gridcarbon-mcp": {
"command": "npx",
"args": [
"-y",
"gridcarbon-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"gridcarbon-mcp": {
"command": "npx",
"args": [
"-y",
"gridcarbon-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"gridcarbon-mcp": {
"command": "npx",
"args": [
"-y",
"gridcarbon-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"gridcarbon-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"gridcarbon-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"gridcarbon-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"gridcarbon-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y gridcarbon-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation17/25
- Maintenance19/25
- Trust16/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 1 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 0.1.2Latest | Aug 31, 2026 |
| 0.1.1 | Aug 31, 2026 |