thirsty-tokens

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.

Category
Visit Server

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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured