技能潮 SkillTide 提交收录
官方说明7 个来源MCP 服务8 天前
sachinuppal/modelcostsaver

sachinuppal/modelcostsaver

Offline MCP server that predicts LLM call cost and recommends the cheapest capable model before you call it. No API keys, no network. npx @workswarm/modelcostsaver
在 GitHub 查看 ↗直链 · 无中转页
配置模板(请按你的客户端调整)
claude mcp add modelcostsaver -- npx -y modelcostsaver
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
0 ★ · sachinuppal/modelcostsaver · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 7 个来源列出
评分构成
综合分 703 · 7 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 sachinuppal/modelcostsaver;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

ModelCostSaver

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

**Predict the cost of an LLM call before you make it, and pick the cheapest model that still does the job, offline, from your editor.**
ModelCostSaver is a Model Context Protocol server. It gives any AI coding agent or IDE a free, zero-config tool that answers the three questions every agent should ask before an LLM call:
1. **What will this prompt cost on each candidate model?** (predict_cost, estimate_cost)
2. **Which is the cheapest model that meets the task?** (select_optimal_model)
3. **How do my options compare side by side?** (compare_models)
It is pure pricing-and-routing math over a bundled, dated catalog, so the core needs **no API keys and makes no network calls**.
---
Quick start
Run it directly with npx (no install, no keys):
Or write the config for your editor in one command:
**Add to Cursor** — one click installs it in Cursor. Or drop the block below into ~/.cursor/mcp.json, or run npx -y @workswarm/modelcostsaver install --client cursor.
Listed on the official MCP registry and editor MCP directories as io.github.sachinuppal/modelcostsaver.
---
The seven tools
| Tool | What it answers |
|---|---|
| estimate_cost | Cost of one call when you already know (or can estimate) the token counts. |
| predict_cost | Forecast cost across a candidate set from a prompt, before the call. Ranked cheapest-first. |
| select_optimal_model | The cheapest model that meets the task tier, capabilities, and budget, with full reasoning. |
| compare_models | A side-by-side cost table for a fixed token shape, with relativeToCheapest. |
| list_models / get_pricing | The pricing catalog, filterable by provider, tier, capability, or max input price. |
| optimize_request | "I plan to call model X, can I do better?" Returns the cheaper option and the savings. |
| record_usage | Append a local usage record (opt-in; off unless MODELCOSTSAVER_LEDGER=on). |
Every cost-bearing result carries catalogVersion and asOf so you can see how fresh the prices are. Every selection carries a reasoning array, never a black-box pick.
---
Trust: no keys, offline, no telemetry
For a tool that sits in your editor, trust is the whole pitch. ModelCostSaver is:
- **No API keys.** The core does pricing math, not provider calls. Nothing to leak.
- **Offline by default.** The core tools return correct answers with no network access. The only outbound request is an opt-in catalog refresh (MODELCOSTSAVER_REFRESH=on), a single GET of a static JSON, zod-validated before it can replace the bundled catalog, and it always falls back to the bundle on any failure.
- **No telemetry.** Ever. The default is silent and local. record_usage only writes when you set MODELCOSTSAVER_LEDGER=on, and only to a JSONL file under your own config dir.
- **Two dependencies.** @modelcontextprotocol/sdk and zod. Nothing else. Small supply-chain surface, fast npx cold start.
- **Apache-2.0.** An open-source developer tool published by Workswarm as @workswarm/modelcostsaver. The shipped bundle contains no proprietary or internal-service code: no internal-framework imports and no internal identifiers, just dependency-free pricing-and-routing math.
stdout carries only JSON-RPC; all logs go to stderr.
---
Install per IDE
ModelCostSaver speaks stdio MCP, so the entry is the same npx command everywhere. Use install --client to write it idempotently, or paste the block by hand.
Cursor
~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
Claude Code
or a .mcp.json in the repo root (which install --client claude writes):
Claude clients run Claude for their own inference, so the install seeds MODELCOSTSAVER_PROVIDERS=anthropic as a sensible default for target: self recommendations. Override it per call or with the env var. See Self vs code.
来源
awesome · https://github.com/sachinuppal/modelcostsaver
按领域浏览
MCP 服务
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引