cost_tracker
Record and retrieve AI API call costs by team. Persists to Cloudflare KV — survives cold starts and scale-out.
teammodelaction必填metadatainputTokensoutputTokens
io.github.lazymac2x由 GitHub 账号 lazymac2x 发布v1.0.0更新于 Oct 25, 2026
Cloudflare Workers MCP server: ai-cost-optimizer
一个远程 MCP 服务器,用于按团队和模型跟踪、计算、设定预算并预测 AI API 支出。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.lazymac2x%2Fai-cost-optimizer/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"ai-cost-optimizer": {
"type": "http",
"url": "https://api.lazy-mac.com/ai-cost-optimizer/mcp"
}
}
}Cloudflare Workers MCP server: ai-cost-optimizer. REST + MCP (JSON-RPC 2.0). Live: api.lazy-mac.com/ai-cost-optimizer
来源:README.md,提交 234f023
Record and retrieve AI API call costs by team. Persists to Cloudflare KV — survives cold starts and scale-out.
teammodelaction必填metadatainputTokensoutputTokensCalculate cost from token counts for any supported AI model. Stateless — no KV required.
model必填inputTokens必填outputTokens必填Set and check budget limits for teams. Raises a flag when a configurable spending threshold is reached.
teamaction必填thresholdbudgetLimitAnalyze costs broken down by model for a given team over a configurable time window.
daysteamForecast future AI spend based on historical usage patterns using daily-average linear projection.
teamforecastDayshistoricalDays已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在仓库或注册中心条目中声明许可证。