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".
Metadata
Release files for apipriceindex-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| apipriceindex_mcp-0.1.1.tar.gz | 6.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apipriceindex_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / apipriceindex_mcp-0.1.1.tar.gz
| Download URL | apipriceindex_mcp-0.1.1.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03a90c5e6f6855e9398b3ae07f838fd1931ba0ce542fba7ca3f69f5e195c2a3c
|
|
BLAKE2b-256 checksum How to use checksums |
2cf28be386dcd1f123f26d322f02792df14713c50c94f1285a6a15c81b808c65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 5, 2026.
Transparency logRelease files / apipriceindex_mcp-0.1.1-py3-none-any.whl
| Download URL | apipriceindex_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b09b7e558571b073c85553f6e2b87335ddd9e7b8be49ab218c398200829f0c19
|
|
BLAKE2b-256 checksum How to use checksums |
0e3926e6bcaba1d44911effd7048a00b1425efb34f6cdbb9632e209220435347
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 5, 2026.
Transparency logSecurity for apipriceindex-mcp 0.1.1
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.
Attestation for apipriceindex_mcp-0.1.1.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 Sep 5, 2026.
Transparency logA 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.