Claude Token Analyzer

Created By
li1951112 months ago
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

ToolDescription
sync_dbSync JSONL session logs to SQLite
anomaly_scanDetect 6 types of usage anomalies
cost_reportMonthly cost breakdown by project/model
trend_reportDaily/weekly/monthly usage trends
analyze_sessionDeep-dive into a single session
analyze_projectProject-level efficiency analysis
analyze_globalCross-project usage overview

License

MIT

Server Config

{
  "mcpServers": {
    "claude-token-analyzer": {
      "command": "cta-mcp-server",
      "args": []
    }
  }
}
Project Info
Created At
2 months ago
Updated At
2 months ago
Author Name
li195111
Star
-
Language
-
License
-
Category

Recommend Servers

View All
Tavily Mcp
@tavily-ai

JavaScript
a year ago