
llm-oracle
io.github.weiseer由 GitHub 账号 weiseer 发布v0.2.0更新于 Oct 24, 2026
Up-to-date LLM pricing + availability catalog with cited sources for AI agent routing.
概览
一个本地 MCP 服务器,为助手提供带引用来源的 LLM 供应商价格与可用性目录,便于比较模型并按 token 用量找出最便宜的选项。
- 可以做什么
- 列出模型,可按供应商或能力筛选,并获取单个模型的完整记录及其来源链接和时间戳。按给定输入与输出 token 数估算成本并对模型排序,可要求特定能力。并排比较多个模型,并查询某个模型当前的可用状态及其引用来源。本版本目录覆盖五家供应商、约十个模型。
- 适用场景
- 适合助手在请求时需要在多个 LLM 供应商或模型之间做选择,且需要当前价格而非硬编码表格的场景。也适合核查或引用价格说法的出处,因为每条记录都链接到供应商官方文档。
- 运行要求
- 以本地进程运行;README 的配置方式使用 Python 并需克隆仓库,清单中则列出 npm 包。默认需要访问托管目录的网络;设置 LLM_ORACLE_LOCAL_ONLY 可仅使用内置目录,设置 LLM_ORACLE_URL 可指向其他目录。免费额度无需账号或密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 llm-oracle,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
llm-oracle
Continuously-updated catalog + query API for LLM provider availability and pricing.
Built by weiseer.
What it does
Given a question like "for this prompt of N input tokens plus M expected output tokens, which currently-available model offers the lowest cost?" the oracle answers in milliseconds, with the source URL it used for the pricing claim.
Use it as:
- an MCP server for AI agents that need to make routing decisions at inference time
- an HTTP JSON API for any tool that wants up-to-date LLM pricing/availability
- a raw
catalog.jsonyou can audit, vendor, or contribute fixes to
Why
LLM pricing changes monthly. Every multi-model app rebuilds the same lookup table. We maintain it so you don't.
- Cited: every pricing row links to the provider's official documentation
- Versioned:
as_oftimestamp on every response so you know how fresh the data is - Open: catalog is public JSON, MIT licensed; client/server code is Apache-2.0
- Cross-checked: source data verified against the open-source LiteLLM price file where overlap exists
Coverage (v0)
5 providers, ~10 models. Growing as we observe demand.
- Anthropic: Claude Opus 4.7, Sonnet 4.6, Haiku 4.5
- OpenAI: GPT-5, GPT-4o
- Google: Gemini 2.5 Pro, Gemini 2.5 Flash
- DeepSeek: Reasoner, Chat
- Mistral: Large
Quickstart
As an MCP server (Claude Desktop, Cursor, Continue, Cline, etc.)
Add to your MCP client config:
The agent now has tools:
list_models(provider?, capability?)→ list models, optionally filteredget_model(model_id)→ full record for one modelfind_cheapest(input_tokens, output_tokens, required_capabilities?)→ ranked by estimated costcompare_models(model_ids[], input_tokens?, output_tokens?)→ side-by-sidecheck_availability(model_id)→ current status with cited source
As an HTTP API
As raw JSON
Pricing
Paid tiers settle in USDC. Email [email protected] to subscribe; we issue an API key and confirm receipt. (We'll automate this when the first three paid customers exist.)
Schema
See catalog.json for the canonical schema. Per-model fields include model_id, provider, family, context_window, max_output_tokens, input_price, output_price, cached_input_price, capabilities, availability_status, source URLs, and timestamps.
Update cadence
- Pricing: daily cron + manual when a price change is publicly announced
- Availability: 5-minute poll of provider status pages where available; daily smoke-test otherwise
Errors and disagreements
Found a stale price? An incorrect capability flag? A missing model? Open an issue — please include the source URL we should be tracking.
Telemetry
The hosted service logs each request as a single event (caller, query summary, latency, paid status) to weiseer's append-only audit ledger. The MCP server you self-host logs nothing.
Building on this
The catalog format is MIT licensed. Vendor it, mirror it, build on top of it. We ask only that you cite weiseer/llm-oracle somewhere visible if you redistribute the data.
The server and MCP code are Apache-2.0.
Roadmap (probe-pulled, not pre-planned)
This is P-001 in weiseer's strategic backlog — a market sensor for organism's architecture v2. We expand it where users ask, kill it if 4 weeks of public availability brings under 100 calls. Don't expect a polished commercial product; expect honest experimentation with daily updates.
What we might add (in observed-demand order):
- More providers (Cohere, xAI, AI21, Together, Replicate hosted, Bedrock, Azure pricing variants)
- x402 micropayments for high-volume agent buyers (deferred — see arXiv 2605.11781 on protocol security)
- Historical pricing time-series
- SLA + uptime aggregates per provider
- Per-region availability where providers vary
- Self-hosted model cost estimators (with caveats)
Contact
来源:README.md,提交 d45f6f1
工具
0版本历史
1- v0.2.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。