Skip to main content
MCP server CX Codex

InferCPI — Claude Code MCP server: AI inference pricing data

InferCPI is an MCP server for Claude Code with token prices, task costs and model benchmarks. It works without an API key.

no license updated 2026-10-29

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http api https://infercpi.com/mcp
Open on GitHub

What InferCPI does

InferCPI gives agents access to an inference pricing index: provider list prices, actual task costs, open versus closed model comparisons, hosting economics and lab capex. Ten read-only tools query the infercpi.com/v1/ API: latest index values, full time series, a basket of models with per-million-token prices, pricing change history since September 2023, generation speed, traffic distribution by lab.

The server runs at the public HTTP endpoint infercpi.com/mcp, no key required. You can run it locally: the mcp_server.py script needs the mcp library (versions 1.x and 2.x both work), reads https://infercpi.com by default, and accepts a different base URL through the INFERCPI_BASE variable.

Data is licensed CC BY 4.0, repository code is MIT. Sources: LiteLLM, pydantic/genai-prices, Epoch AI Capabilities Index, OpenRouter, SEC filings.

What it helps with

  • check current token prices for a specific model
  • compare task cost across providers
  • plot quarterly pricing changes
  • list model launches and price cuts
  • verify generation speed at a host

Example prompts for the agent

  • Show me input and output token prices for gpt-4o at OpenAI
  • What does running a task on claude-3-5-sonnet cost at Anthropic versus AWS Bedrock
  • Build a table of Microsoft and Google capex over the past year

How to install InferCPI

Platform CLI: remote server

claude mcp add --transport http api https://infercpi.com/mcp

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about InferCPI

How do I install InferCPI in Claude Code?

Run claude mcp add --transport http infercpi https://infercpi.com/mcp. The server is available immediately, no key needed.

What does InferCPI do?

It provides agents with an AI inference pricing index: model prices, task costs, change history, generation speed and lab capital expenditure.

Does InferCPI need an API key?

No. The server queries the public infercpi.com/v1/ API, data is available without registration or a key.

Similar MCP servers

All MCP servers for AI and ML →

Project sponsors

Companies that keep this analytics open