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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03a90c5e6f6855e9398b3ae07f838fd1931ba0ce542fba7ca3f69f5e195c2a3c
|
|
| MD5 |
b253c425a78467b49d5f130fc2fc687d
|
|
| BLAKE2b-256 |
2cf28be386dcd1f123f26d322f02792df14713c50c94f1285a6a15c81b808c65
|
Provenance
The following attestation bundles were made for apipriceindex_mcp-0.1.1.tar.gz:
Publisher:
publish.yml on apipriceindex/mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
apipriceindex_mcp-0.1.1.tar.gz -
Subject digest:
03a90c5e6f6855e9398b3ae07f838fd1931ba0ce542fba7ca3f69f5e195c2a3c - Sigstore transparency entry: 2724811933
- Sigstore integration time:
-
Permalink:
apipriceindex/mcp@95f86da866458192056909a6418bf342546ec7cc -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/apipriceindex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@95f86da866458192056909a6418bf342546ec7cc -
Trigger Event:
release
-
Statement type:
File details
Details for the file apipriceindex_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: apipriceindex_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b09b7e558571b073c85553f6e2b87335ddd9e7b8be49ab218c398200829f0c19
|
|
| MD5 |
e0e3a22e9714789ca6885d490acd84c2
|
|
| BLAKE2b-256 |
0e3926e6bcaba1d44911effd7048a00b1425efb34f6cdbb9632e209220435347
|
Provenance
The following attestation bundles were made for apipriceindex_mcp-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on apipriceindex/mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
apipriceindex_mcp-0.1.1-py3-none-any.whl -
Subject digest:
b09b7e558571b073c85553f6e2b87335ddd9e7b8be49ab218c398200829f0c19 - Sigstore transparency entry: 2724812350
- Sigstore integration time:
-
Permalink:
apipriceindex/mcp@95f86da866458192056909a6418bf342546ec7cc -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/apipriceindex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@95f86da866458192056909a6418bf342546ec7cc -
Trigger Event:
release
-
Statement type: