Skip to main content
Glama

soif-mcp πŸ’§πŸ”Œ

M8ven Score

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

estimate_water

Water for one call from model + tokens (or prompt text), incl. reasoning effort, provider/region overrides

estimate_from_usage

The accurate path: feed a real OpenAI/Anthropic usage object

compare_models

Rank candidate models least- to most-thirsty for a workload

pick_low_water_model

Route a step: least-thirsty model above a capability floor (min_tier)

list_known_models

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-mcp

Claude 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):

  1. Official MCP Registry β€” the canonical registry (publish via mcp-publisher CLI with a server.json); most clients and sub-registries sync from it.

  2. GitHub MCP Registry β€” surfaced directly in GitHub and VS Code/Copilot.

  3. Smithery β€” largest community registry; hosted install pages and one-line client setup.

  4. PulseMCP and Glama β€” widely-browsed directories, auto-index from the official registry/GitHub.

  5. mcp.so β€” community directory, simple PR/submit flow.

  6. Docker MCP Catalog β€” if a container image is published; used by Docker Desktop's MCP Toolkit.

  7. Cline MCP Marketplace β€” in-editor marketplace for the Cline agent (submit via their GitHub repo).

  8. PyPI itself β€” uvx soif-mcp is the install path most registries point at, so the PyPI release (see release.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 tools
compare_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.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelsYes
min_tierNo
input_tokensNo
output_tokensNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.2/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness2/5

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.

Parameters2/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelYes
usageYes
regionNo
include_embodiedNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.1/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelYes
promptNo
regionNo
providerNo
input_tokensNo
cached_tokensNo
output_tokensNo
include_embodiedNo
reasoning_effortNo
reasoning_tokensNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.4/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.9/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose4/5

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.

Usage Guidelines3/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
min_tierNo
candidatesYes
input_tokensNo
output_tokensNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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.

  1. 5 tool updatesv0.1.0
    • First observedcompare_models
    • First observedestimate_from_usage
    • First observedestimate_water
    • First observedlist_known_models
    • First observedpick_low_water_model

TDQS

A3.8/5.0
Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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

ActivityMaintained
ResponsivenessNo issues

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

Related MCP Servers

Latest Blog Posts

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