Server data from the Official MCP Registry
Local-first dashboard + MCP for Claude Code and Codex token usage with per-MCP breakdown.
Local-first dashboard + MCP for Claude Code and Codex token usage with per-MCP breakdown.
Token Meter is a well-designed local-first analytics dashboard for Claude Code and Codex token usage. The codebase demonstrates strong security practices with proper input sanitization in the frontend, no hardcoded secrets, and appropriate permission scoping. Minor code quality observations include broad exception handling and the MCP server module being untested, but these do not pose real security concerns. The application correctly handles sensitive user data locally without exfiltration. Supply chain analysis found 15 known vulnerabilities in dependencies (0 critical, 6 high severity). Package verification found 1 issue.
6 files analyzed · 20 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-whdrnr2583-cmd-token-meter": {
"args": [
"-y",
"@whdrnr2583/token-meter"
],
"command": "npx"
}
}
}From the project's GitHub README.
One local dashboard for your Claude Code and Codex token usage. Free, MCP-aware, MIT-licensed core.
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.
npx @whdrnr2583/token-meter ingest # scan ~/.claude/projects + ~/.codex/sessions
npx @whdrnr2583/token-meter stats 30 # CLI summary for last 30 days
npx @whdrnr2583/token-meter serve # http://localhost:8765 dashboard
npx @whdrnr2583/token-meter mcp # run as an MCP server for Claude Code / Cursor
The package is published under an npm scope (
@whdrnr2583/) because the baretoken-metername collides with an existing similar name on npm. The CLI binary is still calledtoken-meterafter install.
claude mcp add token-meter -- npx -y @whdrnr2583/token-meter mcp
Then ask Claude Code: "Use token-meter to show my recent sessions" or "Use token-meter usage_summary for this week". See docs/mcp-server.md.
Storage: ~/.tokenpulse/usage.db (SQLite). Remove the folder to start over.
The folder name will become ~/.tokenmeter/ in a future release with an
automatic migration; until then the v0.1 directory keeps its original name.
token-meter mcp exposes usage_summary, recent_sessions (handy after you
accidentally close a terminal), session_tools, and refresh_data. See
docs/mcp-server.md.
Costs are estimates computed locally from the token counts that Claude Code and Codex already write to their JSONL files, multiplied by the model's published per-million-token rate. They are not validated against your actual Anthropic / OpenAI invoice and may diverge for several reasons:
src/pricing.ts is a snapshotTreat the numbers as relative signal for spotting waste, not as billing-grade accounting. Token Meter ships a regression test that the calculation is reproducible, and an audit script that checks invariants; neither verifies the rates against vendor invoices.
| Tier | Price | What you get |
|---|---|---|
| Free | $0 | Multi-vendor parsing, MCP breakdown, 30-day history, hourly/model/project breakdown |
| Pro | $5/mo | Unlimited history, weekly recommendations, anonymous benchmark comparison, auto-trim rule suggestions |
| Pro+ | later | Local LLM proxy (Ollama / LM Studio / llama.cpp / vLLM), GPU/VRAM tracking, auto actions |
Pro+ ships once Pro sign-ups + community demand confirm the segment.
~/.tokenpulse/; delete it to wipe. (Renamed to
~/.tokenmeter/ in a future release with an automatic migration.)See CHANGELOG.md for release notes and breaking changes.
MIT for the CLI, dashboard, and parsers. Pro-tier features ship in a separate package under a closed source license.
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.