Odel
mcp

mcp

Local
@apipriceindexPythonMITUpdated 2 days ago

Live, verified LLM API prices: search models, get sourced prices, estimate workload costs.

apipriceindex-mcp

An MCP server that gives any AI agent live, verified LLM API prices.

Ask your assistant "what would 200M input / 15M output tokens a month cost me on Sonnet vs GPT?" and it answers from today's index — every price with its verification date, cross-check confidence and source URL. Data from apipriceindex.com (CC BY 4.0, re-checked daily against official pricing pages).

Tools

ToolWhat it does
search_modelsFind model ids by name/provider, filter by context window or open weights
get_priceVerified price of one model: input/output/cached input USD per Mtok, verified_at, confidence, source
estimate_costMonthly bill of a workload; ranks chosen models — or the whole catalog — cheapest first

Install

pip install apipriceindex-mcp

Claude Code / Claude Desktop:

claude mcp add apipriceindex -- apipriceindex-mcp

Or in any MCP client config:

{ "mcpServers": { "apipriceindex": { "command": "apipriceindex-mcp" } } }

Behavior

  • Prices are fetched live from the index (15-minute in-memory cache) — never stale training data.
  • Index unreachable → explicit error. No cached or invented price is ever served silently.
  • Index older than 14 days → answers still come, with a warning pointing at the index's health endpoint.
  • Model not tracked → says so, links the dataset. No price invented.
  • Cache discount only where the provider publishes a cached-input price.
  • Cost only: the index does not rank model quality, and third-party benchmark scores are not redistributed.

Environment: APIPRICEINDEX_URL overrides the dataset URL (testing).

License

Code: MIT. Price data: CC BY 4.0, attribution "API Price Index".