Skip to main content

apipriceindex-mcp

An MCP server that gives any AI agent live, verified LLM API prices — and today's deals.

Ask your assistant "which LLMs are free to call right now?", "what's the cheapest model at least as good as GPT-5.6 Sol?" or "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

Tool What it does
search_models Find model ids by name/provider; filter by context window, open weights, max price (input + output), capabilities (tools, reasoning, vision, json) and min speed
get_price Verified price of one model: input/output/cached input USD per Mtok, verified_at, confidence, source; speed, availability and Epoch score when known
estimate_cost Monthly bill of a workload; ranks chosen models — or the whole catalog — cheapest first
list_deals Models free to call right now, discounts, free credits and free tiers — each with its end date and official source; filter "ends within N days"
offers_table Every host serving one model, with the columns you choose (input, output, cache, discount, speed, first token, uptime, context, verified_at)
compare_models Two to four models side by side: lowest prices and who gives them, providers, fastest host, context, license, Epoch score, monthly cost
cheapest_at_level Cheapest models reaching an Epoch Capabilities Index score — or as good as a model you name
price_changes Price drops and rises over the last N days, and the models released in that time

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

  • Data is 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.
  • Deals always carry an end date — no end date when the host publishes none — and the link to the host's own page.
  • Speed and availability are read from OpenRouter and always come with their window (median over 30 minutes, share of successful requests over 24 hours). No tail latency or error rates.
  • One third-party score: the Epoch Capabilities Index by Epoch AI (CC BY 4.0). Every answer that carries it carries its credit. Otherwise, cost only: the index does not rank model quality.

Environment: APIPRICEINDEX_URL overrides the dataset URL (testing); deals.json and pricing-history.csv are read next to it.

Changelog

  • 0.2.0 — list_deals, offers_table, compare_models, cheapest_at_level, price_changes; search_models filters by max price, capabilities and min speed; Epoch score, speed and availability where known. The three 0.1 tools answer as before.
  • 0.1.1 — search_models, get_price, estimate_cost.

License

Code: MIT. Price data: CC BY 4.0, attribution "API Price Index". Epoch Capabilities Index: CC BY 4.0, credit Epoch AI.

Metadata

Release files for apipriceindex-mcp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apipriceindex-mcp 0.2.0
File Size Uploaded Provenance
apipriceindex_mcp-0.2.0.tar.gz 17.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for apipriceindex-mcp 0.2.0
File Interpreter ABI Platform
apipriceindex_mcp-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.3 kB

Release files / apipriceindex_mcp-0.2.0.tar.gz

Download URL apipriceindex_mcp-0.2.0.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
41bdb08cc9396e58260ed77ed9513c5ce4a4aea1e9362a04265a24203ea126c0
BLAKE2b-256 checksum
How to use checksums
e232dcaba13f29544ee0fa432c59c9e644f2476de42d4533481e6a96ab375b20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / apipriceindex_mcp-0.2.0-py3-none-any.whl

Download URL apipriceindex_mcp-0.2.0-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf8d49cb78eb21d8780f7db4acc1e3593139ae512bb13c29c811cca9fe038916
BLAKE2b-256 checksum
How to use checksums
78aa81b13a343ab699f4837ba4af4960529dd65d836ea0fe1e66460af2609f92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for apipriceindex-mcp 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for apipriceindex_mcp-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page