mcpbeat Sign in

AI API Cost Calculator MCP Server

by m-mustufa Your server? Claim it
local only

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.

Installs per day peak 288 · avg 9
a month agotoday
423
Installs / week
npm · ai-api-cost-mcp
0
Stars
0 open issues
29 Nov 2026
Last commit
2 releases in 90 days
MIT
License
HTML

Connect this server

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.

run in your terminal
claude mcp add ai-api-cost-mcp -- npx -y ai-api-cost-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "ai-api-cost-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ai-api-cost-mcp"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.ai-api-cost-mcp]
command = "npx"
args = ["-y", "ai-api-cost-mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "ai-api-cost-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ai-api-cost-mcp"
      ]
    }
  }
}
.vscode/mcp.json
{
  "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).

What the code does

We read the source, 7 h ago · rules 995398eba69f

In the project's build, not in the package

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.

Builds a file path from a variable src/lib/legacy.mjs:22
    for (const name of fs.readdirSync(path.join(ROOT, dir))) {
Builds a database query by concatenation blog/big-o-calculator-javascript.html:170
<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.

Nothing serious here today

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.

Three servers free · no card

Alternatives to AI API Cost Calculator

same job, measured the same way
ModelCanon
by digital-lake-ai

Cross-platform MCP for AI model updates & deprecations: Gemini, Claude, OpenAI, Grok, Qwen & more.

2 680 installs/wk local only
T
Tokeven Cost Advisor
by tokeven

Price a Claude, GPT, Gemini or Grok call before you send it. Runs locally.

477 installs/wk local only
AI-Cost-CLI & MCP
by ufhouck

AI API cost calculator, budget estimator & MCP server. 470+ live models across 200+ currencies.

289 installs/wk local only
水獭 AI 比价
by shuita

Compare AI subscription prices (ChatGPT, Claude, Gemini, Grok) across 130+ verified shops.

192 installs/wk local only
HK IPO Fee Calculator
by tiezhengzhang

Exact Hong Kong IPO costs: entry fee, margin interest, break-even price, scenarios, sell fees

159 installs/wk local only
AICostBudget AI API Pricing
by aicostbudget

Read-only source-linked AI API prices, comparisons, cost estimates, and price changes.

98 installs/wk local only
AiGanak LLM Cost
by aiganak

LLM API prices, cost estimates, model comparisons and language token tax for GPT, Claude and Gemini.

84 installs/wk local only
FiscaLLM
by magna56

LLM prices, cost estimates and break-even, plus your app's AI cost and margin per user.

10 tools answering

AI API Cost Calculator — questions

Answers built from our own checks of this server.

Why is there no uptime for AI API Cost Calculator?
AI API Cost Calculator runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package ai-api-cost-mcp was installed 423 times last week.
How do I connect AI API Cost Calculator?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls ai-api-cost-mcp straight from npm; nothing to host, nothing to sign up for.
How many people use AI API Cost Calculator?
The npm package ai-api-cost-mcp was installed 423 times in the last week. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is AI API Cost Calculator open source?
Yes — it is published under the MIT licence, written in HTML and 0 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.