Claude Token Analyzer MCP Server

All processing happens locally. The SQLite database lives under the plugin data directory in plugin mode and falls back to `~/.claude/` in standalone

Local serverstdioGo

What is the Claude Token Analyzer MCP Server?

All processing happens locally. The SQLite database lives under the plugin data directory in plugin mode and falls back to ~/.claude/ in standalone mode. No

What you get

  • Diagnose token waste — — Detects 6 statistical anomaly types (HighCost, LowCacheHitRate, CostInefficient, ExcessiveToolUse, HighTokenUsage, UnusualModelMix) with severity scoring
  • Audit costs — — Per-session, per-project, and global cost breakdowns with monthly trends
  • Forecast spending — — Daily/weekly/monthly usage trends with burn-rate projections
  • Optimize cache — — Identifies sessions with poor cache hit rates that inflate costs
  • Prioritize fixes — — Severity-scored anomalies so you know what to fix first, not just what's wrong
  • Converse naturally — — Ask in plain language: "how much did I spend?" or "scan for anomalies"

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
sync_dbSync JSONL session logs to SQLite
analyze_session10-dimension session analysis
analyze_projectProject-level aggregation with sorting
analyze_globalCross-project panoramic view
cost_reportMonthly cost report (daily granularity available)
anomaly_scan6-type anomaly detection with severity scoring
trend_reportTime-series trends (daily/weekly/monthly)

Configuration

VariableDescriptionRequired
CTA_DB_PATHFilesystem location the server is allowed to use.Optional
CTA_PRICING_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • “Use Claude Token Analyzer to sync db.”
  • “Use Claude Token Analyzer to analyze session.”
  • “Use Claude Token Analyzer to analyze project.”

Frequently asked questions

All processing happens locally. The SQLite database lives under the plugin data directory in plugin mode and falls back to `~/.claude/` in standalone mode. No Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.