Eco Router

io.github.stevensu04Published by GitHub account stevensu04v0.1.1Updated Oct 24, 2026

Rank AWS, Google Cloud and Azure regions by grid carbon intensity and latency.

The publisher's own server: 370.ai — AI Gateway: 100+ Chat Models, Image & Speech Generation

Overview

AI-generated overview

Ranks AWS, Google Cloud and Azure regions by grid carbon intensity and estimated latency, helping an assistant pick a low-carbon region for a workload.

What you can do
  • Rank cloud regions by grid carbon intensity, optionally balanced against estimated latency from an origin, with filters for provider, country, latency and carbon limits
  • Find the lowest-carbon start time in the next 72 hours for flexible batch jobs, with savings versus starting now
  • List cloud regions and the electricity grid zone each one draws power from, filtered by provider or country
When to use it
Useful when deciding where or when to run a cloud workload and carbon footprint matters, for example choosing an EU region under a latency budget or scheduling a batch job for a cleaner grid window.
Requirements
Runs locally over stdio via npx, requiring Node.js 22 or later. Works with no setup using annual grid averages; hourly grid data needs an Electricity Maps API token in ELECTRICITY_MAPS_API_TOKEN with forecast access for the clean-window tool.
Before you install
Live data depends on your own Electricity Maps plan and its terms; commercial use may require a paid license. The server provides no token itself. Carbon figures are location-based grid averages and do not reflect renewable energy a provider purchases. Early v0.1 release.

Installation

In SourceWeft

  1. Open Eco Router in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

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

bash
claude mcp add eco-router -- npx -y eco-router-mcp

Claude Desktop (claude_desktop_config.json)

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

ToolWhat it does
rank_regionsRanks regions by grid carbon intensity, optionally balanced against estimated latency from an origin. Supports providers, countries, maxLatencyMs, maxCarbonIntensity, carbonWeight, energyKwh and limit.
find_clean_windowFor 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_regionsLists 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:

json
{  "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:

json
{  "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

bash
npm installnpm test           # unit tests, no network needednpm run typechecknpm run build      # compiles to dist/npm run dev        # runs the server over stdio from sourcenpm run update:baseline  # refreshes national averages from Embernpm run update:egrid     # refreshes US grid averages from EPA eGRIDnpm run update:canada    # refreshes Canadian provincial averages

Data sources

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

MIT

Source: README.md at commit 7191ccc

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

2
  1. v0.1.1LatestSep 22, 2026
  2. v0.1.0Sep 17, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Router integrations