InferCPI

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

AI inference price index: token prices, cost per capability, open vs closed, hosts, cost per task.

التثبيت

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

Remote (streamable-http)
Claude Code
claude mcp add --transport http infercpi 'https://infercpi.com/mcp'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "infercpi": {
            "type": "http",
            "url": "https://infercpi.com/mcp"
        }
    }
}

التوثيق

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

المحتويات
  1. InferCPI API
  2. API
  3. MCP server
  4. Method and sources
  5. Licence

InferCPI API

InferCPI tracks what AI inference costs: list prices, what buyers actually pay, the cost of a fixed level of capability, open vs closed models, third-party hosts, self-hosting, and cost per completed task. Site: **https://infercpi.com**.

This repo holds the public API docs, examples and the MCP server. The data is free, needs no key, and is licensed CC BY 4.0: cite as InferCPI, infercpi.com.

API

Static JSON at https://infercpi.com/v1/. Full reference: **https://infercpi.com/api.html**.

FileWhat
latest.jsonLast value of every series, plus the weekly editorial note
index.jsonCatalogue of every series: point count, dates, method string, URL
series/<signal>/<key>.jsonFull history: points: [[unix_ts, value], ...] and method
basket.jsonEvery model priced this week: input, output and blended $/1M, context, Epoch ECI, open or closed
events.jsonLaunches, price cuts, increases and removals since Sep 2023
speed.jsonOur daily speed run: time to first token, tokens per second
token_mix.jsonTokens routed through OpenRouter per week, by lab and region
capex.jsonHyperscaler capex, chip and cloud revenue by quarter (SEC filings)
curl -s https://infercpi.com/v1/latest.json | jq '.latest["weighted_index/paid_usd_1m"]'

More in examples/.

MCP server

mcp_server.py gives agents ten read-only tools over the API: index_latest, index_series, index_catalogue, basket, model_price, events, speed, open_vs_closed, self_hosting, cost_per_task.

Hosted, no key: https://infercpi.com/mcp (streamable HTTP).

claude mcp add --transport http infercpi https://infercpi.com/mcp   # Claude Code

Claude.ai and Claude Desktop: Settings → Connectors → Add custom connector, paste the URL.

Or run it yourself:

mkdir -p ~/.local/share/infercpi
curl -so ~/.local/share/infercpi/mcp_server.py https://raw.githubusercontent.com/Infer-CPI/api/main/mcp_server.py
pip install mcp                                       # mcp 1.x or 2.x both work
claude mcp add infercpi -s user -- python3 ~/.local/share/infercpi/mcp_server.py   # Claude Code
python3 ~/.local/share/infercpi/mcp_server.py --http  # or: streamable HTTP on :8765

Claude Desktop (claude_desktop_config.json):

{ "mcpServers": { "infercpi": { "command": "python3", "args": ["/home/YOU/.local/share/infercpi/mcp_server.py"] } } }

It reads https://infercpi.com by default; set INFERCPI_BASE to point elsewhere.

Method and sources

How every series is built: **https://infercpi.com/methodology.html**. Inputs: LiteLLM and pydantic/genai-prices (MIT), Epoch AI Capabilities Index (CC BY 4.0), OpenRouter rankings (CC BY 4.0), SEC filings (public domain). Speed and cost per task are our own measurements.

Licence

Code in this repo: MIT. Index data: CC BY 4.0. Questions, corrections or a series you need: open an issue.

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

ما هو InferCPI؟

AI inference price index: token prices, cost per capability, open vs closed, hosts, cost per task.

كيف أثبّت InferCPI؟

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

هل يحتاج InferCPI إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل InferCPI مفتوح المصدر؟

شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.

من يصون InferCPI؟

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

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