MCP server that helps AI agents pick the lowest-carbon cloud region for a workload.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add eco-router --env ELECTRICITY_MAPS_API_TOKEN='<ELECTRICITY_MAPS_API_TOKEN>' -- npx -y eco-router-mcp~/.codex/config.toml
[mcp_servers.eco-router]
command = "npx"
args = ["-y", "eco-router-mcp"]
env = { ELECTRICITY_MAPS_API_TOKEN = "<ELECTRICITY_MAPS_API_TOKEN>" }
# codex mcp add eco-router --env ELECTRICITY_MAPS_API_TOKEN='<ELECTRICITY_MAPS_API_TOKEN>' -- npx -y eco-router-mcp~/.cursor/mcp.json
{
"mcpServers": {
"eco-router": {
"command": "npx",
"args": [
"-y",
"eco-router-mcp"
],
"env": {
"ELECTRICITY_MAPS_API_TOKEN": "<ELECTRICITY_MAPS_API_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"eco-router": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"eco-router-mcp"
],
"env": {
"ELECTRICITY_MAPS_API_TOKEN": "<ELECTRICITY_MAPS_API_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"eco-router": {
"command": "npx",
"args": [
"-y",
"eco-router-mcp"
],
"env": {
"ELECTRICITY_MAPS_API_TOKEN": "<ELECTRICITY_MAPS_API_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"eco-router": {
"command": "npx",
"args": [
"-y",
"eco-router-mcp"
],
"env": {
"ELECTRICITY_MAPS_API_TOKEN": "<ELECTRICITY_MAPS_API_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"eco-router": {
"command": "npx",
"args": [
"-y",
"eco-router-mcp"
],
"env": {
"ELECTRICITY_MAPS_API_TOKEN": "<ELECTRICITY_MAPS_API_TOKEN>"
}
}
}
}Environment variables
ELECTRICITY_MAPS_API_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.