Token cost math for LLM API calls: verified per-1M-token rates for 69 models, 17 providers.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Someone asks what the AI feature will cost at scale, and the honest answer around most teams is a shrug. Rates moved twice since anyone last checked, and the model itself will happily quote prices from its training data. This MCP server keeps current per-million-token rates for 69 models where your assistant can reach them, and does the arithmetic itself.
Nothing here is rounded or guessed. The rate is verified, date-stamped, and the server multiplied.
| An assistant on its own | An assistant with llm-cost |
|---|---|
| quotes output rates from training data, often a generation stale | reads the current rate, dated |
| flattens the estimate to "a few cents" | $0.1500 per call, $750.00 across 5,000 |
| never mentions batch or caching discounts | $375.00 batch, $187.50 cached, only where the model really offers them |
| confidently wrong, no way to tell | every figure traces to a feed entry with a verification date |
The same numbers answer in a browser through the LLM calculator, and the LLM category hub ranks every tracked model by rating and price.
The server never calls a provider API. It reads one public feed, llms-model-prices.json, and computes locally. Nothing to rate-limit, no key to leak, and a network hiccup serves the last good copy instead of an error. How each price gets checked is written up in the methodology, and the catalog behind it ships as an open dataset under CC BY 4.0.
Four do the math. Two help you find the exact model id the math wants.
| Tool | Answers | Params |
|---|---|---|
estimate_cost | one call, or N identical calls, in dollars | model, input_tokens, output_tokens, calls? |
compare_models_cost | the same call priced across 2 to 6 models | models[], input_tokens, output_tokens |
monthly_budget | daily, monthly, yearly spend for a workload | model, daily_calls, avg_input_tokens, avg_output_tokens |
cheapest_models | lowest-cost models, optional context floor | min_context?, limit? |
list_models | every model with rates, context and tier | provider? |
list_providers | providers with model counts and cheapest pick | none |
claude-opus-4-8, Opus 4.8 and anthropic/opus resolve to the same model. When the resolver is unsure, it returns candidates instead of guessing.cheapest_models ranks by a blended rate weighting input to output 3 to 1, because real workloads read far more than they write. Confirm the winner with estimate_cost on your actual split.| Prompt | Args | Runs |
|---|---|---|
estimate_my_workflow | workflow, model? | token estimates plus per-run and monthly cost for a described workflow |
pick_cheapest_model | task | cheapest model that still meets the requirement, top candidates priced |
forecast_ai_budget | model, usage | monthly and yearly bill projected from expected volume |
Claude Desktop keeps this file at ~/Library/Application Support/Claude/claude_desktop_config.json. Cursor: Settings, then MCP. VS Code with Copilot reads .vscode/mcp.json. Restart the client; six tools appear. No API key, no account. Per-client walkthroughs live in the setup guide.
Built by ComparEdge, where software prices are checked against vendor pages before anyone quotes them. Two siblings share the data: the full catalog server and a price-change watcher, both on ComparEdge MCP.
MIT licensed. JSON-RPC 2.0 over stdio, standard Model Context Protocol.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/comparedge-llm-cost)<a href="https://allmcps.com/mcp/comparedge-llm-cost"><img src="https://allmcps.com/api/badge/comparedge-llm-cost?style=directory" alt="ComparEdge LLM Cost on AllMCPs" /></a>