llm-price-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_TRANSPORT | No | Transport mode for the MCP server. Set to streamable-http to serve Streamable HTTP at /mcp; the default is stdio. | stdio |
| LLM_PRICE_GPU_CSV | No | Explicit path to a GPU prices CSV file. If the file does not exist, the server reports an error rather than silently falling back. If unset, the server uses the newest data/<YYYY-MM-DD>/gpu_prices.csv under LLM_PRICE_TRACKER_DIR, or the bundled snapshot. | |
| LLM_PRICE_TRACKER_DIR | No | Directory containing price-tracker data. The server looks for the newest data/<YYYY-MM-DD>/gpu_prices.csv under this directory. | /workspace/price-tracker |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_modelsA | List LLMs and their prices (USD per 1M tokens) from OpenRouter. Args: filter: Optional provider or keyword, e.g. "anthropic", "gpt", "deepseek coder". All space-separated terms must match the model id/name. limit: Max number of models to return (default 50). |
| compare_costA | Estimate and rank the cost (USD) of a workload across several models, cheapest first. Args: models: Model ids such as "openai/gpt-4o-mini" (a unique substring also works). input_tokens: Number of prompt/input tokens. output_tokens: Number of completion/output tokens. |
| cheapestA | Return the cheapest models, ranked by cost of 1M input + 1M output tokens. Args: min_context: Only models with at least this context window (tokens). keyword: Optional provider/keyword filter, e.g. "qwen". limit: How many models to return (default 10). include_free: Include $0 models (often rate-limited); default False. |
| gpu_rental_pricesA | GPU rental prices per GPU-hour (RunPod, Lambda, Vast.ai, AutoDL, ...), cheapest first. Data comes from the newest price-tracker CSV (data//gpu_prices.csv), or the file in the LLM_PRICE_GPU_CSV env var, falling back to a dated snapshot bundled with the package. Each row carries its source URL and fetch date; CNY prices are also converted to USD. Args: gpu: Optional GPU name filter, e.g. "H100", "a100 sxm", "4090" (all terms must match). provider: Optional provider filter, e.g. "runpod", "lambda", "vast", "autodl". |
| estimate_self_hostA | Estimate the USD cost per 1M tokens of self-hosting a model on rented GPUs. cost_per_1M = gpu_hourly_usd / (tokens_per_second * 3600 * utilization) * 1,000,000 Args: tokens_per_second: Sustained aggregate throughput of the deployment (all concurrent requests together), in generated tokens per second. gpu_hourly_usd: Total hourly cost of the GPUs serving that throughput (e.g. 8 x price). utilization: Fraction of paid hours actually spent serving traffic, in (0, 1]. Default 1.0. compare_models: Optional OpenRouter model ids (unique substrings work) to compare against their API input/output prices per 1M tokens. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool has a stated, distinct use: list_models enumerates with a keyword filter, cheapest ranks by blended 1M-in+1M-out price with context constraints, and compare_cost ranks a user-specified workload. There is still mild overlap between list_models and cheapest (both return model price rows, one just sorted/filtered differently), but the descriptions make the intended choice reasonably clear.
Three names follow verb_noun or verb_phrase style (list_models, compare_cost, estimate_self_host), but gpu_rental_prices is a bare noun phrase and cheapest is a lone adjective with no object. Readable and thematic, but not a single predictable convention.
Five tools is well-scoped for a pricing/comparison server: discovery, comparison, cheapest lookup, GPU rental data, and self-host estimation. Each tool maps to a concrete workflow step rather than padding the surface.
The domain (LLM/GPU cost analysis) is covered end-to-end: list prices, compare workloads, find cheapest, rent GPUs, and estimate self-host economics with an API-price comparison hook. Minor gaps remain, such as a direct single-model lookup by id or explicit currency/date selection, but these are workable via filters.