AI Price Index

io.github.RoninForgePublished by GitHub account RoninForgev0.1.2Updated Oct 24, 2026

Read-only, zero-key MCP server for point-in-time AI model API prices. Open data, CC BY 4.0.

The publisher's own server: PriceWin

VerifiedSTDIODesktop onlyFinanceData & AnalyticsAI & ML

Overview

AI-generated overview

Read-only MCP server that lets an assistant look up AI model API prices, including what a model cost on a specific date, with cited sources.

What you can do
  • Look up a model's current input and output price per million tokens, with its source
  • Retrieve the price in effect on a given date, with last-validated date and confidence
  • Compare several models side by side on one date
  • Convert token usage, including cache read and cache write counts, into a USD value
  • List known model ids and their aliases, optionally filtered by provider
When to use it
Useful when an assistant needs to quote or cite AI model API pricing, especially historical prices for a past date, or to estimate the cost of a token rollup. It is a small, local, read-only addition for cost analysis and reporting work.
Requirements
Node.js 18 or newer; the server runs locally over stdio, typically launched with npx. No API keys, accounts, or network access at runtime, since the dated dataset is bundled in the package.
Before you install
Read-only and makes no network calls; it cannot write or configure anything. Prices come from the bundled dataset version, so figures may be out of date until the underlying dependency is updated. Results carry a CC BY 4.0 attribution string that should be kept when citing the data.

Installation

In SourceWeft

  1. Open AI Price Index in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

ai-price-index-mcp

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.

  • Zero keys, zero prompts, zero network at runtime. The dated dataset is bundled inline inside the ai-price-index dependency. The server reads it locally and adds nothing to your traffic.
  • Read-only. It only looks prices up. It cannot write, configure, or call out.
  • Cite-ready. Every result carries source_url, last_validated, confidence, and the CC BY 4.0 attribution string.

Install

Requires Node.js 18 or newer. No build step, no API key.

bash
npx -y ai-price-index-mcp

That command runs the stdio server; an MCP client launches it for you using the config below.

Client configuration

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:

json
{  "mcpServers": {    "ai-price-index": {      "command": "npx",      "args": ["-y", "ai-price-index-mcp"]    }  }}

Or, with Claude Code's CLI:

bash
claude mcp add ai-price-index -- npx -y ai-price-index-mcp

Tools

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).

ToolArgumentsReturns
current_pricemodel, provider?Today's input/output price for a model, with its source.
price_onmodel, date (YYYY-MM-DD), provider?The price in effect on that date (the point-in-time lookup).
comparemodels[], date?Side-by-side input/output prices for several models on one date.
cost_from_usagemodel, tokens, date?, provider?USD value of a token rollup at a point in time, with cache multipliers.
list_modelsprovider?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.

Example result

price_on with { "model": "gpt-4", "date": "2024-01-01" }:

json
{  "query": "gpt-4",  "provider": "openai",  "model": "gpt-4",  "date": "2024-01-01",  "covered": true,  "input": {    "usd_per_mtok": 30,    "unit": "usd_per_mtok",    "effective_from": "2023-03-14",    "effective_to": null,    "last_validated": "2023-04-15",    "confidence": "archived",    "source_url": "https://web.archive.org/web/20230415223802/https://openai.com/pricing"  },  "output": { "usd_per_mtok": 60, "...": "..." },  "provenance": {    "dataset": "AI Price Index by RoninForge",    "data_version": "2026-06-17",    "license": "CC-BY-4.0",    "attribution": "AI Price Index by RoninForge (https://roninforge.org/data/ai-price-index/), CC BY 4.0",    "source": "https://roninforge.org/data/ai-price-index/"  }}

How it works

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.

Data license and attribution

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.

Links

Source: README.md at commit fe50c11

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.2LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Price integrations