aicostdesk-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@aicostdesk-mcp I send 60 messages/day—is ChatGPT Plus at $20 or GPT-6 Luna API cheaper?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
aicostdesk-mcp
An MCP server for what AI actually costs: LLM API prices, monthly bills, and the break-even between a $20 subscription and pay-per-token.
It answers three questions inside Claude Desktop, Cursor, Claude Code or any MCP client:
"What do the current LLM APIs cost per million tokens?"
"What would 3,000 requests a day at 1,500 in / 500 out cost me per month, and which model is cheaper?"
"I send 60 messages a day — is ChatGPT Plus at $20 or paying for the API the better deal?"
Every figure comes from AI Cost Desk: 20 LLM API models from OpenAI, Anthropic, Google, DeepSeek and xAI, each rate read from the provider's own pricing page and dated. The JSON this server reads is the same file the site's calculators use, so a desk number and a server number cannot disagree.
Tools
Tool | What it does | Main inputs |
| Lists the 20 models with input, cached-input and output price per 1M tokens, the day each was checked, and scheduled price changes. |
|
| Monthly and yearly bill for a workload on one model, per-request cost, and the cheapest alternatives for the same tokens. |
|
| A flat plan (ChatGPT Plus, Claude Pro, Cursor, …) versus metered API at a daily message volume, with the break-even volume. |
|
| Two models on the same workload, side by side, with the monthly difference. |
|
Results are Markdown: a short table or a few labelled numbers, the date the prices were checked, and the page on aicostdesk.com that shows the same calculation.
Related MCP server: ai-cost-calculator-api
Install
Claude Desktop — add this to claude_desktop_config.json
(macOS: ~/Library/Application Support/Claude/claude_desktop_config.json,
Windows: %APPDATA%\Claude\claude_desktop_config.json), then restart Claude:
{
"mcpServers": {
"aicostdesk": {
"command": "npx",
"args": ["-y", "aicostdesk-mcp"]
}
}
}Until the package is on the npm registry, run it straight from GitHub with
"args": ["-y", "github:phappyj/aicostdesk-mcp"]. Both forms need Node 18.17+.
Cursor — the same block in ~/.cursor/mcp.json (or Settings → MCP → Add new MCP server,
type command):
{
"mcpServers": {
"aicostdesk": {
"command": "npx",
"args": ["-y", "aicostdesk-mcp"]
}
}
}Claude Code
claude mcp add aicostdesk -- npx -y aicostdesk-mcpFrom a local clone (development, or no npx)
git clone https://github.com/phappyj/aicostdesk-mcp.git
cd aicostdesk-mcp
npm install
node bin/aicostdesk-mcp.js{
"mcpServers": {
"aicostdesk": {
"command": "node",
"args": ["/absolute/path/to/aicostdesk-mcp/bin/aicostdesk-mcp.js"]
}
}
}Example
You: I'm building a support bot. 2,000 conversations a day, about 4,000 input and 800 output tokens each. What does Gemini 4 Carbon cost me, and is something cheaper?
Claude (after
calculate_api_cost): At 2,000 requests/day × 4,000 in + 800 out, Gemini 4 Carbon is $1,920/month ($23,040/year), $0.032 per conversation. The cheapest models for the same tokens are GPT-6 Luna and Claude Haiku 5.5 at $48/month (98% less) — cost only, not quality: both are budget tier against a flagship. Prices checked 2026-12-01 (aicostdesk.com/llm-api-calculator).
Where the numbers come from
Source:
phappyj/llm-pricing-jsonpricing.json(MIT), the machine-readable copy of the table behind aicostdesk.com — the same file the site's three calculators render from.On start the server fetches that file once (3 s timeout), keeps it in memory for the process, and writes a copy to the OS temp directory. If the network is down it uses that copy (up to 7 days), and if there is none it uses the snapshot bundled in the package, so a tool call never fails for lack of a connection.
Each model carries
lastChecked— the day its provider's page was actually read. Every answer prints it. Quoting a price without the date is the one thing this server will not do.The arithmetic is the site's published formula:
cost = requests × (input × input_rate + cached_input × cached_rate + output × output_rate) ÷ 1,000,000.Prices are USD list prices, standard tier. Not included: long-context surcharges (several vendors double the rate above 200K tokens — the threshold is in each model's note), batch and off-peak discounts, committed-use pricing, regional resale (Bedrock, Vertex), taxes. Cost says nothing about quality, latency, context limits or rate limits, and the tools say so in their output.
The server sends nothing about you anywhere; the only network request is the price file, and
AICOSTDESK_MCP_OFFLINE=1turns even that off.
Configuration
Variable | Default | Purpose |
| unset |
|
|
| Point at another copy of the price JSON |
Development
npm install
npm test # 32 tests: raw JSON-RPC over stdio, cost maths, fallback chain
npm run test:live # the official SDK client against the live price feed
npm run sync-snapshot # refresh data/pricing.json from the live feedThe test suite speaks the protocol itself — it spawns bin/aicostdesk-mcp.js and sends
initialize, tools/list and tools/call as newline-delimited JSON-RPC, so a regression in
framing or schemas fails the build without an SDK in the loop.
License
MIT. Data is collected from public vendor pricing pages; the vendors own their pricing. Not affiliated with OpenAI, Anthropic, Google, DeepSeek, xAI, Cursor or GitHub.
Available Tools
4 toolscalculate_api_costCalculate monthly API costB
Calculates what an LLM API workload costs per month and per year from input/output tokens per request, requests per day and the share of input served from cache, and names the cheapest alternatives for the same workload. Mirrors https://aicostdesk.com/llm-api-calculator.
Inputs: model (required), alternatives, input_tokens, output_tokens, +3 more.
compare_subscription_vs_apiSubscription vs API break-evenA
Compares a flat monthly AI subscription (ChatGPT Plus $20, Claude Pro $20, Cursor, Copilot and others, or any custom monthly price) with pay-per-token API cost at a given daily message volume, and gives the break-even messages per day. Mirrors https://aicostdesk.com/subscription-vs-api.
Inputs: plan, model, input_tokens, monthly_price, +4 more.
compare_two_modelsCompare the cost of two modelsA
Compares the monthly, yearly and per-request cost of two LLM API models for the same workload and states how much cheaper one is. Mirrors the head-to-head pages at https://aicostdesk.com/compare/.
Inputs: model_a (required), model_b (required), input_tokens, output_tokens, +3 more.
list_llm_modelsList LLM API models and pricesA
Lists the LLM API models AI Cost Desk tracks (20 models from OpenAI, Anthropic, Google, DeepSeek and xAI) with input, cached-input and output prices per 1,000,000 tokens, the date each price was last checked and any scheduled price change. Use it to see which models and ids exist before calling the cost tools.
Inputs: sort, tier, limit, provider, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct task: model discovery, workload cost calculation, subscription-vs-API comparison, and model head-to-head comparison. There is minor overlap because calculate_api_cost already names cheaper alternatives, which brushes against compare_two_models, but descriptions make the boundary clear enough.
All four names follow a consistent snake_case verb_noun pattern (list_, calculate_, compare_). The convention is predictable and reads uniformly across the set.
Four tools is on the lean side but well matched to a focused cost-calculator domain, with no filler tools. Reasonable coverage without bloat.
The surface covers discovery, cost estimation, subscription comparison, and model comparison, which are the core lifecycle needs of this domain. Minor gaps exist (e.g. batch/embedding pricing or a single-model lookup), but agents can work around them via list_llm_models.
Maintenance
Related MCP Connectors
Look up, compare and track AI model API prices from an AI assistant. No sign-in needed.
LLM prices, cost estimates and break-even, plus your app's AI cost and margin per user.
Find AI model pricing, estimate token costs and compare offers. No API key required.
Live LLM API pricing: token prices, comparisons, cheapest-model lookups. No key required.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI agents to compare AI model pricing plans, run cost scenarios, find break-even points, and get plan recommendations using TokenLens data.4-
- AlicenseNot gradedqualityDmaintenanceEnables AI cost calculation, comparison, and optimization across major providers like Anthropic, OpenAI, Google, Meta, and Mistral. Supports cost estimation, budget-aware model finding, and token estimation through a simple API and MCP integration.MIT
- AlicenseAqualityBmaintenanceDaily-verified LLM API pricing dataset (44+ models, CN & global) with a hosted MCP server for live price queries and token cost estimation.2CC BY-4.0

OptimToken MCPofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to fetch live, dated prices for LLM models and cloud compute instances across providers, compare and recommend models, and estimate monthly costs based on workload-specific token shapes and constraints.MIT