Lead Green
ai.leadgreen由 leadgreen.ai 发布v0.3.1更新于 Nov 4, 2026
GPU energy per million output tokens by model, GPU and configuration, with grid carbon by country.
概览
Lead Green 开放索引的本地 MCP 服务器,提供每百万输出 token 的 GPU 能耗,以及各国电网碳强度。
- 可以做什么
- 列出索引中的模型及其运行的 GPU,并获取某模型在每个 GPU 上的最佳能耗行
- 按 token 数量估算 GPU 能耗(Wh 与 kWh),可选按某电网给出 kg CO2e 及电表端能耗
- 对比同一模型在 H100、B200 等 GPU 上的表现,并查看各实测并发批次下的每 token 能耗
- 查询国家或全球的电网碳强度,以及 GPU 硬件参考数据(TDP、显存、MIG 配置等)
- 获取所有数据来源、版本、检索日期与许可信息
- 适用场景
- 适合需要评估模型推理的能耗或碳排放、比较 GPU 选型,或结合某国电网估算 token 成本时使用,得到有出处而非猜测的数字。
- 运行要求
- 需要 Python 3.10 或更高版本,从 PyPI 安装 leadgreen-mcp 或用 uvx 运行,兼容 mcp Python SDK 1.x 与 2.x。默认需要访问 Lead Green API 的网络;可将 LEADGREEN_API_BASE 设为本地文件夹或其他 URL 以离线使用。无需账号或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Lead Green,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
leadgreen-mcp
Lead Green is a public index of the GPU energy it takes to serve a million output tokens (watt-hours per million output tokens), by model, GPU and configuration, with grid carbon intensity to price it anywhere, published as open data with a JSON API and an MCP server under CC BY 4.0. Every figure comes from a named public source with a retrieval date; it is a Katonic project, run and paid for by Katonic, and takes no money from hardware, cloud or model vendors.
Lead Green is run and paid for by Katonic, which sells a sovereign AI platform; it takes no money from hardware, cloud or model vendors.
This package is the MCP server for that index: GPU watt-hours per million output tokens by model, GPU and configuration, with grid carbon intensity by country and GPU hardware reference data. Every answer names its source and carries the caveat that the figures are GPU-only floors measured on a busy server.
Install
or, without installing, uvx leadgreen-mcp.
The same wheel is served from the site, with its SHA-256 printed on https://leadgreen.ai/mcp/:
and the source installs with pip install "git+https://github.com/katonic-dev/leadgreen-ai#subdirectory=leadgreen-mcp".
Python 3.10 or later. Works with the mcp Python SDK 1.x and 2.x. Listed in the official MCP Registry as ai.leadgreen/green-token-index.
Versions
Two things are versioned separately. The package is 0.3.1 (this file, pyproject.toml, the wheel name). The data is a dated release of the Lead Green API; the copy bundled in the package is the release named in leadgreen_mcp/data/manifest.json (data_version), and the server reads the live API first, so a session normally answers from the current release whatever package version is installed. Every response says which it used in data_source and data_updated.
Tools
Resource: leadgreen://manifest.
Parameters
running_batch: the average running batch the server holds, meaning how many requests it decodes at once (vLLMnum_requests_running). The estimate then uses the measured configuration nearest to it, on the same GPU count as the best row (for example 2 x H100 for Qwen 3 32B), and widens to every GPU count only when that count has no measurements.requests_in_flightis the old name and is still accepted; giving both with different values is an error. Responses carry bothavg_running_batchandavg_requests_in_flight(the same number).num_gpus: use configurations on exactly this many GPUs.itl_deadline_ms: the latency ceiling for choosing the best row. Rows whose median inter-token latency is at or under it are kept, and the lowest energy wins. Default 500 ms, the leaderboard's own default.pueandsystem_power_ratio(each at least 1.0): when either is given,estimatealso returns energy at the meter, GPU energy x system_power_ratio x pue, labelled as such and shown beside the GPU figure. These are your assumptions, not measurements. For scale, a DGX B200 at its 14.3 kW maximum over 8 x 1.0 kW of GPU power is a ratio of about 1.79.country: a country name, the site's short name, an ISO 3166 alpha-3 or alpha-2 code, orWorld. Common names work: UK, GB, Britain, US, USA, America, Turkey, Korea, South Korea, Russia. Exact matches win over partial ones, and queries of three characters or fewer must match exactly, soUSnever lands on Australia. Grid figures are the 2024 annual average;yearsandlatest_yearshow the other years available. They are lifecycle, location-based figures for comparing places, not a Scope 2 figure to file.
Fields on every response
caveat: the same sentence on every tool, taken from the API'sindex.json. Pass it on.boundary:gpu_onlyfor the measured figures.data_source:live(fetched from the API),bundled snapshot(the copy shipped in the package) orlocal folder(whenLEADGREEN_API_BASEis a folder).data_updatedanddata_version: how current the data is.
What the server sends, and where
- Only HTTP GET requests to
https://leadgreen.ai/api/v1(or the base you set), for the published JSON files: at most once per file per session, then cached in memory. - Your questions, prompts and tool arguments never leave your machine. No request carries them; lookups and arithmetic happen locally.
- If a fetch fails, the server prints one line on stderr and uses the bundled snapshot for the rest of the session without trying the network again.
- For no network at all, set
LEADGREEN_API_BASEto a local folder holding the API files (for example a copy ofleadgreen_mcp/data). Any other URL works too.
Client configuration
Claude Desktop or Cursor (claude_desktop_config.json / .cursor/mcp.json):
With no network:
Claude Code: claude mcp add leadgreen -- leadgreen-mcp
If Claude Desktop cannot find leadgreen-mcp
Claude Desktop started from Finder, the Dock or the Start menu does not see the PATH your terminal uses, so a bare leadgreen-mcp can fail to start. Use the full path instead: run which leadgreen-mcp (macOS, Linux) or where leadgreen-mcp (Windows) and put the result in command. Alternatively, point command at the full path of your Python and set "args": ["-m", "leadgreen_mcp.server"].
Licence
Apache 2.0 for the code (see LICENSE). The data keeps the licences of its sources, listed in the manifest.
来源:leadgreen-mcp/README.md,提交 e0e114f
工具
0版本历史
1- v0.3.1最新Oct 20, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分