{
  "markdown": "# apipriceindex-mcp\n\nAn MCP server that gives any AI agent live, verified LLM API prices.\n\nAsk your assistant *\"what would 200M input / 15M output tokens a month cost\nme on Sonnet vs GPT?\"* and it answers from today's index — every price with\nits verification date, cross-check confidence and source URL. Data from\n[apipriceindex.com](https://apipriceindex.com/use-this-data/) (CC BY 4.0,\nre-checked daily against official pricing pages).\n\n## Tools\n\n| Tool | What it does |\n|---|---|\n| `search_models` | Find model ids by name/provider, filter by context window or open weights |\n| `get_price` | Verified price of one model: input/output/cached input USD per Mtok, `verified_at`, `confidence`, source |\n| `estimate_cost` | Monthly bill of a workload; ranks chosen models — or the whole catalog — cheapest first |\n\n## Install\n\n```\npip install apipriceindex-mcp\n```\n\nClaude Code / Claude Desktop:\n\n```\nclaude mcp add apipriceindex -- apipriceindex-mcp\n```\n\nOr in any MCP client config:\n\n```json\n{ \"mcpServers\": { \"apipriceindex\": { \"command\": \"apipriceindex-mcp\" } } }\n```\n\n## Behavior\n\n- Prices are fetched live from the index (15-minute in-memory cache) —\n  never stale training data.\n- **Index unreachable → explicit error.** No cached or invented price is\n  ever served silently.\n- Index older than 14 days → answers still come, with a warning pointing\n  at the index's [health endpoint](https://apipriceindex.com/health.json).\n- Model not tracked → says so, links the dataset. No price invented.\n- Cache discount only where the provider publishes a cached-input price.\n- Cost only: the index does not rank model quality, and third-party\n  benchmark scores are not redistributed.\n\nEnvironment: `APIPRICEINDEX_URL` overrides the dataset URL (testing).\n\n## License\n\nCode: MIT. Price data: [CC BY 4.0](https://apipriceindex.com/use-this-data/),\nattribution \"API Price Index\".\n\n<!-- mcp-name: io.github.apipriceindex/mcp -->\n\n",
  "bytes": 1924,
  "sha": "cabe2bb0d29bc36ab966198adf78ae67ffe2f7e2c81d6c5ea08f3c575f81cce5",
  "repo_slug": "apipriceindex/mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_apipriceindex_mcp_d1007e7e/readme"
}