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.

概覽

AI 產生的概覽

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 金鑰。
安裝前請注意
數據僅為繁忙伺服器上實測的 GPU 部分下限,電網數值為生命週期年平均,不能作為需申報的 Scope 2 資料;伺服器要求轉述其注意事項。PUE 與系統功耗比是使用者自設假設而非實測。此索引由銷售 AI 平台的 Katonic 營運。伺服器只向 API 位址發出 HTTP GET 請求,提問與工具參數不會離開本機。

安裝

在 SourceWeft 中

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

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

pip install leadgreen-mcp

or, without installing, uvx leadgreen-mcp.

The same wheel is served from the site, with its SHA-256 printed on https://leadgreen.ai/mcp/:

pip install https://leadgreen.ai/dist/leadgreen_mcp-0.3.1-py3-none-any.whl

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

ToolWhat it answers
list_modelsWhich models are on the index and on which GPUs
energy_per_million_tokens(model, gpu?, itl_deadline_ms?)The best row per GPU for a model
estimate(model, output_tokens, gpu?, country?, running_batch?, num_gpus?, itl_deadline_ms?, pue?, system_power_ratio?)GPU energy in Wh and kWh for a token count, kg CO2e for a grid, and optionally energy at the meter
compare_gpus(model, itl_deadline_ms?)H100 versus B200 for a model
concurrency_curve(model, gpu)Energy per token at every measured running batch
grid_intensity(country)Annual average gCO2e per kWh for a country or World
gpu_hardware(gpu?)Max TDP, memory, MIG profiles and whole-system ceilings
sourcesEvery source, version, retrieval date and licence

Resource: leadgreen://manifest.

Parameters

  • running_batch: the average running batch the server holds, meaning how many requests it decodes at once (vLLM num_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_flight is the old name and is still accepted; giving both with different values is an error. Responses carry both avg_running_batch and avg_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.
  • pue and system_power_ratio (each at least 1.0): when either is given, estimate also 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, or World. 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, so US never lands on Australia. Grid figures are the 2024 annual average; years and latest_year show 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's index.json. Pass it on.
  • boundary: gpu_only for the measured figures.
  • data_source: live (fetched from the API), bundled snapshot (the copy shipped in the package) or local folder (when LEADGREEN_API_BASE is a folder).
  • data_updated and data_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_BASE to a local folder holding the API files (for example a copy of leadgreen_mcp/data). Any other URL works too.

Client configuration

Claude Desktop or Cursor (claude_desktop_config.json / .cursor/mcp.json):

json
{ "mcpServers": { "leadgreen": { "command": "leadgreen-mcp" } } }

With no network:

json
{ "mcpServers": { "leadgreen": { "command": "leadgreen-mcp", "env": { "LEADGREEN_API_BASE": "/path/to/api/v1" } } } }

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.3.1最新Oct 20, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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