soif-mcp
This MCP server estimates and compares the water footprint of LLM usage, helping clients route model choices by freshwater cost.
Estimate water consumed by a single LLM call from model + token counts or prompt text (
estimate_water).Calculate water footprint from real OpenAI/Anthropic usage objects accurately, including reasoning and cached tokens (
estimate_from_usage).Compare candidate models ranked least- to most-thirsty for a given workload (
compare_models).Route a step to the least-thirsty model that still meets a capability floor (
pick_low_water_model).List recognized models with their tier and default hosting profile (
list_known_models).Access a
soif://methodologyresource explaining how estimates are computed.Adjust estimates via provider/region overrides, reasoning effort, embodied-water inclusion, and token counts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@soif-mcpCompare gpt-4o, gpt-4o-mini and gemini-2.5-flash on water for a 2k-in/500-out workload."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
soif-mcp π§π
MCP server for soif β lets any MCP client (Claude Code, Claude Desktop, Cursor, agent frameworks) estimate the water footprint of LLM usage and route models by water cost.
All figures are millilitres of freshwater consumed, returned as {low, mid, high}
scenario ranges with explicit assumptions β see the
methodology.
Tools
Tool | What it does |
| Water for one call from model + tokens (or prompt text), incl. reasoning effort, provider/region overrides |
| The accurate path: feed a real OpenAI/Anthropic |
| Rank candidate models least- to most-thirsty for a workload |
| Route a step: least-thirsty model above a capability floor ( |
| Registry of recognised models with tier/provider defaults |
Plus a soif://methodology resource summarising how estimates are computed.
Related MCP server: Lean Reader
Install & connect
Requires Python β₯ 3.10. Once released to PyPI, uvx soif-mcp just works; from git today:
uv tool install "soif-mcp @ git+https://github.com/Unchained-Labs/soif-mcp.git"
# or: pipx install "soif-mcp @ git+https://github.com/Unchained-Labs/soif-mcp.git"Claude Code
claude mcp add soif -- soif-mcp
# or without installing first:
claude mcp add soif -- uvx --from "git+https://github.com/Unchained-Labs/soif-mcp.git" soif-mcpClaude Desktop / any JSON-config client (claude_desktop_config.json):
{
"mcpServers": {
"soif": { "command": "soif-mcp" }
}
}Cursor (.cursor/mcp.json): same shape as above.
The server speaks stdio (the standard transport for local servers); no network access, no credentials, no state.
Example prompts once connected
"How much water did that last answer cost? Here's the usage object: β¦"
"Compare gpt-4o, gpt-4o-mini and gemini-2.5-flash on water for a 2k-in/500-out workload."
"Pick the least-thirsty model of these that's at least medium tier."
Publishing / marketplaces
Registries worth listing this server in (in rough order of impact):
Official MCP Registry β the canonical registry (publish via
mcp-publisherCLI with aserver.json); most clients and sub-registries sync from it.GitHub MCP Registry β surfaced directly in GitHub and VS Code/Copilot.
Smithery β largest community registry; hosted install pages and one-line client setup.
PulseMCP and Glama β widely-browsed directories, auto-index from the official registry/GitHub.
mcp.so β community directory, simple PR/submit flow.
Docker MCP Catalog β if a container image is published; used by Docker Desktop's MCP Toolkit.
Cline MCP Marketplace β in-editor marketplace for the Cline agent (submit via their GitHub repo).
PyPI itself β
uvx soif-mcpis the install path most registries point at, so the PyPI release (seerelease.yml) underpins all of the above.
Development
pip install "soif-llm @ git+https://github.com/Unchained-Labs/soif.git"
pip install -e ".[dev]"
pytest && ruff check .License
MIT
Available Tools
5 toolscompare_modelsB
Rank candidate models by mid-scenario water use for a workload.
Returns models sorted least- to most-thirsty, each with its tier and
water range in mL. min_tier ("nano"|"small"|"medium"|"large"|
"frontier") filters out models below a capability floor.
| Name | Required | Description | Default |
|---|---|---|---|
| models | Yes | ||
| min_tier | No | ||
| input_tokens | No | ||
| output_tokens | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Since no annotations are provided, the description carries the burden of behavioral disclosure. It explains the return format (sorted list with tier and water range) and the filtering behavior of min_tier. It doesn't mention side effects or permissions, but for a ranking tool, this is reasonably transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise, with two short paragraphs. The first sentence immediately states the primary purpose, and the rest adds essential detail about output and filtering. No unnecessary fluff or redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has an output schema (though not shown) and a moderately complex set of parameters. The description explains ranking and filtering but omits the role of input_token and output_tokens parameters. It also doesn't clarify what 'models' refers to (e.g., model IDs or names). Given the low parameter coverage and lack of usage guidance, the description is not fully complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must explain parameters. It only clarifies min_tier (with allowed values and meaning) but says nothing about models, input_tokens, or output_tokens. Given that input_tokens and output_tokens have defaults and are likely used in the evaluation, leaving them unexplained is a significant gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool ranks candidate models by mid-scenario water use for a workload. It specifies the output (sorted least- to most-thirsty, with tier and water range in mL). It doesn't explicitly differentiate from sibling tools like pick_low_water_model, but the verb 'rank' and resource 'models' are specific enough.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not provide any guidance on when to use this tool versus alternatives. It states what it does but not when to prefer it over sibling tools. For instance, pick_low_water_model might be for selecting a single model, while this ranks all, but no comparison or exclusion is given.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
estimate_from_usageA
Estimate water (mL) from a real API usage object β the accurate path.
usage accepts OpenAI Chat Completions shape (prompt_tokens /
completion_tokens, with completion_tokens_details.reasoning_tokens and
prompt_tokens_details.cached_tokens), OpenAI Responses shape, or
Anthropic Messages shape (input_tokens / output_tokens,
cache_read_input_tokens, cache_creation_input_tokens). Reasoning and
cached tokens are handled without double counting.
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| usage | Yes | ||
| region | No | ||
| include_embodied | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden and adds meaningful behavior: it enumerates supported OpenAI/Anthropic usage shapes and explicitly states that reasoning and cached tokens are handled without double counting. It does not discuss failure modes, but the pure estimation nature and output schema reduce that need.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two front-loaded sentences: the first states the purpose and positioning, the second enumerates the supported usage shapes. Every sentence earns its place, and the density is acceptable given the complex accepted formats.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The output schema covers return values, and the usage-shape details are strong. However, the description leaves `model`, `region`, and `include_embodied` to their bare schema titles, and given the sibling list_known_models, model semantics are relevant context that is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, and the description richly documents the nested `usage` shape including prompt_tokens, completion_tokens, and cache fields. However, it adds nothing about the required `model` parameter or optional `region` and `include_embodied`, so parameter semantics are only partially compensated.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: 'Estimate water (mL) from a real API usage object', and 'the accurate path' distinguishes it from the sibling estimate_water tool. It is not a tautology and clearly identifies the tool's domain.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives clear context: use this tool when you have a real API usage object and want the accurate estimate. It does not explicitly name alternatives or state when-not-to-use, so it stops short of full exclusion guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
estimate_waterA
Estimate the freshwater consumed (mL) by one LLM call.
Provide real token counts when known; otherwise pass prompt text
(tokens are approximated and output defaults to a typical 500 tokens).
reasoning_effort ("none"|"low"|"medium"|"high") models thinking tokens
when actual usage is unknown. provider ("aws"|"azure"|"gcp"|"average")
and region ("world"|"us"|"eu"|"france"|"nordics"|"asia"|"renewable")
override the hosting profile. Set include_embodied=false for
operational water only. Returns water/energy breakdowns as
{low, mid, high} ranges plus a human summary and the assumptions made.
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| prompt | No | ||
| region | No | ||
| provider | No | ||
| input_tokens | No | ||
| cached_tokens | No | ||
| output_tokens | No | ||
| include_embodied | No | ||
| reasoning_effort | No | ||
| reasoning_tokens | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the behavioral transparency burden. It meaningfully discloses defaults (500 output tokens), the role of reasoning_effort when usage is unknown, provider/region overrides, and the return shape (ranges, summary, assumptions). This goes well beyond the schema, though it does not mention failure modes or how unknown models are handled.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with a clear purpose sentence and then uses compact, information-dense sentences for parameter usage and return values. No sentence is wasted; every clause contributes to correct invocation or interpretation.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 10-parameter tool with no annotations and no schema descriptions, the description is quite complete: it covers the main estimation path, key overrides, defaults, and output expectations. The main gap is that the required model parameter is not elaborated, and there is no pointer to sibling list_known_models for discovering valid model identifiers.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, and the description compensates by explaining prompt, reasoning_effort, provider, region, include_embodied, and token-count behavior. However, it refers to token counts collectively rather than explicitly mapping input_tokens, cached_tokens, output_tokens, and reasoning_tokens, leaving a small but meaningful gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb and resource: 'Estimate the freshwater consumed (mL) by one LLM call.' It clearly states the tool's scope and the main input choices (token counts vs. prompt). This differentiates it from siblings like compare_models and pick_low_water_model, which focus on comparison/recommendation rather than single-call estimation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives clear context on when to provide token counts versus prompt text, how reasoning_effort models thinking tokens, how provider/region override the default profile, and when to set include_embodied=false. It does not explicitly name sibling alternatives or exclusion criteria, so it stops short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_known_modelsA
List models soif recognises, with their size tier and default hosting.
Unknown models still work everywhere (they fall back to the "large" tier with an explicit assumption), but known models get calibrated tier/provider/region defaults.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses that this is a read-only operation (listing), that it only includes known models, and importantly explains that unknown models fall back to a default tier with an assumption. This is meaningful behavioral context that helps the agent understand the tool's scope and limitations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and front-loaded: the first sentence states the core function, the second adds essential context about fallback behavior. Every sentence earns its place, with no wasted words or redundant details.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has no parameters and an output schema exists (which presumably lists the models), the description is complete in explaining what the tool does and the key context about unknown models. It could potentially mention that the output includes the default hosting or that it's a read-only call, but these are minor gaps; the output schema likely covers return details.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has 0 parameters, and the schema coverage is 100% (there are no properties), so the description does not need to explain parameters. The baseline for 0 params is 4, and the description adds no param info, which is appropriate since there's nothing to explain.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool lists models with size tier and default hosting, which is a specific verb and resource. It does not explicitly distinguish from siblings like compare_models or pick_low_water_model, but the purpose is clear enough that an agent would understand it's a listing operation, not a comparison or selection.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies when to use this tool (when you need the list of known models with their defaults) but does not provide explicit when-not or alternative suggestions. It does add context that unknown models work everywhere, which helps an agent decide if listing known models is necessary, but it doesn't reference sibling tools for different needs.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
pick_low_water_modelA
Pick the least-thirsty candidate model that meets a capability floor.
Use in agent graphs to route each step: set min_tier to the minimum
capability the step needs, and the tool returns the lowest-water model
among the candidates plus what it saves vs. the thirstiest candidate.
| Name | Required | Description | Default |
|---|---|---|---|
| min_tier | No | ||
| candidates | Yes | ||
| input_tokens | No | ||
| output_tokens | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so the description carries the burden. It states the tool returns the lowest-water model meeting min_tier and the savings vs. the thirstiest candidate Pdf. It does not disclose behavior when no candidate meets min_tier, nor the meaning of null min_tier. It doesn't mention any side effects (likely none), but could be more explicit about input/output token parameters' role in water estimation. The description is reasonably transparent but has gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences, front-loaded with the core purpose, then usage guidance. Every sentence adds value with no redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema present, the description need not explain return values, but it does mention what it returns. It covers purpose, usage context, and key parameter guidance. It lacks edge-case behavior (e.g., no candidate meets the floor) but overall is fairly complete for a selection tool with a simple contract.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must explain parameters. It explains min_tier (capability floor) and implies candidates. It does not explain input_tokens or output_tokens, which are likely important for water estimation. Partial compensation for two of four parameters, so a 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a clear, specific statement: 'Pick the least-thirsty candidate model that meets a capability floor.' This precisely identifies the action (pick), the resource (candidate models), and the qualifying condition (capability floor). It effectively distinguishes the tool from siblings like compare_models or estimate_water, which focus on estimation or comparison rather than selection.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly says 'Use in agent graphs to route each step' and explains how to set min_tier, giving clear context for when to use it. It doesn't explicitly exclude alternatives or mention when not to use it, but the purpose is clear and aligns with its siblings. A small gap: it doesn't explicitly name sibling tools as alternatives, but the context implies it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
5 tool updates
v0.1.0- First observed
compare_models - First observed
estimate_from_usage - First observed
estimate_water - First observed
list_known_models - First observed
pick_low_water_model
TDQS
The two estimation tools (estimate_from_usage and estimate_water) target different input types (real API usage vs. raw tokens/prompt) and the descriptions clearly label the accurate vs. approximate paths. Similarly, compare_models returns a ranked list while pick_low_water_model returns a single best, so they are distinguishable despite some conceptual overlap. Only minor ambiguity exists for users unsure whether to use compare_models or pick_low_water_model for quick decisions.
All tool names use lowercase snake_case and follow a verb_noun pattern (estimate_water, compare_models, list_known_models, pick_low_water_model). The only deviation is 'estimate_from_usage' which adds a preposition and breaks the simple verb_noun structure, though it remains readable and predictable. Overall, the naming is consistent with only a small inconsistency in preposition inclusion.
The server has exactly 5 tools, which is within the ideal 3β15 range for a focused utility. Each tool serves a distinct purpose: estimation, comparison, selection, and cataloging. The scope is tight and nothing feels extraneous or missing.
The toolset covers the full lifecycle of water estimation: estimating from usage objects, estimating from raw inputs, comparing models, picking the best model, and listing known models. A minor gap is the lack of a batch estimation tool for processing multiple calls at once, but for the core domain this is a complete and usable surface. The presence of fallback behavior for unknown models also prevents dead ends.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- AlicenseBqualityFmaintenanceTrack LLM token costs across Claude, GPT and Gemini. MCP server + CLI with optimization hints and $ savings estimates.8151MIT
- AlicenseAqualityDmaintenanceMCP server that converts URLs into token-minimized clean text for LLMs, providing a receipt of token and cost savings.175MIT
- AlicenseAqualityBmaintenanceMCP server for QuelLLM: recommends the best open-source LLM to run locally for your hardware (GPU/RAM), with model comparison and a cost calculator.6MIT
- AlicenseAqualityAmaintenanceDaily-verified LLM API pricing dataset (44+ models, CN & global) with a hosted MCP server for live price queries and token cost estimation.2CC BY-4.0
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Unchained-Labs/soif-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server