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.
GitHubTry this MCPSponsored
Documentation
modelpricing-mcp
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
list_llm_models— Fetch live 2026 rates across OpenAI, Anthropic, Google, DeepSeek, xAI, and Meta.calculate_llm_cost— Simulate monthly API costs for any input/output token volume and KV cache hit ratio (0to1).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
- Interactive Web Simulator: https://modelpricing.xyz
- Public JSON API:
https://modelpricing.xyz/api/pricing.json - Open Dataset: https://github.com/allex122/llm-pricing-dataset