cost_tracker
Record and retrieve AI API call costs by team. Persists to Cloudflare KV — survives cold starts and scale-out.
teammodelactionrequiredmetadatainputTokensoutputTokens
io.github.lazymac2xPublished by GitHub account lazymac2xv1.0.0Updated Oct 25, 2026
Cloudflare Workers MCP server: ai-cost-optimizer
A remote MCP server for tracking, calculating, budgeting and forecasting AI API spending by team and model.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.lazymac2x%2Fai-cost-optimizer/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Add this to your client's mcpServers config.
{
"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
Source: README.md at commit 234f023
Record and retrieve AI API call costs by team. Persists to Cloudflare KV — survives cold starts and scale-out.
teammodelactionrequiredmetadatainputTokensoutputTokensCalculate cost from token counts for any supported AI model. Stateless — no KV required.
modelrequiredinputTokensrequiredoutputTokensrequiredSet and check budget limits for teams. Raises a flag when a configurable spending threshold is reached.
teamactionrequiredthresholdbudgetLimitAnalyze 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.
teamforecastDayshistoricalDays90% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
Declare a license in the repository or the registry entry.