ModelPricing MCP
ModelPricing.xyz 的官方 MCP 伺服器,提供即時 LLM token 定價、KV prompt caching 成本計算器,以及 2026 年模型並排比較。
文件
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