NestDaddy

AI API Cost Calculator

io.github.m-mustufa/ai-api-cost-mcp · v0.1.0

Estimate and compare OpenAI, Claude and Gemini API costs, gross margin and break-even price.

Is this your server? Claim it to get a Verified maintainer mark, your own note here, and an email when it goes down or its tools change. Free.

MCP Score How we grade

This server runs on your own machine, so there is no public endpoint to check and grade.

Connect Runs on your machine

Terminal
claude mcp add ai-api-cost-mcp -e AI_API_COST_MCP_OFFLINE=<AI_API_COST_MCP_OFFLINE> -- npx -y [email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "ai-api-cost-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "AI_API_COST_MCP_OFFLINE": "<AI_API_COST_MCP_OFFLINE>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "ai-api-cost-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "AI_API_COST_MCP_OFFLINE": "<AI_API_COST_MCP_OFFLINE>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "ai-api-cost-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "AI_API_COST_MCP_OFFLINE": "<AI_API_COST_MCP_OFFLINE>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
AI_API_COST_MCP_OFFLINE
Optional
Set to 1 to skip the live rates download and use only the rates bundled with the package.

Details

Package[email protected] (NPM, stdio)
First published24 Nov 2026
Last updated24 Nov 2026
Registry nameio.github.m-mustufa/ai-api-cost-mcp

More other servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.