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 分