InferCPI

com.infercpiPublished by infercpi.comOfficial publisherv1.0.0Updated Oct 29, 2026

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

VerifiedStreamable HTTPWeb executableFinanceData & AnalyticsAI & ML

Overview

AI-generated overview

Read-only MCP server exposing InferCPI's AI inference price index: token prices, cost per capability, open vs closed models, hosts and cost per task.

What you can do
  • Read the latest value of every index series, the editorial note and the licence line
  • Browse the series catalogue and pull the full weekly history of a single series
  • Look up this week's priced model basket and blended list price for a named model
  • List priced events such as launches, price cuts, increases and removals
  • Compare open and closed models at equal capability, and estimate self-hosting versus API costs
  • Check daily speed runs and monthly cost per completed task
When to use it
Useful when comparing AI model or API pricing, tracking price changes over time, weighing open versus closed models at a given capability level, or estimating whether self-hosting beats paying per token.
Requirements
Remote streamable HTTP endpoint at infercpi.com; no key or account needed. The optional self-hosted Python script needs Python and the mcp package, and reads infercpi.com unless INFERCPI_BASE is set.
Before you install
All ten tools are read-only and the data is free under CC BY 4.0; the licence line returned by index_latest should be cited. Speed and cost-per-task figures are the provider's own measurements, and the index aggregates third-party sources such as LiteLLM, Epoch AI, OpenRouter and SEC filings.

Installation

In SourceWeft

  1. Open InferCPI in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/com.infercpi%2Fapi/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "infercpi": {
      "type": "http",
      "url": "https://infercpi.com/mcp"
    }
  }
}

README

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)
bash
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).

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

bash
mkdir -p ~/.local/share/infercpicurl -so ~/.local/share/infercpi/mcp_server.py https://raw.githubusercontent.com/Infer-CPI/api/main/mcp_server.pypip install mcp                                       # mcp 1.x or 2.x both workclaude mcp add infercpi -s user -- python3 ~/.local/share/infercpi/mcp_server.py   # Claude Codepython3 ~/.local/share/infercpi/mcp_server.py --http  # or: streamable HTTP on :8765

Claude Desktop (claude_desktop_config.json):

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.

Source: README.md at commit 1e7403e

Tools

10

index_latest

Latest value of every index series (list-price chained/composition/hedonic, usage-weighted paid price, Törnqvist, OpenRouter shares, TPI replica) with dates, the latest editorial note, and the licence/attribution line. Start here.

Takes no parameters.

index_series

Full weekly history of one series as [[unix_ts, value], ...] plus its method string. signal: price_index | weighted_index | or_rankings | implied_margin | self_host | task_cost | hf_downloads | gpu_spot | gpu_neocloud | aws_gpu | speed | hyperscaler_capex | seller_revenue | cloud_revenue | token_price ... key: see index_catalogue. since: optional ISO date to cut the history.

Parameterskeyrequiredsincesignalrequired

index_catalogue

Every series the index publishes: signal/key, point count, first and last date, method string.

Takes no parameters.

basket

Every model priced in this week's list-price index: provider, blended $/1M (0.75 in + 0.25 out), Epoch capability score where matched.

Takes no parameters.

events

Priced events in first-party price lists, newest first: launch, price_cut, price_increase, removed, each with key, provider, old/new blended $/1M and pct. since: ISO date; kind: filter to one kind.

Parameterskindsince

speed

Latest daily speed run, measured by the index: per model and route (openrouter default routing, openrouter_pinned to the first-party host, anthropic and openai direct), median time to first token (ms), visible output tokens per second, host that served it. Same prompt every day.

Takes no parameters.

model_price

Blended list $/1M for one model by any common name ('Claude Opus 5.5', 'anthropic/claude-opus-5.5', 'gpt-5.5'); matches by the index's name normaliser and returns every basket entry that matches.

Parametersnamerequired

open_vs_closed

Cheapest blended $/1M at each capability level (Epoch ECI 130/145/160) for closed models, open models at their lab's price and open models at the cheapest third-party host; the open discount; DeepSeek's floor lift (cheapest price without DeepSeek / cheapest overall, at lab and at host prices); and the host discount per open model (lab price / cheapest host).

Takes no parameters.

self_hosting

What it costs per 1M tokens to leave the APIs: desk boxes (Mac Studio lease, RTX 5090 bought) at full and 25% duty, H100 rented by source (Vast, AWS, RunPod, CoreWeave, Lambda, Nebius) and owned, against the API price of the same open model and of the cheapest closed model at equal capability; break-even volume and how far hardware cost must fall. Plus posted GPU-hour prices and Hugging Face download counts.

Takes no parameters.

cost_per_task

Monthly measurement: dollars and tokens per completed task for the most-used models (fixed 8-task suite via OpenRouter at default settings, charged cost), reasoning share of output tokens, accuracy, and medians.

Takes no parameters.

Version history

1
  1. v1.0.0LatestOct 29, 2026

Score

90% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.