MCP.so
Sign In

llm-cost

@comparedge

About llm-cost

MCP server: token cost math for LLM API calls, 69 models across 17 providers, prices verified by ComparEdge

Basic information

Category

Data & Analytics

License

MIT

Runtime

node

Publisher

comparedge

Submitted by

KMT Dev

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "llm-cost": {
      "command": "npx",
      "args": [
        "-y",
        "@comparedge/llm-cost-mcp@latest"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is llm-cost?

llm-cost is a zero-dependency MCP server that gives assistants current per-million-token pricing for 69 LLM models across 17 providers and does cost arithmetic locally: per call, per batch, per month. Rates are verified and date-stamped, so estimates stop relying on stale training data.

How to use llm-cost?

Add npx -y @comparedge/llm-cost-mcp@latest to your MCP client config (Claude Desktop, Cursor, VS Code). Restart the client and six tools appear. No API key, no account.

Key features of llm-cost

  • Dollar estimates for a single call or thousands of identical calls.
  • Same-call comparison across up to 6 models, cheapest first.
  • Monthly budget projection from daily volume.
  • Cheapest-model ranking with a context-window floor.
  • Batch API and cached-input discounts where the provider offers them.
  • Fuzzy model resolution: claude-opus-4-8, Opus 4.8 and anthropic/opus land on the same model.

Use cases of llm-cost

  • "Price Claude Opus 4.8 on a 25k-token prompt with a 1k answer, run 5,000 times."
  • "Compare that call on Opus, Sonnet, GPT and Gemini."
  • "What does 10,000 support-bot conversations a day cost per month?"
  • "Cheapest model with at least 200k context?"

Comments

More Data & Analytics MCP servers