AI Price Index

v0.2.0
io.github.RoninForge/ai-price-index-mcp Checked 20 hours ago Published 12 days ago

Read-only, zero-key MCP server for point-in-time AI model API prices.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

current_price Current price

Today's input and output price per million tokens (usd_per_mtok) for a model id, with the first-party source. Accepts short or aliased ids (e.g. "claude-opus-4-8", "gpt-4o", "gemini-2.5-pro"). Pass provider to disambiguate a bare id shared across vendors.

ParameterTypeDescription
model *stringModel id or alias, e.g. "claude-opus-4-8" or "gpt-4o".
providerstringOptional provider slug (e.g. "openai", "anthropic") to disambiguate a bare id.

price_on Price on a date

The input and output price per million tokens that was IN EFFECT on a given date (YYYY-MM-DD), with the source that proves it. This is the point-in-time lookup: use it to value past usage or to see how a price changed over time. covered=false means the date predates the model's recorded coverage.

ParameterTypeDescription
date *stringThe date to price, as YYYY-MM-DD, e.g. "2024-01-01".
model *stringModel id or alias, e.g. "gpt-4".
providerstringOptional provider slug to disambiguate a bare id.

compare Compare models

Side-by-side input/output prices for several model ids on one date (today by default, or pass date as YYYY-MM-DD). Each row resolves independently; unknown ids are reported per row.

ParameterTypeDescription
models *arrayModel ids or aliases to compare, e.g. ["claude-opus-4-8", "gpt-4o", "gemini-2.5-pro"].
datestringOptional date (YYYY-MM-DD). Omit for today.

cost_from_usage Cost from token usage

Value token usage in USD at a point in time, using the shared cache multipliers (cache read 0.1x input, cache write 1.25x for 5m / 2x for 1h). tokens accepts input, output, cache_read, cache_write_5m, cache_write_1h. Defaults to today if no date is given. By default tokens are a rollup priced at the base tier; set per_request when they are one API request so prompt-length tiers apply.

ParameterTypeDescription
model *stringModel id or alias to price the usage against.
tokens *objectToken counts to value. All fields optional and non-negative; missing fields count as 0.
datestringOptional date (YYYY-MM-DD). Omit for today.
per_requestbooleanSet true when tokens are ONE API request. Prompt-length tiers then apply: for example a Claude Haiku 5.5 request whose prompt (input + cache reads + cache writes) exceeds 100,000 tokens bills entirely…
providerstringOptional provider slug to disambiguate a bare id.

list_models List models

List the model ids known to the dataset, optionally filtered to one provider, each with its provider and aliases. Use this to discover valid ids for the other tools.

ParameterTypeDescription
providerstringOptional provider slug to filter by, e.g. "anthropic".