io.github.DesMartin01/inferenceindexer-mcp

السجل الرسمي التجارة الإلكترونية

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

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http inferenceindexer-mcp 'https://api.inferenceindexer.ai/mcp'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "inferenceindexer-mcp": {
            "type": "http",
            "url": "https://api.inferenceindexer.ai/mcp"
        }
    }
}
PYPI package inferenceindexer-mcp
Claude Code
claude mcp add inferenceindexer-mcp -e 'II_API_BASE=<II_API_BASE>' -e 'II_API_KEY=<your ii_api_key>' -- uvx inferenceindexer-mcp==0.1.1
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "inferenceindexer-mcp": {
            "command": "uvx",
            "args": [
                "inferenceindexer-mcp==0.1.1"
            ],
            "env": {
                "II_API_BASE": "<II_API_BASE>",
                "II_API_KEY": "<your ii_api_key>"
            }
        }
    }
}

متغيرات البيئة

  • II_API_BASE Base URL of the InferenceIndexer API (defaults to the public API; no key required for the free tier)
  • II_API_KEY سري Optional InferenceIndexer API key (raises rate limits; free keys at https://www.inferenceindexer.ai/for-agents)

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. InferenceIndexer MCP Server
  2. Tools
  3. Config (env)
  4. Run
  5. Connect an agent / MCP client

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

uv sync
uv run inferenceindexer-mcp

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

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

Connect an agent / MCP client

Claude Desktop / generic MCP client (stdio):

{
  "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.

الأسئلة الشائعة

ما هو io.github.DesMartin01/inferenceindexer-mcp؟

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

كيف أثبّت io.github.DesMartin01/inferenceindexer-mcp؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http inferenceindexer-mcp 'https://api.inferenceindexer.ai/mcp'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.DesMartin01/inferenceindexer-mcp إلى مفتاح API؟

نعم. يتطلب II_API_KEY، وتضبطها في إعداداته.

هل io.github.DesMartin01/inferenceindexer-mcp مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.DesMartin01/inferenceindexer-mcp؟

ينشره DesMartin01. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.