
Token Meter
If you're running Claude Code or Codex locally and want to know where your tokens are actually going, this parses the JSONL files they already write to disk and breaks it down by model, project, MCP server, and individual tool. The MCP server exposes usage_summary, recent_sessions, and tool_stats so you can query cost and latency from inside your AI editor without switching to a dashboard. The free tier gives you 7 days of history and per-tool breakdowns. Everything stays local in a SQLite database under ~/.tokenpulse. Useful when you need to spot which MCP integration is burning tokens or compare hourly patterns across projects without sending your session data anywhere.
- GitHub stars
- 1
- tools
- 4
- transport
- STDIO
- last updated
- Jun 10, 2026
Tools
4 toolsPublic tool metadata for what this MCP can expose to an agent.
usage_summaryDaily table of token counts, USD-equivalent cost, and call counts — broken down by day and model
Daily table of token counts, USD-equivalent cost, and call counts — broken down by day and model
No parameter schema in public metadata yet.
recent_sessionsLatest sessions with paste-ready `claude --resume` / `codex resume` commands
Latest sessions with paste-ready `claude --resume` / `codex resume` commands
No parameter schema in public metadata yet.
session_toolsPer-tool breakdown inside a session: call count, total tokens, average latency, response size
Per-tool breakdown inside a session: call count, total tokens, average latency, response size
No parameter schema in public metadata yet.
refresh_dataRe-scans your local JSONL logs for new activity, then returns a fresh summary
Re-scans your local JSONL logs for new activity, then returns a fresh summary
No parameter schema in public metadata yet.
Sponsors
Readme
Token Meter
Track Claude Code, Codex & Cursor token usage and cost locally — no account, no cloud.
One local dashboard for your Claude Code and Codex token usage. Free, MCP-aware, MIT-licensed core.
npm:
@whdrnr2583/token-meter· GitHub:whdrnr2583-cmd/token-meter· Site: token-meter.dev
Token Meter parses the JSONL files that Claude Code and Codex already write to disk and turns them into a real dashboard: cost per project, per model, per MCP tool, per hour. Your data never leaves your machine.
Run your first audit
npx -y @whdrnr2583/token-meter audit
Details
- Repository
- github.com/whdrnr2583-cmd/token-meter
- Website
- token-meter.dev
- Category
- Data & Analytics
- Package
@whdrnr2583/token-meter- Transport
- STDIO
- Registry
- MCP registry, active