Context7
Up-to-date docs for AI agents
제작자가 쓴 설명(영어 원문)
Offline MCP: predict LLM call cost and pick the cheapest capable model. No keys, no network.
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
필요한 것
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요
{
"mcpServers": {
"modelcostsaver": {
"command": "npx",
"args": [
"-y",
"@workswarm/modelcostsaver"
]
}
}
}터미널에서 이 명령어를 실행하세요
claude mcp add modelcostsaver -- npx -y @workswarm/modelcostsaver프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"modelcostsaver": {
"command": "npx",
"args": [
"-y",
"@workswarm/modelcostsaver"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"modelcostsaver": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@workswarm/modelcostsaver"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검
레지스트리 이름이 GitHub 계정 sachinuppal 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(0.1.1)은 5개월 전 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.
같은 카테고리에는: Context7, Codebase Memory, Exa
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
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:
predict_cost, estimate_cost)select_optimal_model)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.
Run it directly with npx (no install, no keys):
npx -y @workswarm/modelcostsaver
Or write the config for your editor in one command:
npx -y @workswarm/modelcostsaver install --client cursor
[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=modelcostsaver&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB3b3Jrc3dhcm0vbW9kZWxjb3N0c2F2ZXIiXX0=) — 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.
| 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.
For a tool that sits in your editor, trust is the whole pitch. ModelCostSaver is:
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.record_usage only writes when you set MODELCOSTSAVER_LEDGER=on, and only to a JSONL file under your own config dir.@modelcontextprotocol/sdk and zod. Nothing else. Small supply-chain surface, fast npx cold start.@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.
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/mcp.json (global) or .cursor/mcp.json (project):
{ "mcpServers": { "modelcostsaver": { "command": "npx", "args": ["-y", "@workswarm/modelcostsaver"] } } }
npx -y @workswarm/modelcostsaver install --client cursor
claude mcp add modelcostsaver -- npx -y @workswarm/modelcostsaver
or a .mcp.json in the repo root (which install --client claude writes):
{ "mcpServers": { "modelcostsaver": { "command": "npx", "args": ["-y", "@workswarm/modelcostsaver"], "env": { "MODELCOSTSAVER_PROVIDERS": "anthropic" } } } }
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.
Add the same mcpServers block to claude_desktop_config.json.
.vscode/mcp.json:
{ "servers": { "modelcostsaver": { "command": "npx", "args": ["-y", "@workswarm/modelcostsaver"], "type": "stdio" } } }
npx -y @workswarm/modelcostsaver install --client vscode
~/.codeium/windsurf/mcp_config.json with the same mcpServers block, or:
npx -y @workswarm/modelcostsaver install --client windsurf
Same stdio command/args. Use the matching installer:
npx -y @workswarm/modelcostsaver install --client cline
npx -y @workswarm/modelcostsaver install --client zed npx -y @workswarm/modelcostsaver install --client antigravity
After adding the server, restart the client and confirm the seven tools appear in the tool list.
ModelCostSaver advises; it does not route traffic. So every recommendation is filtered to what you can actually act on, along two independent axes.
Axis 1, availability. Recommendations are scoped to a set of allowed providers. The default is derived from the connected client (read from the MCP handshake): a Claude client defaults to anthropic because its own inference is Claude; multi-provider clients (Cursor, VS Code, Windsurf, Cline, Zed, Antigravity) and unknown clients default to all providers. The scope and its source are always echoed in reasoning, and it is overridable: a per-call providers arg, then MODELCOSTSAVER_PROVIDERS, then config, then the client default, then all.
Axis 2, target.
target: 'self' (default): the agent's or your own next inference in this client. The Axis-1 scope applies. In Claude Code this means cross-tier Anthropic moves (Opus to Haiku), which you can act on right now.target: 'code': a model you will call from your own application, where you supply that provider's key. The client scope does not apply, so all in-catalog providers are eligible.ModelCostSaver is always honest about the gap: if the globally-cheapest model is outside your actionable set, it is surfaced as cheaperIfAvailable with the reason, never silently chosen. For example, a Claude Code target: self summarize call selects claude-haiku-4-5 and notes that a cheaper non-Anthropic model exists if you pass target: code.
~4 chars/token, tunable via MODELCOSTSAVER_CHARS_PER_TOKEN). The heuristic is approximate but common-mode across candidates, which is what relative ranking needs. Output tokens come from your explicit value, then the task class cap, then the model cap, then a conservative default.(inTok / 1e6) * inputPerMillion + (outTok / 1e6) * outputPerMillion, in full-precision USD and as integer usdMicros. A prediction is never rounded to cents.taskClass, else a transparent keyword/length classifier), filter candidates by tier (degrade up, never below the floor), capabilities, and provider scope, forecast each, drop those over budget into rejected, and pick the cheapest survivor. Every step is recorded in reasoning, and a fallbackChain is returned for retry-on-failure.All config is optional. Precedence: tool-call arg, then env var, then modelcostsaver.config.json (cwd, then your user config dir), then the built-in default.
| Key | Env | Default | Purpose |
|---|---|---|---|
| tier overrides | MODELCOSTSAVER_TRIVIAL_MODEL, _FAST_MODEL, _STANDARD_MODEL, _REASONING_MODEL | catalog cheapest per tier | Pin a preferred model per tier. |
| providers | MODELCOSTSAVER_PROVIDERS | client-derived | Allowlist for recommendations (Axis 1). |
| default provider | MODELCOSTSAVER_PROVIDER | none | Bias select_optimal_model. |
| include local | MODELCOSTSAVER_INCLUDE_LOCAL | off | Surface self-hosted / $0 models. |
| chars/token | MODELCOSTSAVER_CHARS_PER_TOKEN | 4 | Tune the token estimator. |
| refresh | MODELCOSTSAVER_REFRESH | off | Enable the opt-in remote catalog refresh. |
| catalog url | MODELCOSTSAVER_CATALOG_URL | bundled | Override the refresh source. |
| ledger | MODELCOSTSAVER_LEDGER | off | Enable the local record_usage write. |
| telemetry | MODELCOSTSAVER_TELEMETRY | off | Kept off; listed for transparency. |
Prices change often, so ModelCostSaver ships a versioned, dated seed and is honest about its freshness.
catalog.json carries a catalogVersion, an asOf date, and a source on every entry.MODELCOSTSAVER_REFRESH=on fetches a single static JSON, validates it with zod, caches it with a TTL, and falls back to the bundle on any failure.pricingOverrides map in modelcostsaver.config.json lets you inject negotiated or enterprise rates without forking.Verify before you trust a number for billing. The seed is re-checked against each provider's public pricing page at release; the asOf date tells you when. For absolute precision in your own accounting, confirm against your provider invoice.
npm install # first time only
npm run build # tsup bundle to dist/index.js npm test # vitest npm run typecheck # tsc --noEmit npm run smoke # stdio JSON-RPC smoke test (asserts stdout stays clean)
Apache-2.0. See NOTICE.