The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Eco Router listing page.
An MCP server that helps AI agents pick the lowest-carbon cloud region for a workload.
The same GPU job can emit several times more CO₂ depending on which grid powers the datacenter. Eco Router maps AWS, Google Cloud and Azure regions to the electricity grids they draw from, so an agent can ask:
"Where should I run this training job? Data must stay in the EU and latency should be under 150 ms."
and get back a ranked shortlist with the reasoning behind it.
Carbon figures are location-based grid averages. They describe the grid that supplies each region, not the renewable energy a provider buys, so regions in the same grid get the same value. See what the numbers represent.
Status: early release (v0.1). Corrections and feedback are welcome in issues. See Roadmap.
Requires Node.js 22 or later.
Claude Code
Claude Desktop (claude_desktop_config.json)
Out of the box, Eco Router uses annual averages (per grid in the US, per
province in Canada, per country elsewhere), so it works with no setup. For hourly, grid-level data, set ELECTRICITY_MAPS_API_TOKEN to your
own Electricity Maps API token. Zones your
plan does not cover fall back to the annual average automatically.
Your use of live data is governed by your own Electricity Maps plan and its terms. At the time of writing, Electricity Maps offers free access for academic and personal non-commercial use, and a 14-day trial for commercial evaluation. Commercial use requires a paid license. Eco Router does not provide or share any token.
| Tool | What it does |
|---|---|
rank_regions | Ranks regions by grid carbon intensity, optionally balanced against estimated latency from an origin. Supports providers, countries, maxLatencyMs, maxCarbonIntensity, carbonWeight, energyKwh and limit. |
find_clean_window | For flexible batch jobs, finds the start time in the next 72 hours with the lowest forecast carbon intensity in each grid zone, and the savings compared with starting now. Requires ELECTRICITY_MAPS_API_TOKEN with forecast access. |
list_regions | Lists cloud regions and the grid zone each one draws power from. Filter by provider (aws, gcp, azure) or country. |
countries accepts ISO 3166-1 alpha-2 codes and the groups EU and EEA.
Example request to rank_regions:
Example request to find_clean_window for a 6-hour job that must finish within
two days:
Scoring, data sources and their limits are explained in docs/methodology.md.
How regions are mapped to grids, and which mappings rest on assumptions, is documented in docs/regions.md.
rank_regions: rank regions by carbon intensity and estimated latency,
with hard limits such as allowed countries or a carbon ceilingCorrections to region data are especially welcome. See CONTRIBUTING.md to get started.
Eco Router started as a hackathon project. Thanks to the original team for the scoring design this project builds on: Chris (@chrislee021225), Joli (@L-Joli), Bob (@Loic0927), Irene Tsai (@YunTong09) and Steven Su (@stevensu04).