AI API Cost Calculator runs on your own machine — the client starts it, so there is no endpoint to ping. 423 installs a week from npm. Last commit 29 Nov 2026.
Estimate and compare OpenAI, Claude and Gemini API costs, gross margin and break-even price.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add ai-api-cost-mcp -- npx -y ai-api-cost-mcp
{
"mcpServers": {
"ai-api-cost-mcp": {
"command": "npx",
"args": [
"-y",
"ai-api-cost-mcp"
]
}
}
}
[mcp_servers.ai-api-cost-mcp]
command = "npx"
args = ["-y", "ai-api-cost-mcp"]
{
"mcpServers": {
"ai-api-cost-mcp": {
"command": "npx",
"args": [
"-y",
"ai-api-cost-mcp"
]
}
}
}
{
"servers": {
"ai-api-cost-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ai-api-cost-mcp"
]
}
}
}
Optional settings from the registry entry, left out of the block above:
AI_API_COST_MCP_OFFLINE (Set to 1 to skip the live rates download and use only the rates bundled with the package).
We read the source, 7 h ago · rules 995398eba69f
Found in continuous integration, deployment or infrastructure files, or in a neighbouring package of the same monorepo. None of this is installed when you add the server: it describes how the project is built and released. We list it because a leaked key in a build pipeline is still a real problem, but it is not something this server does on your machine.
for (const name of fs.readdirSync(path.join(ROOT, dir))) {
<p>Two rules do most of the work. Drop constants, so O(2n) is just O(n). Keep the biggest term, so O(n² + n) becomes O(n²). The second rule has a catch I will come back to, because it only applies when the terms use the same input.</p>
Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.
Today is the operative word: we check AI API Cost Calculator every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.
Cross-platform MCP for AI model updates & deprecations: Gemini, Claude, OpenAI, Grok, Qwen & more.
Price a Claude, GPT, Gemini or Grok call before you send it. Runs locally.
AI API cost calculator, budget estimator & MCP server. 470+ live models across 200+ currencies.
Compare AI subscription prices (ChatGPT, Claude, Gemini, Grok) across 130+ verified shops.
Exact Hong Kong IPO costs: entry fee, margin interest, break-even price, scenarios, sell fees
Read-only source-linked AI API prices, comparisons, cost estimates, and price changes.
LLM API prices, cost estimates, model comparisons and language token tax for GPT, Claude and Gemini.
LLM prices, cost estimates and break-even, plus your app's AI cost and margin per user.
Answers built from our own checks of this server.