modelpricing-mcp
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.
Related MCP server: tokencost-mcp-server
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.jsonOpen Dataset: https://github.com/allex122/llm-pricing-dataset
Available Tools
3 toolscalculate_llm_costB
Calculate and rank LLM API costs for a specific token workload with KV prompt caching hit ratio modeling.
Inputs: modelId, inputTokens, outputTokens, cacheHitRatio.
compare_llm_modelsB
Compare two LLM models side-by-side on token cost, prompt caching savings, and context limits.
Inputs: modelA (required), modelB (required), inputTokens, outputTokens, +1 more.
list_llm_modelsA
Fetch live 2026 frontier LLM API pricing, KV prompt caching rates, and context window limits from ModelPricing.xyz.
Inputs: provider.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinct purpose: list fetches raw pricing data, calculate computes cost for a workload, and compare does a two-model side-by-side. The only mild overlap is between calculate and compare, since both surface cost figures, but the descriptions clearly delineate workload-based ranking versus pairwise comparison.
All three tools follow a clean verb_noun pattern (list_, calculate_, compare_) on the same domain object (llm_models). The convention is predictable and immediately readable.
Three tools is on the thin side but well-matched to a focused pricing-reference server: fetch, compute, and compare cover the core needs without bloat. Slightly more (e.g. a single-model lookup) could round it out, but nothing feels redundant.
The surface covers the main lifecycle of the domain—retrieve pricing, apply it to a workload, and compare models. Minor gaps exist, such as retrieving one specific model's full details or historical pricing, but these are workable via list_llm_models.
Maintenance
Related MCP Connectors
Official MCP server for subfeed.app — the cloud for agents. 15+ tools for AI agents to register, build, and deploy other agents. Zero human required. Start here: subfeed.app/skill.md
Official MCP server for Lovable, the AI-powered full-stack app builder.
Official Intrinio MCP server. US stock prices, options and fundamentals for AI agents.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
Related MCP Servers
- AlicenseAqualityCmaintenanceunofficial MCP (Model Context Protocol) server for Reclaim.ai calendar integration - manage tasks, habits, and smart scheduling through AI assistants like Claude.324MIT
- AlicenseAqualityDmaintenanceAn MCP (Model Context Protocol) server that provides real-time LLM token pricing data for 60+ AI models across 15 providers.625 npm2MIT

Bitget MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceThe official Bitget MCP (Model Context Protocol) server. Gives AI assistants direct, real-time access to the Bitget exchange through natural language.237MIT- AlicenseBqualityBmaintenanceOfficial MCP server for interacting with Saudi market data (Sahmk) via natural language queries, enabling stock quotes, company info, and market summaries inside AI agents like Cursor and Claude Desktop.2430 PyPI15MIT