Read-only, zero-key MCP server for point-in-time AI model API prices. Open data, CC BY 4.0.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
RoninForge ai-price-index-mcp is a read-only Model Context Protocol server that answers what an AI model's API price was on a given date, with the first-party source that proves it. It is MIT licensed, runs entirely on your machine, and requires no API keys.
Part of RoninForge.org, an independent open-source workshop that keeps dated, reproducible records of the AI developer tooling economy. It serves the open AI Price Index dataset to any MCP client, including Claude Code and Cursor.
Most pricing tools tell an agent what a model costs today. This one also answers what a model cost on a given date, and returns the first-party source URL plus the date that price was last validated, so the agent can cite the number. That point-in-time lookup is the differentiator.
ai-price-index dependency. The server reads it locally and adds nothing to your traffic.source_url, last_validated, confidence, and the CC BY 4.0
attribution string.Requires Node.js 18 or newer. No build step, no API key.
That command runs the stdio server; an MCP client launches it for you using the config below.
Drop this into your MCP client config. The server speaks stdio.
Claude Code (~/.claude.json or a project .mcp.json), and Cursor (~/.cursor/mcp.json), use the
same mcpServers shape:
Or, with Claude Code's CLI:
All tools return structured JSON as text content. Prices are usd_per_mtok (USD per million tokens).
Model ids resolve through the dataset's aliases, so short ids work (e.g. claude-opus-4-5 resolves to
claude-opus-4-5-20251101).
| Tool | Arguments | Returns |
|---|---|---|
current_price | model, provider? | Today's input/output price for a model, with its source. |
price_on | model, date (YYYY-MM-DD), provider? | The price in effect on that date (the point-in-time lookup). |
compare | models[], date? | Side-by-side input/output prices for several models on one date. |
cost_from_usage | model, tokens, date?, provider? | USD value of a token rollup at a point in time, with cache multipliers. |
list_models | provider? | Known model ids (optionally one provider), each with its aliases. |
tokens for cost_from_usage accepts input, output, cache_read, cache_write_5m,
cache_write_1h (all optional, missing counts as 0). Cache read is 0.1x input, cache write is 1.25x
(5 minute) or 2x (1 hour).
Pass provider (for example openai, anthropic, google) to disambiguate a bare id that exists
under more than one vendor.
price_on with { "model": "gpt-4", "date": "2024-01-01" }:
This server is a thin wrapper over the ai-price-index
npm library, which ships the dated dataset bundled inline. There is no pricing logic, no separate data
layer, and no network call here. The data version a result reports is the dataset release that the
installed ai-price-index pins to. To move to newer prices, update that dependency.
The price data is from the AI Price Index and is licensed CC BY 4.0. When you publish anything derived from it, attribute it:
AI Price Index by RoninForge (https://roninforge.org/data/ai-price-index/), CC BY 4.0.
The code of this server is licensed MIT (see LICENSE). Data and tooling licenses are tracked upstream in the ai-price-index repository.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ai-price-index)<a href="https://allmcps.com/mcp/ai-price-index"><img src="https://allmcps.com/api/badge/ai-price-index?style=directory" alt="AI Price Index on AllMCPs" /></a>