llm-cost

MCP数据服务

提供方 comparedge

数据服务 未标注 OAuth 授权 社区 / 第三方 Claude DesktopClaudeCursorVS Code

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

一句话选型结论

按资料字段整理

llm-cost 属于数据服务类 MCP 服务器,传输方式未标注,OAuth 授权,可直接接入 Claude Desktop、Claude、Cursor 等,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类数据服务 传输方式未标注 鉴权OAuth 授权 部署方式未标注
GitHub 星标 未标注 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

数据服务
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

llm pricing tokens ai models

支持客户端

适用场景

llmpricingtokens

安装与配置

未标注 OAuth 授权
上游未给出传输方式
  1. 1
    准备运行环境

    按官方文档确认运行环境(常见为 Node.js 或 Python),装好后再执行安装命令。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
数据库查询

用自然语言查库、取数,不用手写 SQL。

数据同步与清洗

把多来源数据拉到一处做整理。

报表取数

按口径快速拉出统计结果。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 已适配 Claude Desktop、Claude、Cursor,换客户端不用重新研究配置。

先想清楚的地方

  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 使用前要准备好OAuth 授权对应的凭据,并按最小权限配置。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在数据服务场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop、Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
llm-cost当前 未标注 未标注 未标注 无 未标注
Memory 9d25f64e 9 未标注 未标注 无 2026-05-17
Getzep MCP 9 stdio · 本地进程 本地部署 有 2026-05-17
anything-llm 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Prisma MCP Server 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Astr Bot 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

数据服务
字段来自项目仓库与公开索引,中文说明由本站标注
提供方comparedge上游标注的维护方 comparedge
分类数据服务本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式OAuth 授权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · node本地安装时用到的包标识与运行时
部署类型未标注上游给出的部署形态
最近核验未标注上游最后核验时间

详细介绍

5.1 KB
来自项目仓库与上游目录的原文,未做删改

Someone asks what the AI feature will cost at scale, and the honest answer around most teams is a shrug. Rates moved twice since anyone last checked, and the model itself will happily quote prices from its training data. This MCP server keeps current per-million-token rates for 69 models where your assistant can reach them, and does the arithmetic itself.

Watch it work```

$ You: price Claude Opus 4.8 on a 25k-token prompt with a 1k answer, run 5,000 times

llm-cost › estimate_cost

Cost estimate: Claude Opus 4.8 (Anthropic)
Rates: input $5/1M, output $25/1M, cached input $0.5/1M

Per call (25,000 in + 1,000 out tokens):
input: $0.1250
output: $0.0250
per call total: $0.1500

Across 5,000 calls: $750.00

Ways to pay less for the same 5,000 calls:
with cached input: $187.50
via batch API: $375.00


Nothing here is rounded or guessed. The rate is verified, date-stamped, and the server multiplied.

Open a second session: same call across four models, ranked```
$ You: compare that call on Opus 4.8, Sonnet 5, GPT-5.6 Terra and Gemini 3.1 Pro

  llm-cost › compare_models_cost

  25,000 in + 1,000 out, cheapest first:

  1. Claude Sonnet 5      $0.0600 /call    $300.00 /5k
  2. Gemini 3.1 Pro       $0.0620 /call    $310.00 /5k
  3. GPT-5.6 Terra        $0.0775 /call    $387.50 /5k
  4. Claude Opus 4.8      $0.1500 /call    $750.00 /5k

  Ranking uses each model's live feed entry, not remembered prices.

The gap it closes

An assistant on its own An assistant with llm-cost
quotes output rates from training data, often a generation stale reads the current rate, dated
flattens the estimate to "a few cents" $0.1500 per call, $750.00 across 5,000
never mentions batch or caching discounts $375.00 batch, $187.50 cached, only where the model really offers them
confidently wrong, no way to tell every figure traces to a feed entry with a verification date

The same numbers answer in a browser through the LLM calculator, and the LLM category hub ranks every tracked model by rating and price.

Where the numbers travel```mermaid

flowchart LR
V["provider pricing pages<br/>17 providers"] --> CE["verification<br/>date-stamped checks"]
CE --> F["model prices feed<br/>69 models, USD per 1M tokens"]
F -->|"6h cache, serve stale on failure"| MCP["llm-cost server<br/>local arithmetic"]
MCP --> A["your agent"]


The server never calls a provider API. It reads one public feed, `llms-model-prices.json`, and computes locally. Nothing to rate-limit, no key to leak, and a network hiccup serves the last good copy instead of an error. How each price gets checked is written up in the methodology, and the catalog behind it ships as an open dataset under CC BY 4.0.

## The six tools

Four do the math. Two help you find the exact model id the math wants.

| Tool | Answers | Params |
|---|---|---|
| `estimate_cost` | one call, or N identical calls, in dollars | `model`, `input_tokens`, `output_tokens`, `calls?` |
| `compare_models_cost` | the same call priced across 2 to 6 models | `models[]`, `input_tokens`, `output_tokens` |
| `monthly_budget` | daily, monthly, yearly spend for a workload | `model`, `daily_calls`, `avg_input_tokens`, `avg_output_tokens` |
| `cheapest_models` | lowest-cost models, optional context floor | `min_context?`, `limit?` |
| `list_models` | every model with rates, context and tier | `provider?` |
| `list_providers` | providers with model counts and cheapest pick | none |

Token rules of thumb, for when nobody knows the counts

- A page of English prose is roughly 500 tokens; one token is about four characters.
- Model references are forgiving: `claude-opus-4-8`, `Opus 4.8` and `anthropic/opus` resolve to the same model. When the resolver is unsure, it returns candidates instead of guessing.
- `cheapest_models` ranks by a blended rate weighting input to output 3 to 1, because real workloads read far more than they write. Confirm the winner with `estimate_cost` on your actual split.

## Prompts

| Prompt | Args | Runs |
|---|---|---|
| `estimate_my_workflow` | `workflow`, `model?` | token estimates plus per-run and monthly cost for a described workflow |
| `pick_cheapest_model` | `task` | cheapest model that still meets the requirement, top candidates priced |
| `forecast_ai_budget` | `model`, `usage` | monthly and yearly bill projected from expected volume |

## Wire it up```json
{
  &quot;mcpServers&quot;: {
    &quot;llm-cost&quot;: {
      &quot;command&quot;: &quot;npx&quot;,
      &quot;args&quot;: [&quot;-y&quot;, &quot;@comparedge/llm-cost-mcp@latest&quot;]
    }
  }
}

Claude Desktop keeps this file at ~/Library/Application Support/Claude/claude_desktop_config.json. Cursor: Settings, then MCP. VS Code with Copilot reads .vscode/mcp.json. Restart the client; six tools appear. No API key, no account. Per-client walkthroughs live in the setup guide.

Family

Built by ComparEdge, where software prices are checked against vendor pages before anyone quotes them. Two siblings share the data: the full catalog server and a price-change watcher, both on ComparEdge MCP.

MIT licensed. JSON-RPC 2.0 over stdio, standard Model Context Protocol.

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
llm-cost 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

llm-cost 怎么在 Claude Desktop、Claude、Cursor 里配置?

它的传输方式未标注,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

llm-cost 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

llm-cost 需要 API Key 吗?

资料标注需要OAuth 授权认证,使用前准备好对应凭据,并按最小权限配置。

llm-cost 支持哪些客户端?

资料标注支持 Claude Desktop、Claude、Cursor、VS Code、Gemini CLI、Codex;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

llm-cost 能提供哪些能力?

资料显示能力标签包括 llm、pricing、tokens、ai models。具体工具清单以官方文档为准。

llm-cost 需要什么运行环境?

运行时为 node。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 未标注。