- Claude Token Analyzer
Claude Token Analyzer
Diagnoses token waste in Claude Code sessions. Detects 6 types of statistical anomalies with severity scoring. Fully local — parses ~/.claude JSONL files into SQLite, nothing leaves your machine. Plugin-native: one command install, then just ask "cta".
Overview
claude-token-analyzer
Diagnoses token waste in Claude Code sessions. Detects 6 types of statistical anomalies with severity scoring.
Features
- 6 Anomaly Types: Token explosion, low cache hit, cost inefficient, extended session, repetitive errors, unusual model distribution
- Cost Audit: Per-project, per-model cost breakdown with trend analysis
- Fully Local: Parses ~/.claude JSONL files into SQLite — nothing leaves your machine
- Plugin-Native: One command install, natural language interface
Install
claude plugin install claude-token-analyzer
Usage
Just ask Claude Code naturally:
- "Scan my sessions for anomalies"
- "How much did I spend this month?"
- "Show usage trends for the past week"
MCP Tools
| Tool | Description |
|---|---|
| sync_db | Sync JSONL session logs to SQLite |
| anomaly_scan | Detect 6 types of usage anomalies |
| cost_report | Monthly cost breakdown by project/model |
| trend_report | Daily/weekly/monthly usage trends |
| analyze_session | Deep-dive into a single session |
| analyze_project | Project-level efficiency analysis |
| analyze_global | Cross-project usage overview |
License
MIT
Server Config
{
"mcpServers": {
"claude-token-analyzer": {
"command": "cta-mcp-server",
"args": []
}
}
}Project Info
Created At
2 months agoUpdated At
2 months agoAuthor Name
li195111Star
-Language
-License
-Recommend Servers
View AllSigstore
@3089464667
20 hours ago
Playwright Mcp
@microsoft
Playwright MCP server
TypeScript
10 months ago
Crevio
a day ago