claude-token-tracker-mcp
v1.0.0
Published
Real-time token usage tracker & cost optimizer for Claude Code. Monitor spend, set budgets, get alerts.
Maintainers
Readme
Claude Token Tracker MCP
Real-time API usage monitoring and cost optimization for Claude Code. Track every token, set budget alerts, and reduce your Anthropic bill.
Features
- Real-time usage dashboard — See token consumption across all models
- Budget alerts — Get notified before you overspend
- Model pricing comparison — Always use the most cost-effective model for your task
- CSV export — Download usage reports for accounting
- Smart optimization tips — AI-powered suggestions to cut costs
Install
npm install -g claude-token-tracker-mcpThen add to your Claude Code MCP config:
{
"mcpServers": {
"token-tracker": {
"command": "npx",
"args": ["claude-token-tracker-mcp"]
}
}
}Tools
| Tool | Description |
|------|-------------|
| track_usage | Get current usage summary |
| set_budget_alert | Configure spending limits |
| list_models | Compare model pricing |
| estimate_cost | Calculate expected cost |
| export_report | Export CSV report |
| optimize_tokens | Get cost-saving tips |
Requirements
- Claude Code v2.0+
- Node.js 18+
License
MIT
