llm-pricebook-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LLM_PRICEBOOK_TTL | No | Seconds to reuse downloaded data before fetching again. | 3600 |
| LLM_PRICEBOOK_URL | No | Read a different copy, for example a mirror. | the dataset's `v1/models.json` |
| LLM_PRICEBOOK_OFFLINE | No | `1` = never use the network (same as the `--offline` flag). | off |
| LLM_PRICEBOOK_CACHE_DIR | No | Where the downloaded copy is kept between runs; `none` disables it. | ~/.cache/llm-pricebook-mcp |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Official API prices of large language models (OpenAI, Anthropic, Google, xAI, Mistral, DeepSeek, Alibaba Qwen, ByteDance Doubao, Zhipu GLM, Moonshot Kimi, MiniMax, StepFun), from the open llm-pricebook dataset. All prices are per 1M tokens in the provider's own currency unless a conversion is requested; converted values are approximate (≈) and carry the exchange-rate date. Every result names the official source page and the date the price was last verified. Use estimate_cost for request costs: it applies long-context bands, cache pricing and the batch/flex/priority tiers.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_model_priceA | Official API price of one model: every price row (tiers, long-context bands, regions, cache prices), announced future prices, context window, capabilities, source URL and verification date. Accepts the API id ("gpt-5.5"), a dated snapshot or alias ("claude-sonnet-4-5-20250929"), a display name, or "provider/id". |
| find_modelsA | Search models by capability, price, context window, provider or name, sorted by price or size. Example: requires ["vision","tools"], max_input_price 1, currency "USD", sort_by "output_price". Prices compared are each model's main price (standard tier, default region, lowest context band) per 1M tokens, converted to |
| compare_modelsA | Side-by-side main prices, context windows and capabilities of 2–10 models in one currency. Pass input_tokens/output_tokens (and optionally cached_input_tokens, tier) to also compare the cost of that workload. |
| estimate_costA | Cost of a workload on one model from official prices. input_tokens is the whole prompt per request; cached_input_tokens and cache_write_tokens are the parts of it read from / written to the prompt cache. The long-context band is chosen from the per-request token counts. Use tier for batch/flex/priority prices. When a model has several prices for the same request (thinking vs non-thinking, peak vs off-peak) every variant is returned with a range unless mode/time pins one down. |
| list_providersB | Providers in the dataset with model counts, official pricing pages and the exchange rates used for conversions. |
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 distinct role: single-model detail lookup (get_model_price), discovery/filtering (find_models), multi-model comparison (compare_models), workload cost math (estimate_cost), and provider listing (list_providers). The boundary between get_model_price and compare_models is slightly soft since a 1-model 'comparison' could substitute for a price lookup, but the descriptions make the intended split clear.
All five tools follow a clean verb_noun snake_case pattern: get_model_price, find_models, compare_models, estimate_cost, list_providers. No mixed conventions or vague verbs.
Five tools is well within the sweet spot and each maps to a distinct step in the pricing workflow (lookup, search, compare, estimate, browse providers). Nothing feels redundant or padded.
The surface covers discovery, detail, comparison, and cost estimation over official prices plus provider metadata, which is a solid read-only lifecycle for a pricebook. Minor gaps exist, such as a dedicated way to browse price history or enumerate currencies/tiers independently, but agents can work around these via find_models and get_model_price.