Purpose: eco-router-mcp is a server based on MCP (Model Context Protocol) that helps AI agents choose the lowest-carbon cloud region for a workload. The same GPU task can emit several times more CO2 depending on the grid its data center draws from. The project maps AWS, Google Cloud, and Azure regions to the grids they draw power from, enabling agents to ask questions like "Where should this training job run? Data must stay in the EU, and latency should be below 150 ms" and receive a ranked list of candidates with reasoning.
Key capabilities: provides the rank_regions tool, which ranks regions by carbon intensity and estimated latency and supports hard constraints such as allowed countries and carbon caps; the countries parameter accepts ISO 3166-1 alpha-2 codes as well as the EU and EEA groups. Provides the find_clean_window tool for time-shifting suggestions, for example finding a clean time window for a 6-hour job that must finish within two days, giving run-time recommendations based on carbon forecasts. Includes complete AWS, Google Cloud, and Azure region datasets with sources.
Data sources and modes: uses annual averages by default (by grid in the US, by province in Canada, by country elsewhere) and works with no configuration. US grid-level annual data comes from EPA eGRID; Canadian provincial annual data comes from the National Inventory Report; Australia provides grid-level annual data. Annual carbon intensity data comes from Ember's Yearly Electricity Data (CC BY 4.0). Optionally set ELECTRICITY_MAPS_API_TOKEN to use your own Electricity Maps API token for hourly, grid-level real-time data; regions not covered by your plan automatically fall back to annual averages. Carbon data is location-based grid averages describing the grid supplying each region, not the renewable energy purchased by cloud providers, so regions on the same grid have the same value.
Usage: the project requires Node.js 22 or later, provides an MCP server skeleton over stdio, and can be configured in Claude Desktop's claude_desktop_config.json. Use of real-time data is subject to the user's own Electricity Maps plan and terms; the materials mention that Electricity Maps offers free access for academic and personal non-commercial use, a 14-day trial for commercial evaluation, and that commercial use requires a paid license; eco-router-mcp itself does not provide or share any tokens.
Use cases: AI agent workflows that need to choose a run region across multi-cloud environments under constraints such as carbon, latency, and data residency; scheduling scenarios that need to find low-carbon run-time windows for batch or training jobs.
Limitations and status: the project is at an early release stage (v0.1) and welcomes corrections and feedback via issues. The scoring methodology, data sources, and their limitations are described in docs/methodology.md; the region-to-grid mapping and the assumptions behind it are described in docs/regions.md. The roadmap includes publishing to npm and the MCP Registry.