thirsty-tokens
Estimates data-center water consumption from local Claude Code transcripts, providing water usage summaries, breakdowns by model/project, and a compact HTML widget.
README
<img src="assets/logo-64.png" align="left" width="52" height="52" alt="">
thirsty-tokens
How much data-center water has your Claude Code habit evaporated? This reads your
own local transcripts (~/.claude/projects) and estimates it, with real-world
comparisons. Nothing leaves your machine.
Four ways to use it: a CLI, a live desktop widget, an MCP server, and a browser calculator (no install).
- Live web calculator: https://evanwang810.github.io/thirsty-tokens/
- Download the desktop app (Windows .exe): https://github.com/evanwang810/thirsty-tokens/releases/latest
Install
git clone https://github.com/evanwang810/thirsty-tokens
cd thirsty-tokens
pip install -e .
Needs Python 3.10+. The only dependency is the MCP SDK (for the server); the CLI and widget are stdlib-only.
CLI
thirsty --open # summary + HTML report, opened in the browser
thirsty --since 7 # last week only
thirsty --no-report # just the terminal summary
Knobs for the skeptical: --throughput, --water-intensity, --gpu-watts.
Live desktop widget
A little always-on-top pill that re-reads your transcripts every few seconds and watches the water climb as you work. Drag it anywhere; right-click for the menu.
thirsty-app # full window
thirsty-app --widget # start as the floating widget
MCP server
Built on the official MCP SDK. Wire it into Claude Code:
claude mcp add thirsty --scope user -- python -m thirsty.server
Restart Claude Code, then claude mcp list should show thirsty ... Connected.
Tools: water_summary, water_widget (returns a compact HTML widget as an embedded
resource), water_breakdown (by model and project). Resources: thirsty://report,
thirsty://widget. There's also a /water-usage slash command that runs the CLI and
summarizes it.
Website
docs/index.html is a self-contained calculator hosted on GitHub Pages. Type in a
token count, get the water. It links back here for the auto-tracking tools.
The model
Water = electricity x water intensity.
- Electricity: a B200 (~1 kW) x1.8 node overhead x1.2 PUE, serving ~1,500 output-equivalent tokens per GPU-second. Lands near 0.4 Wh per 1,000 tokens.
- Water intensity: 3.0 L/kWh (on-site cooling ~1.8 + off-site power ~1.2).
- Token weighting: output counts full, prefill x0.2, cache reads x0.02.
Order-of-magnitude only, likely off by 3 to 5x either way. It depends on model size, batch depth, data-center location, and grid mix. Treat it as a gut-check, not a bill.
MIT licensed.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。