AI Price Index

io.github.RoninForge由 GitHub 帳號 RoninForge 發布v0.1.2更新於 Oct 24, 2026

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

發布方自己的服務:PriceWin

概覽

AI 產生的概覽

唯讀 MCP 伺服器,讓助理查詢 AI 模型 API 價格,包括某模型在指定日期的價格,並附上來源。

可以做什麼
  • 查詢模型目前每百萬 token 的輸入與輸出價格及其來源
  • 取得指定日期生效的價格,含最後驗證日期與信心程度
  • 在同一個日期上並排比較多個模型的價格
  • 把 token 用量(含快取讀取與快取寫入)換算成美元金額
  • 列出已知模型 id 及其別名,可依供應商篩選
適用情境
適合助理需要引用或標註 AI 模型 API 價格時使用,尤其是查詢某個歷史日期的價格,或估算一批 token 用量的成本。對成本分析與報告類工作而言,是輕量的本機唯讀補充。
執行需求
需要 Node.js 18 或更新版本;伺服器以 stdio 在本機執行,通常透過 npx 啟動。執行時不需要 API 金鑰、帳號或網路存取,含日期的資料集已內建於相依套件中。
安裝前請注意
唯讀且執行時不發出網路請求,無法寫入或變更設定。價格來自內建的資料集版本,在更新底層相依套件前可能已過時。結果帶有 CC BY 4.0 姓名標示文字,引用資料時應保留。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 AI Price Index,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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

來源:README.md,提交 fe50c11

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Price 整合