AICostBudget AI API Pricing

io.github.aicostbudget由 GitHub 帳號 aicostbudget 發布v0.1.1更新於 Oct 30, 2026

Read-only source-linked AI API prices, comparisons, cost estimates, and price changes.

概覽

AI 產生的概覽

唯讀 MCP 伺服器,讓助理查詢附官方來源連結的 AI API 模型價格、成本估算、模型比較與近期價格變動。

可以做什麼
  • 依模型 ID 或顯示名稱查詢輸入、快取輸入與輸出價格
  • 依供應商及輸入或輸出 token 價格上限篩選並列出模型
  • 依請求量估算每月 token 成本,可選用快取輸入與批次計價
  • 比較多個模型的每月成本,並依總額由低到高排序
  • 列出最新的價格變動事件,可依日期或供應商篩選
適用情境
適合需要了解某個 AI 模型的價格、為特定負載做預算,或在給定請求量下挑選最便宜模型,並希望每個數字都附上官方來源與查核日期的情境。
執行需求
透過 npx 以 stdio 在本機執行,需要 Node.js 18 或更新版本,且 node 與 npx 位於用戶端 PATH 中。未宣告任何帳號、API 金鑰或環境變數。需要連線 npm 套件庫及三個公開資料端點,企業代理須放行。
安裝前請注意
伺服器為唯讀,不寫入檔案也不收集遙測,但執行時會從第三方端點取得公開資料。即時載入失敗時會改用內建備援資料,內容可能較舊,應查看查核日期。估算不含稅費、合約、折抵與供應商進位,缺少的快取或批次費率不會被猜測填入。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

ai-api-pricing-mcp

Read-only MCP server for the source-linked AICostBudget AI API Pricing Dataset. It exposes model prices, filtered model lists, monthly cost estimates, comparisons, and price-change events. Every successful result includes official provider source URL(s), a verification date, and an AICostBudget page link.

Data, history and issue tracker: aicostbudget/ai-api-pricing-data on GitHub. Spot a wrong price? Open an issue with the official source link.

The server writes no files, collects no telemetry, and uses only these public endpoints at runtime:

  • https://aicostbudget.github.io/ai-api-pricing-data/api/v1/prices.json
  • https://raw.githubusercontent.com/aicostbudget/ai-api-pricing-data/main/data/price-change-events/events.jsonl
  • https://aicostbudget.com/sitemap.xml

If live pricing or price-change loading fails, the response explicitly reports that the bundled fallback was used. Model-page links are emitted only when present in the sitemap; otherwise the server links to https://aicostbudget.com/en/models.

Run

Node.js 18 or newer is required.

bash
npx -y ai-api-pricing-mcp

Claude Desktop

Add this entry under mcpServers in claude_desktop_config.json:

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

Restart Claude Desktop after saving the file.

Install in Claude Desktop (MCPB)

The maintainer creates the GitHub Release and attaches ai-api-pricing-mcp-<version>.mcpb. Download the bundle from GitHub Releases, then double-click it or drag it into Claude Desktop → Settings → Extensions to install it.

Claude Code

bash
claude mcp add ai-api-pricing -- npx -y ai-api-pricing-mcp

Cursor

Create .cursor/mcp.json in a project, or ~/.cursor/mcp.json for global use:

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

VS Code

Create .vscode/mcp.json:

json
{  "servers": {    "ai-api-pricing": {      "type": "stdio",      "command": "npx",      "args": ["-y", "ai-api-pricing-mcp"]    }  }}

Tools

  • get_model_price({ model })
  • list_models({ provider?, max_input_price?, max_output_price? })
  • estimate_monthly_cost({ model, input_tokens_per_request, output_tokens_per_request, requests_per_month, cached_input_ratio?, use_batch? })
  • compare_models({ models, input_tokens_per_request, output_tokens_per_request, requests_per_month })
  • price_changes({ since?, provider? })

Model matching accepts exact IDs and display names. A fuzzy query that matches multiple models returns an explicit “Did you mean” list instead of silently choosing one. Cost estimates refuse missing required prices; they never substitute a standard, cache, or batch rate.

Demo transcript

text
User: Get the price of gpt-4.1.Assistant → get_model_price: GPT-4.1; input 2, cached input 0.5, output 8 USD per 1M tokens; official source and verified date included.
User: List OpenAI models with input price at most $2 per million tokens.Assistant → list_models: Matching model IDs and source-linked rates.
User: Estimate 1,000 monthly requests with 1,000 input and 100 output tokens on gpt-4.1.Assistant → estimate_monthly_cost: $2.80 before taxes, contracts, credits, or provider rounding.
User: Compare gpt-4.1 and claude-haiku-5-5 for that workload.Assistant → compare_models: Results sorted from lowest to highest estimated total.
User: Show OpenAI price changes since 2026-01-01.Assistant → price_changes: Up to 20 newest matching events with source URLs and the price monitor link.

Troubleshooting

  • Client cannot start npx: install Node.js 18+ and ensure node and npx are on the client application's PATH.
  • First launch is slow: npx may need to download the package once. Corporate proxies must allow the npm registry and the three documented runtime URLs.
  • Bundled fallback appears: the live URL timed out, returned a non-2xx response, or failed validation. The response remains usable but may be older; inspect its verification date.
  • Missing-price error: the requested cache, batch, input, or output rate is not present. Change the workload only if that matches the real provider billing mode; the server will not guess.
  • A model links to /en/models: the model-specific URL was absent from the current sitemap and the index link is intentional.

來源:packages/mcp-server/README.md,提交 bda8af7

工具

5

get_model_price

Get model price

Find a model by ID or display name and return source-linked prices.

輸入參數model必填

list_models

List models

List source-linked models, optionally filtering by provider and maximum token prices.

輸入參數providermax_input_pricemax_output_price

estimate_monthly_cost

Estimate monthly cost

Estimate monthly token cost from request volume, with optional cached-input and batch pricing.

輸入參數model必填use_batchcached_input_ratiorequests_per_month必填input_tokens_per_request必填output_tokens_per_request必填

compare_models

Compare models

Compare monthly costs for multiple models and sort them from lowest to highest total.

輸入參數models必填requests_per_month必填input_tokens_per_request必填output_tokens_per_request必填

price_changes

Price changes

List up to 20 newest source-linked price-change events.

輸入參數sinceprovider

版本歷史

2
  1. v0.1.1最新Oct 30, 2026
  2. v0.1.0Oct 21, 2026

評分

已滿足適用檢查項的 90%

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

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

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

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分