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.1.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.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apipriceindex_mcp-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 03a90c5e6f6855e9398b3ae07f838fd1931ba0ce542fba7ca3f69f5e195c2a3c
MD5 b253c425a78467b49d5f130fc2fc687d
BLAKE2b-256 2cf28be386dcd1f123f26d322f02792df14713c50c94f1285a6a15c81b808c65

See more details on using hashes here.

Provenance

The following attestation bundles were made for apipriceindex_mcp-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for apipriceindex_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b09b7e558571b073c85553f6e2b87335ddd9e7b8be49ab218c398200829f0c19
MD5 e0e3a22e9714789ca6885d490acd84c2
BLAKE2b-256 0e3926e6bcaba1d44911effd7048a00b1425efb34f6cdbb9632e209220435347

See more details on using hashes here.

Provenance

The following attestation bundles were made for apipriceindex_mcp-0.1.1-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

This release

0.1.1 This release

2 files

0.1.0

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