ComparEdge LLM Cost logo

ComparEdge LLM Cost

Calculates LLM token costs using verified rates for 69 models across 17 providers.

Install ComparEdge LLM Cost

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "comparedge-llm-cost": {
      "command": "npx",
      "args": [
        "-y",
        "@comparedge/llm-cost-mcp@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

ComparEdge LLM Cost MCP server calculates per-call, recurring, and comparative LLM expenses from verified per-million-token rates. It reads a public ComparEdge price feed, caches it for six hours, and performs the arithmetic locally without provider API keys. Reach for it when estimating budgets, comparing models, or finding lower-cost options for a defined token workload.

Use cases

  • Estimate repeated LLM API call costs
  • Compare token pricing across models
  • Project monthly and annual AI budgets
  • Find lower-cost models by context size
  • Inspect provider pricing and model metadata

Key features

  • Verified rates for 69 models across 17 providers
  • Local token-cost calculations
  • Six-hour feed cache with stale-data fallback
  • Model comparison and budget forecasting
  • Model and provider discovery tools
  • No API key or provider account required

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

8/8 checks healthy over the last 42d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @comparedge/llm-cost-mcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads132Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.

How ComparEdge LLM Cost works

What the ComparEdge LLM Cost MCP server does

ComparEdge LLM Cost MCP server gives an MCP-compatible agent current pricing data and local cost calculations for 69 models from 17 providers. It works with input tokens, output tokens, call counts, context limits, provider names, and pricing tiers. Results can cover one request, repeated calls, or longer-term usage projections.

The server is intended for planning and comparison rather than making provider API requests. It can show the estimated price for a workload, rank several models by the same token pattern, identify inexpensive models, and project daily, monthly, or yearly spending.

How it works

Pricing comes from the public llms-model-prices.json feed. The feed contains USD rates per one million tokens and is populated from provider pricing checks that include verification dates. The server refreshes its local copy on a six-hour interval. If refreshing fails, it continues using the last successful copy.

All calculations happen inside the server. It does not call model-provider APIs, so using it does not require provider credentials or expose an API key. Model references can use several forms, such as a provider-qualified name or a readable model label. If the resolver cannot identify one model confidently, it returns possible matches rather than silently selecting one.

Setup and configuration

Run the server through npx with the package configuration below:

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

No environment variables, account, or API key are required. Claude Desktop uses ~/Library/Application Support/Claude/claude_desktop_config.json; Cursor adds MCP servers from its Settings interface; and VS Code with Copilot reads .vscode/mcp.json. Restart the client after adding the server so its tools become available. The implementation uses JSON-RPC 2.0 over standard MCP stdio.

Tools and capabilities

The six server tools are:

  • estimate_cost: calculate a single-call or repeated-call estimate from a model and token counts.
  • compare_models_cost: price the same input/output workload across two to six models.
  • monthly_budget: estimate daily, monthly, and annual spending for a recurring workload.
  • cheapest_models: find lower-cost models, optionally requiring a minimum context size.
  • list_models: inspect tracked models, rates, context information, and tiers, optionally filtered by provider.
  • list_providers: list providers, model totals, and each provider's cheapest selection.

The server also exposes prompts for describing a workflow, selecting a low-cost model for a task, and forecasting a budget from expected usage. cheapest_models uses a blended input/output weighting of three to one, so its ranking is a screening step rather than a substitute for pricing the actual token split.

Limitations and notes

ComparEdge LLM Cost MCP server provides estimates based on the tracked feed and the token counts supplied by the user. It does not invoke provider APIs or measure actual usage. Estimates are therefore dependent on choosing the correct model and entering representative input and output volumes.

The catalog covers the models and providers present in the feed, rather than every available model. Cached or batch pricing is shown only when the relevant model supports those options. For workloads with uncertain token counts, the included guidance is approximate; confirm the result with measured usage when accuracy matters. The catalog data is available under CC BY 4.0, while the server is MIT licensed.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about ComparEdge LLM Cost

ComparEdge LLM Cost is an MCP server that connects to a public ComparEdge feed of verified model pricing and calculates LLM costs locally. Its main tools estimate individual or repeated call costs, compare two to six models, project budgets, find inexpensive models, and list tracked models and providers.

Install it by adding an `npx` MCP entry for `@comparedge/llm-cost-mcp@latest` to your client configuration. Claude Desktop uses its JSON configuration file, Cursor provides MCP settings, and VS Code with Copilot reads `.vscode/mcp.json`; restart the client afterward.

No, ComparEdge LLM Cost does not require an API key, provider account, or provider API access. It reads the public ComparEdge model-prices feed and performs calculations locally, using the last successful cached copy if a refresh fails.

It provides six tools: `estimate_cost`, `compare_models_cost`, `monthly_budget`, `cheapest_models`, `list_models`, and `list_providers`. It also includes prompts for workflow estimates, choosing a cheaper model for a task, and forecasting AI budgets.

Yes, ComparEdge LLM Cost works with Cursor through Cursor's MCP settings. Add the server using the provided `npx` command, then restart or reload the client so the six tools are available.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewComparEdge LLM Cost AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/comparedge-llm-cost?style=directory)](https://allmcps.com/mcp/comparedge-llm-cost)
HTML Embed
<a href="https://allmcps.com/mcp/comparedge-llm-cost"><img src="https://allmcps.com/api/badge/comparedge-llm-cost?style=directory" alt="ComparEdge LLM Cost on AllMCPs" /></a>