nikhilnt
TokenBurnRate
See where your AI tokens go — and how to spend less of them.
TokenBurnRate is an MCP server + CLI that logs every Claude / GPT / Gemini API call locally, shows you a cost dashboard in your terminal, and tells you exactly how to reduce that cost.
⬡ token-tracker LAST 7 DAYS
────────────────────────────────────────────────────────────────────────
Overview
Total cost $18.7421 (~$80.59/month est.)
API calls 347
Input tokens 4.82M
Cache reads 620K (11.4% hit rate)
Daily Cost
Mon Jun 02 ████████████░░░░░░░░░░░░ $2.14
Tue Jun 03 ████████████████████░░░░ $3.82
Thu Jun 05 ████████████████████████ $4.51
💡 Optimization Hints saves $31.20/mo
● CRIT Prompt cache barely used
Cache hit rate: 11.4% — target is 30–60%
Action: Move static content to top of messages
Est. saving: $12.40/month
● HIGH Expensive model doing test generation
104 test-gen calls on Sonnet costing $2.25/week
Action: Route to claude-haiku-4-5, saves 80%
Est. saving: $7.80/monthInstall
npm install -g token-tracker-mcpOr run without installing:
npx token-tracker-mcp reportAdd to Claude Desktop
node scripts/setup.jsOr add manually to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"token-tracker": {
"command": "token-tracker",
"args": ["serve"]
}
}
}Restart Claude Desktop. Done.
CLI Commands
Command | Description |
| Full 7-day dashboard |
| Monthly report |
| Today only |
| Optimization hints ranked by $ saving |
| Deep-dive on one hint |
| One-line: cost · cache % · top hint |
| Budget gauges |
| Pricing table for all models |
| Raw CSV export |
MCP Tools (use inside Claude)
Tool | Description |
| Log an API call — auto-calculates cost |
| Summary for today / week / month / all |
| Ranked optimization hints with $ savings |
| Deep-dive on a specific hint |
| Set a daily / weekly / monthly spend limit |
| Sessions ranked by cost |
| Pricing table |
| CSV dump |
Optimization Hints Engine
8 deterministic rules — no LLM calls, runs instantly on your local data:
Hint | Triggers when |
| Cache hit rate < 30% |
| Test gen running on Sonnet / Opus |
| Debugging on Opus |
| Output / input ratio > 0.35 |
| Any session costs 3× your average |
| Avg tokens / call > 8K |
| Sessions with 30+ high-token calls |
| 100% traffic on one expensive model |
Each hint includes severity · evidence · recommended action · estimated monthly saving.
Privacy
All data stored at ~/.token-tracker/usage.db (SQLite).
Nothing leaves your machine. No telemetry, no account required.
Development
git clone https://github.com/nikhilnt1234/TokenBurnRate.git
cd TokenBurnRate
npm install --ignore-scripts
npx tsup
npm testRoadmap
Team / Supabase backend (multi-user shared dashboard)
Weekly email digest
Slack / webhook alerts
macOS menubar app
License
MIT © 2026 Nikhil T
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nikhilnt1234/TokenBurnRate'
If you have feedback or need assistance with the MCP directory API, please join our Discord server