TokenOracle

com.guffeyholdings由 guffeyholdings.com 發布官方發布者v1.0.1更新於 Oct 24, 2026

Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.

已驗證Streamable HTTP可網頁執行金融AI 與機器學習

概覽

AI 產生的概覽

TokenOracle 是託管的 MCP 伺服器,可在代理消耗 token 之前估算、比較並規劃 LLM API 成本。

可以做什麼
估算單次 LLM 呼叫或最多 100 個任務批次的美元成本,並提供建議模型與上下文容量判斷。依價格、速度等級與品質等級比較並排序各供應商的模型,可依品質、成本和供應商篩選。對照每月預算檢查預定任務,並找出符合指定預算上限的最便宜模型。檢視預算狀態、請求活動、用量摘要和用量排行榜。讀取伺服器中繼資料、模型 ID、token 啟發式規則和價格變更記錄等資源,並使用引導式成本分析提示範本。
適用情境
適合代理規劃多步驟或大批量 LLM 任務、希望在花錢前取得成本估算和更便宜模型替代方案的情境。也適合依 API 金鑰追蹤每月預算支出的團隊。
執行需求
遠端 streamable-HTTP 端點,或以 npx 執行 npm 橋接套件 token-oracle-mcp(需要 Node.js)。需要託管 API 金鑰,透過 X-API-Key 標頭或 TOKEN_ORACLE_API_KEY 環境變數傳入;可選 TOKEN_ORACLE_BASE_URL 與 TOKEN_ORACLE_SUBJECT。需要連線至託管服務的網路。
安裝前請注意
README 聲明儲存庫已封存且服務已關閉,可能完全無法使用。API 金鑰是託管服務憑證;橋接套件會在本機儲存憑證,並可在沒有金鑰時自動取得計量試用憑證。付費 Pro 方案為每月 29 美元。用量與支出資料會傳送給第三方託管服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 TokenOracle,將其新增到工作區。
  2. 連接 Custom headers 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.guffeyholdings%2Ftoken-oracle/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "tokenoracle": {
      "type": "http",
      "url": "https://mcp.guffeyholdings.com/TokenOracle",
      "headers": {
        "X-API-Key": "<VALUE>",
        "X-Token-Oracle-Subject": "<VALUE>"
      }
    }
  }
}

README

THIS REPO IS ARCHIVED AND THE SERVICE HAS BEEN SHUTDOWN

TokenOracle MCP

Token Oracle is a Model Context Protocol (MCP) server that estimates, compares, and controls LLM API costs before agents spend tokens. It exposes nine tools, four read-only Resources, and a cost_analysis_workflow Prompt template. It uses a proprietary pricing algorithm without a backing LLM to ensure deterministic budget workflows.

Designed to work with agent swarms backing one or zero employee companies, Token Oracle acts as a tiny CFO within your OpenClaw swarm keeping spend down and making suggestions to improve promptings.

Save them tokens, call Token Oracle today!

MCP tools exposed:

  • estimate_cost — Estimates the USD cost of a single LLM API call before execution. Input: task_description, prompt_text, task_type, or explicit token_count. Output: cost_usd, recommended_model, confidence, will_fit_context, pricing_updated. Annotations: readOnlyHint:true, idempotentHint:true, openWorldHint:false.
  • estimate_cost_batch — Prices up to 100 LLM tasks in a single call. Returns per-task breakdown, total_cost_usd, and cheapest_model_for_all. Use before starting any multi-step pipeline.
  • compare_models — Ranks LLM pricing across all supported providers for a given task. Returns models sorted by cost with speed_tier and quality_tier. Supports filtering by min_quality, max_cost_usd, and provider. Input: task_type, token_count, or prompt_text.
  • budget_check — Checks whether a planned task fits within a monthly budget. Returns can_proceed (boolean), remaining_budget_usd, budget_consumed_pct, and cheaper_alternatives with savings_pct. Input: monthly_budget_usd, current_spend_usd, and task description.
  • find_cheapest_for_budget — Inverse of budget_check. Given a budget_usd cap and task, returns the best model/quality combination within budget plus all alternatives ranked by quality then cost.

MCP Resources exposed:

  • token-oracle://meta — Machine-readable server capability document (version, model_count, pricing metadata)
  • token-oracle://models — Model IDs with metadata for discovery and validation
  • token-oracle://heuristics — Task-type token heuristics and keyword classifier patterns (auditable)
  • token-oracle://pricing/changelog — Append-only log of pricing changes; use to detect pricing updates over time

MCP Prompt exposed:

  • cost_analysis_workflow — Guided three-step prompt template: estimate_cost → compare_models → budget_check. Arguments: task_description, monthly_budget_usd (optional), quality_threshold (optional).

Supported providers: Anthropic, OpenAI, Google, Groq, Together AI, Mistral, DeepSeek, Cohere (100+ models).

Canonical agent workflow example: Goal: Run 500 product description generation tasks. Budget $50/mo, current spend $43.

  1. estimate_cost_batch({ tasks: [{ task_type: "generate", token_count: { input: 200, output: 800 }, quantity: 500 }] }) → total_cost_usd: $0.60
  2. compare_models({ token_count: { input: 200, output: 800 }, task_type: "generate", min_quality: "med", max_cost_usd: 0.002 }) → deepseek-v3 at $0.00035/task ($0.175 total) — 71% cheaper, same quality tier
  3. budget_check({ monthly_budget_usd: 50, current_spend_usd: 43, token_count: { input: 200, output: 800 }, model: "deepseek-v3" }) → can_proceed: true, remaining: $6.825, budget_consumed_pct: 2.4% Decision: Use deepseek-v3. Save $0.425 vs gpt-4o-mini.

Pricing:

  • Free: 1000 API calls/day, all hosted tools via the remote endpoint, no credit card
  • Pro ($29/mo): Unlimited calls, track_spend tool (persisted cost ledger per API key), priority throughput, spend attribution per agent/task/session

Contact: [email protected]

Hosted endpoint

  • Canonical remote MCP URL: https://mcp.guffeyholdings.com/TokenOracle
  • Canonical MCP name: com.guffeyholdings/token-oracle

Direct remote configuration:

json
{  "mcpServers": {    "token-oracle": {      "type": "streamable-http",      "url": "https://mcp.guffeyholdings.com/TokenOracle",      "headers": {        "X-API-Key": "${TOKEN_ORACLE_API_KEY}"      }    }  }}

npm bridge package

For local clients that still expect an npm-installed stdio server, use token-oracle-mcp.

Zero-input trial flow:

Start the bridge with no API key and, when the hosted service has trial auth enabled, it will automatically fetch and store a metered trial credential on first launch.

json
{  "mcpServers": {    "token-oracle": {      "command": "npx",      "args": ["-y", "token-oracle-mcp"]    }  }}

One-time explicit login flow:

bash
npx -y token-oracle-mcp login

With --api-key, that validates and stores a paid hosted API key. Without --api-key, it requests and stores a hosted trial credential instead. After either flow, the MCP config does not need to inject TOKEN_ORACLE_API_KEY.

json
{  "mcpServers": {    "token-oracle": {      "command": "npx",      "args": ["-y", "token-oracle-mcp"]    }  }}

If you prefer stateless setup, keep passing TOKEN_ORACLE_API_KEY as an environment variable instead.

Hosted trial behavior:

  • Trial credentials are metered and capped server-side
  • Once the hosted trial request limit is reached, the service returns an upgrade-required response
  • The hosted service reuses the same still-valid trial credential for the same claimant instead of minting a fresh token each time
  • Trial issuance is separately throttled and can be blocked by server-side abuse risk scoring
  • Later, a hosted upgrade flow can replace the stored trial credential with a paid credential without changing MCP config

Optional bridge environment variables:

  • TOKEN_ORACLE_API_KEY: optional hosted API key; overrides any stored credential
  • TOKEN_ORACLE_BASE_URL: override for the remote endpoint; defaults to https://mcp.guffeyholdings.com/TokenOracle
  • TOKEN_ORACLE_SUBJECT: optional end-user subject forwarded as X-Token-Oracle-Subject

Additional bridge commands:

  • npx -y token-oracle-mcp login: accept --api-key for paid auth, or fetch a hosted trial credential when no key is supplied
  • npx -y token-oracle-mcp logout: remove locally stored credentials

Capabilities

Tools:

  • estimate_cost
  • estimate_cost_batch
  • compare_models
  • budget_check
  • find_cheapest_for_budget
  • get_budget_status
  • list_request_activity
  • get_usage_summary
  • get_usage_leaderboard

Resources:

  • token-oracle://meta
  • token-oracle://models
  • token-oracle://heuristics
  • token-oracle://pricing/changelog

Prompts:

  • cost_analysis_workflow

Versioning

  • Hosted service version: 1.0.6
  • Bridge package version: 1.0.6

來源:README.md,提交 f55e2ff

工具

0
該伺服器需要 API 金鑰等憑證,因此 SourceWeft 無法在沒有憑證的情況下讀取其工具,也未收錄。

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。