Eco Router MCP Server
Rank AWS, Google Cloud and Azure regions by grid carbon intensity and latency.
Eco Router scores 62 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 3 tools. Filed under Cloud. GitHub shows 1 stars. Package registries report about 51 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
62 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Where the 62 comes from
22 + 15 + 1 + 10 + 4 + 10 = 62. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "stevensu04-eco-router-mcp": { "command": "npx", "args": [ "-y", "eco-router-mcp@0.1.1" ], "env": { "ELECTRICITY_MAPS_API_TOKEN": "YOUR_ELECTRICITY_MAPS_API_TOKEN" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
ELECTRICITY_MAPS_API_TOKENSecret | Optional | Optional Electricity Maps API token for live grid data. Without it, annual averages are used. |
Tools3Tool docs quality grade B
All capabilitiesFor 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 ELECTRICITYMAPSAPITOKEN with forecast access.
list_regionstoolLists cloud regions and the grid zone each one draws power from. Filter by provider (aws, gcp, azure) or country.
rank_regionstoolRanks regions by grid carbon intensity, optionally balanced against estimated latency from an origin. Supports providers, countries, maxLatencyMs, maxCarbonIntensity, carbonWeight, energyKwh and limit.
About
Eco Router MCP
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.
Install
Requires Node.js 22 or later.
Claude Code
claude mcp add eco-router -- npx -y eco-router-mcp
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"eco-router": {
"command": "npx",
"args": ["-y", "eco-router-mcp"],
"env": { "ELECTRICITY_MAPS_API_TOKEN": "optional" }
}
}
}
Live grid data (optional)
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.
Tools
| 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:
{
"countries": ["EU"],
"origin": { "lat": 50.11, "lon": 8.68 },
"maxLatencyMs": 40,
"energyKwh": 500
}
Example request to find_clean_window for a 6-hour job that must finish within
two days:
{
"countries": ["DE", "FR", "SE"],
"durationHours": 6,
"withinHours": 48,
"energyKwh": 500,
"timezone": "Australia/Brisbane"
}
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.
Roadmap
- MCP server skeleton over stdio
- Full AWS, Google Cloud and Azure region dataset with sources
- Carbon data: published annual averages by default, live data with an optional Electricity Maps API token
-
rank_regions: rank regions by carbon intensity and estimated latency, with hard limits such as allowed countries or a carbon ceiling - US grid-level annual data without a token (EPA eGRID)
- Canadian provincial annual data without a token (National Inventory Report)
- Grid-level annual data for Australia
- Time shifting: suggest when to run, using carbon forecasts
- Publish to npm and the MCP Registry
Development
npm install
npm test # unit tests, no network needed
npm run typecheck
npm run build # compiles to dist/
npm run dev # runs the server over stdio from source
npm run update:baseline # refreshes national averages from Ember
npm run update:egrid # refreshes US grid averages from EPA eGRID
npm run update:canada # refreshes Canadian provincial averages
Data sources
- Annual carbon intensity: Ember, Yearly Electricity Data, licensed under CC BY 4.0.
- US grid generation mix: US EPA eGRID (public domain), converted to lifecycle emissions with Ember's US factors.
- Canadian provincial generation mix: Environment and Climate Change Canada, National Inventory Report, Annex 7, converted to lifecycle emissions with Ember's Canadian factors. Contains information licensed under the Open Government Licence – Canada.
- Live carbon intensity (optional): Source: ElectricityMaps.com, using your own API token and subject to the terms of your plan.
- Region lists: official AWS, Google Cloud and Azure documentation. See docs/regions.md.
Contributing
Corrections to region data are especially welcome. See CONTRIBUTING.md to get started.
Credits
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).
License
Frequently asked questions
What is Eco Router MCP Server?
Rank AWS, Google Cloud and Azure regions by grid carbon intensity and latency.
How do I install Eco Router MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Eco Router MCP Server runs locally from the npm package eco-router-mcp with the command npx -y eco-router-mcp@0.1.1.
Is Eco Router MCP Server free and open source?
Yes. Eco Router MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Eco Router MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Eco Router MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Eco Router MCP Server provide?
Eco Router MCP Server provides 3 tools: find_clean_window, list_regions, and rank_regions. See the full tool list for descriptions and parameters.
How is Eco Router MCP Server's trust score calculated?
Eco Router MCP Server scores 62 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.