Agent Cost Tracker MCP

AI agents burn tokens and call APIs โ€” now they can track what it costs. Budget awareness for autonomous agents.

๐Ÿ†“ Free Tier: 1,000 calls/mo โญ Pro: $19/mo unlimited ๐Ÿ”Œ MCP Protocol
Get Started โ†’

๐Ÿ”ง Features

๐Ÿ“Š

Cost Tracking

Track every API call with model name, token counts, and auto-calculated costs.

๐Ÿ’ฐ

Budget Alerts

Set monthly budgets with configurable alert thresholds. Get warned before you overspend.

๐Ÿ“ˆ

Usage Analytics

View spending by model, period (today/week/month/all), with markdown or JSON output.

๐Ÿ”ฎ

Cost Estimation

Estimate costs before making calls โ€” input text, get token count and projected cost.

๐Ÿท๏ธ

Model Pricing Database

Pre-seeded with 10+ models from OpenAI, Anthropic, DeepSeek, Google, Meta, Cohere.

๐Ÿ”Œ

MCP Native

Standard MCP protocol โ€” plug into any MCP client like Claude Desktop, Cursor, or Smithery.

๐Ÿ“ฆ Installation

# Clone and install git clone https://github.com/rahu258/agent-cost-tracker-mcp.git cd agent-cost-tracker-mcp pip install -r requirements.txt

Claude Desktop Config

{ "mcpServers": { "agent-cost-tracker": { "command": "python", "args": ["/path/to/server.py"] } } }

๐Ÿ”Œ 6 MCP Tools

cost_track_call

Record an API call โ€” model, tokens, cost. Returns running totals.

cost_get_usage

Usage summary by period with per-model breakdown.

cost_set_budget

Set monthly spend limit and alert threshold.

cost_list_models

All supported models with per-token pricing.

cost_check_budget

Current budget status with projected spend.

cost_estimate

Estimate cost before making a call.

๐Ÿ’ณ Pricing

๐Ÿ†“ Free

$0/month
  • Up to 1,000 tracked calls/month
  • All 6 MCP tools
  • Model pricing database
  • Budget alerts
  • Community support
Get Started