ModelPricing MCP

Official MCP server for ModelPricing.xyz providing live LLM token pricing, KV prompt caching cost calculators, and side-by-side 2026 model comparisons.

Documentation

modelpricing-mcp

ModelPricing License: MIT

Official Model Context Protocol (MCP) server for ModelPricing.xyz. Gives AI coding agents (Cursor, Claude Desktop, Windsurf, Antigravity) live access to 2026 frontier LLM API pricing, KV prompt caching math, and token cost simulations.

Tools Included

  1. list_llm_models — Fetch live 2026 rates across OpenAI, Anthropic, Google, DeepSeek, xAI, and Meta.
  2. calculate_llm_cost — Simulate monthly API costs for any input/output token volume and KV cache hit ratio (0 to 1).
  3. compare_llm_models — Side-by-side cost & savings comparison between any two models with direct links to interactive charts.

Quick Setup (Cursor / Claude Desktop / Windsurf)

Add to your mcp_config.json or claude_desktop_config.json:

{
  "mcpServers": {
    "modelpricing": {
      "command": "npx",
      "args": ["-y", "modelpricing-mcp"]
    }
  }
}

Links