Inferenceindexer Mcp

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

AI inference pricing for agents: live and historical model prices, provider comparison.

已驗證Streamable HTTP可網頁執行金融資料與分析AI 與機器學習

概覽

AI 產生的概覽

把 AI 推論模型的即時與歷史價格、供應商比較和綜合價格指數作為工具提供給助理查詢。

可以做什麼
  • 依預算、上下文、品質下限或零資料留存等條件推薦並排序模型,附上可直接使用的端點設定
  • 依文字、層級或排序方式搜尋與列出模型,並取得單一模型的完整詳情或一次呼叫的說明
  • 查詢模型在指定時間範圍內的歷史價格走勢
  • 列出供應商並檢視單一供應商詳情,比較同一模型在各託管供應商端的價格
  • 讀取目前 SIT-Composite 指數值及其歷史與分層明細
適用情境
適合助理需要挑選或比較 AI 推論模型與供應商、估算或追蹤推論成本、解釋價格隨時間變化,而不想自行拼湊價格資料的情境。
執行需求
可作為遠端託管端點使用,也可作為本機 Python 程序執行(PyPI 套件,透過 uv/uvx 啟動)。選用環境變數 II_API_BASE 與 II_API_KEY;公開伺服器不需金鑰。需要能連線至 InferenceIndexer API 的網路。
安裝前請注意
II_API_KEY 是選用的 bearer 憑證,用於提高速率上限;README 另提到僅供自架或更高方案使用的選用 II_SSR_SECRET。查詢內容與模型識別碼會傳送至第三方 InferenceIndexer API。工具皆為唯讀查詢;價格資料來自第三方,用於支出決策前應自行確認。

安裝

在 SourceWeft 中

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

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.DesMartin01%2Finferenceindexer-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "inferenceindexer": {
      "type": "http",
      "url": "https://api.inferenceindexer.ai/mcp"
    }
  }
}

README

InferenceIndexer MCP Server

Model Context Protocol server exposing InferenceIndexer's live + historical inference pricing as agent callable tools. Instead of an agent assembling inference pricing itself (slow, incomplete), it can call these tools to get complete pricing, historical trends, provider comparison, and the SIT index.

Tools

ToolDescription
recommend_modelsCall this first: rank models under your constraints (budget, context, ZDR, quality floor) with ready-to-call endpoint configs
explain_modelEverything about one model in one call: pricing, trend, endpoints, privacy flags
search_modelsSearch/list models with current pricing (by text, tier, sort)
get_modelFull detail + current price for one model
get_model_historyHistorical price trends for one model (the differentiator)
list_providersAll providers with model counts + price stats
get_providerDetail for one provider (models, tiers, price range)
get_composite_latestCurrent SIT-Composite index value + tier breakdown
get_composite_historySIT-Composite index history / trend
compare_providersPrice of one model across all providers that host it

Config (env)

  • II_API_BASE - InferenceIndexer API base (default https://api.inferenceindexer.ai)
  • II_API_KEY - Optional bearer key (public server works without one; a key raises rate limits)
  • II_SSR_SECRET - Optional first-party secret for self-hosted/higher-tier use only. Not set on the public server.

Run

stdio (recommended for local/agent-run):

bash
uv syncuv run inferenceindexer-mcp

Serve over HTTP/SSE (for remote clients, e.g. the hosted endpoint at https://api.inferenceindexer.ai/mcp):

bash
uv run inferenceindexer-mcp --transport streamable-http --port 8899

Connect an agent / MCP client

Claude Desktop / generic MCP client (stdio):

json
{  "mcpServers": {    "inferenceindexer": {      "command": "uvx",      "args": ["inferenceindexer-mcp", "--transport", "stdio"]    }  }}

Updated Oct 2026. Hosted (no install): https://api.inferenceindexer.ai/mcp - add "url": "https://api.inferenceindexer.ai/mcp" to mcpServers for streamable-http clients.

來源:README.md,提交 3206f1d

工具

10

recommend_models

Recommend the best-value AI models for given constraints, ranked with receipts. The core answer endpoint: give it constraints and it returns the top models ranked by Cost/IQ (quality-adjusted price, lower is better), each with a plain-English 'why', a hot-swap endpoint_config (provider base_url + native model id, ready to call), as-of timestamps, and runner-ups. Args: budget_max_usd_per_m: Max blended price $/M (optional). context_min: Minimum context window in tokens (optional). modality: 'text' (default), 'vision', or 'any'. zdr: Require zero-data-retention providers (optional). eu_sovereign: Require EU-sovereign providers (optional). reasoning: Filter reasoning models (null = any, true/false). aa_min: Hard floor on the AA Intelligence Index score (quality gate). use_case: Task profile: support | volume | extraction | summarization | coding | research. prefer_callable: Demote models without a verified call recipe below callable ones. limit: Max recommendations (1-20, default 5). Returns: ranked recommendations with endpoint_config and ranking evidence.

輸入參數zdrlimitaa_minmodalityuse_casereasoningcontext_mineu_sovereignprefer_callablebudget_max_usd_per_m

explain_model

Get everything about one model in a single call: the full picture. Returns current pricing (input/output/blended, Cost/IQ, 24h/7d changes), a price-history summary with trend, all provider endpoints, the cheapest hand-verified endpoint with its native model id (for hot-swapping), privacy flags (ZDR/EU availability), and the AA intelligence score. Everything is as-of stamped. Args: model_id: Canonical model id, e.g. 'anthropic/claude-sonnet-5'. history_days: Price-history window (default 30, max 365). Returns: complete model profile with pricing, endpoints, privacy, quality.

輸入參數model_id必填history_days

search_models

Search and list AI inference models with current pricing. Args: query: Text search on model id/name (optional). tier: Filter by tier: frontier | standard | budget | micro (optional). limit: Max results (1-100, default 25). sort: Sort key: blended | input | output | sit_score | sit_adjusted_price (default sit_adjusted_price). Returns: models with input/output/blended $/M pricing, provider, tier.

輸入參數sorttierlimitquery

get_model

Get full detail + current pricing for one model by its id. Args: model_id: Canonical model id, e.g. 'openai/gpt-5.6' or 'anthropic/claude-sonnet-5'. Returns: pricing, tier, SIT score, quality-adjusted price (Cost/IQ).

輸入參數model_id必填

get_model_history

Get HISTORICAL price data / trends for one model. This is InferenceIndexer's differentiator: aggregators like OpenRouter expose only current price; this returns the price over time (input, output, blended $/M), enabling trend analysis. Args: model_id: Canonical model id, e.g. 'openai/gpt-5.6'. days: History window in days (1-365, default 30; plan-dependent). Returns: historical price series for the model.

輸入參數daysmodel_id必填

list_providers

List all inference providers with model counts and price stats.

無需輸入參數。

get_provider

Get detail for one provider: models, tier breakdown, price range. Args: provider_name: Provider name, e.g. 'DeepInfra', 'Novita', 'Venice'. Returns: provider detail with model list and pricing.

輸入參數provider_name必填

get_composite_latest

Get the current SIT-Composite index value + per-tier breakdown. The SIT-Composite is a usage-weighted mean of the top-50 models by token volume, reflecting what developers actually pay for inference.

無需輸入參數。

get_composite_history

Get SIT-Composite index history / trend over time. Args: days: History window in days (1-90, default 30). Returns: historical composite index values.

輸入參數days

compare_providers

Compare the price of one model across the providers that host it. Args: model_id: Canonical model id, e.g. 'meta/muse-spark-1.1'. Returns: per-provider endpoints with pricing, showing where direct provider prices diverge (e.g. from OpenRouter's negotiated rate).

輸入參數model_id必填

版本歷史

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

評分

已滿足適用檢查項的 75%

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

  • 近 30 天內可連通必需25 分

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

  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分