Eco Router

io.github.stevensu04由 GitHub 帳號 stevensu04 發布v0.1.1更新於 Oct 24, 2026

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

發布方自己的服務:370.ai — AI Gateway: 100+ Chat Models, Image & Speech Generation

概覽

AI 產生的概覽

依電網碳強度與預估延遲為 AWS、Google Cloud 和 Azure 區域排序,協助助理為工作負載挑選低碳區域。

可以做什麼
  • 依電網碳強度排序雲端區域,可選擇搭配來自 origin 的預估延遲,並支援依服務商、國家、延遲上限與碳強度上限篩選
  • 為具彈性的批次工作在未來 72 小時內找出碳強度最低的啟動時間,並比較相對於立即啟動的減量
  • 列出雲端區域及其各自取電的電網分區,可依服務商或國家篩選
適用情境
適合在決定雲端工作負載執行地點或時間且在意碳足跡時使用,例如在延遲預算內挑選歐盟區域,或把批次工作安排到電網較乾淨的時間窗口。
執行需求
透過 npx 以 stdio 在本機執行,需要 Node.js 22 或更新版本。預設使用年度電網平均值,無需任何設定;若要每小時電網資料,需在 ELECTRICITY_MAPS_API_TOKEN 提供 Electricity Maps API 權杖,乾淨時間窗口工具還需該權杖具備預測存取權限。
安裝前請注意
即時資料受你自己的 Electricity Maps 方案及其條款約束,商業用途可能需要付費授權;本伺服器不提供也不分享任何權杖。碳數據為依位置的電網平均值,不反映服務商購買的再生能源。目前為 v0.1 早期版本。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Eco Router,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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

來源:README.md,提交 7191ccc

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.1.1最新Sep 22, 2026
  2. v0.1.0Sep 17, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Router 整合