TrakTokenBeta

MCP 插件

在 Cursor、Claude Code 等 IDE 中直接查询 LLM 价格,无需离开编辑器。

安装

Coming Soon

MCP 插件正在开发中,预计 2026 Q3 发布。发布后只需一行命令即可安装:

npx install-mcp traktoken

工具列表

get_model_price

获取指定 LLM 模型的最新定价信息

参数: model: string, provider?: string, currency?: "USD" | "CNY"
get_model_price("deepseek-v3")
→ { input: $0.27/1M, output: $1.10/1M, value_score: 92 }
compare_models

对比多个模型的价格与性价比

参数: models: string[], scenario?: string, sort_by?: "price" | "value"
compare_models(["gpt-4o", "deepseek-v3", "claude-3-5-sonnet"])
→ Ranked comparison with value scores
calculate_monthly_cost

根据使用场景估算每月 API 费用

参数: model: string, daily_requests: number, avg_input: number, avg_output: number
calculate_monthly_cost("gpt-4o-mini", 10000, 512, 256)
→ { monthly_cost: ¥432, per_request: ¥0.0014 }

使用场景

  • --写代码时随手查询模型价格,选择最合适的 API
  • --在 Cursor 中直接对比多个模型的性价比
  • --估算项目的月度 API 预算,不用打开浏览器
  • --团队内快速分享模型价格信息