Skip to main content

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

Tool What it does
search_models Find model ids by name/provider, filter by context window or open weights
get_price Verified price of one model: input/output/cached input USD per Mtok, verified_at, confidence, source
estimate_cost Monthly 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".

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apipriceindex_mcp-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apipriceindex_mcp-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file apipriceindex_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: apipriceindex_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for apipriceindex_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e8d82bf93242a7ee4e9302b088039208a66f7eabcbeafad34534b439c02d562b
MD5 cf38a93f035248cdf7b4f11febb5c911
BLAKE2b-256 9d23ef48671111fa6d6733ab98deecea0e436741d347906e67c76d1c171c9de6

See more details on using hashes here.

Provenance

The following attestation bundles were made for apipriceindex_mcp-0.1.0.tar.gz:

Publisher: publish.yml on apipriceindex/mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file apipriceindex_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for apipriceindex_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfd94c0b4670a863d27c7f61f7180394859f1befafbd9393d2bd4688722ca911
MD5 d69aa6f74ccbc4e0eae33d1753c2eb05
BLAKE2b-256 c300db4e38ee35a170c212780bf96686483b21b8700fcbd070e2be815cc8131e

See more details on using hashes here.

Provenance

The following attestation bundles were made for apipriceindex_mcp-0.1.0-py3-none-any.whl:

Publisher: publish.yml on apipriceindex/mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.1

2 files

This release

0.1.0 This release

2 files

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