AI Usage MCP — Data skill for Claude Code
A local-first MCP server that answers, from real data on your machine: How many tokens have I used, from which client, model and session — and what did it cost.
How to install AI Usage MCP
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open MohitBansal321/ai-usage-mcp and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What AI Usage MCP does
A local-first MCP server that answers, from real data on your machine: How many tokens have I used, from which client, model and session — and what did it cost?
Alternatives in Data
- Claude Code Memory Setup — Up to 71.5x fewer tokens per session on Claude Code with Obsidian + Graphify 947 ★
- Token Dashboard — See where Claude Code is burning tokens - turn raw JSONL transcripts into local cost analytics, hotspot views 669 ★
- Query Token Info — Search tokens and fetch metadata, real-time market data, and K-Line candlestick charts by keyword or contract 483 ★
README
ai-usage-mcp
[](https://www.npmjs.com/package/ai-usage-mcp) [](https://github.com/MohitBansal321/ai-usage-mcp/actions/workflows/ci.yml) [](https://www.npmjs.com/package/ai-usage-mcp) [](https://nodejs.org) [](LICENSE)
A local-first MCP server that answers, from real data on your machine:
How many tokens have I used, from which client, model and session — and what did it cost?
Phase 1 supports two coding agents: **Claude Code** and **OpenCode**. It reads the data those clients already wrote to disk, normalises it into one schema, stores it in a local SQLite database, and exposes seven MCP tools -- plus resources, prompts and a debug CLI.
**It never fabricates a number.** If a source does not record something, it is reported as unavailable — not as zero.
Install
Requires **Node.js 22+** and **npm 11+**. No compiler or build tools needed — the one native dependency ships prebuilt binaries for macOS, Linux (glibc and musl/Alpine) and Windows, on x64 and arm64.
Claude Code
Nothing to install first — `npx` fetches it on demand:
claude mcp add ai-usage -s user -- npx -y ai-usage-mcp
`-s user` makes it available in every project. Drop it to add the server to the current project only. Then run `/mcp` inside Claude Code to confirm it connected.
Noclaude command? (VS Code / JetBrains extension users)
The extension reads the same configuration as the CLI, so you can add the server by editing a file — no CLI needed. Pick whichever scope you want:
**For one project** — create `.mcp.json` in the project root
Related Skills
Tokscope
Local, open-source dashboard for Claude Code token usage and cost: today by hour, 7/30/90-day trends, per-mode
BurnMeter
Local-first usage & cost dashboard for Claude Code + OpenAI Codex — your burn rate, rate-limit proximity, and
WhereMyTokens
new Windows system tray app for monitoring Claude Code token usage in real time. Per-session token counts, cos
Elffuss Braid
Version control for AI coding agents: many agents commit in parallel and land on one main branch, with no serv
Token Lens
Local-only dashboard for AI coding sessions. Track turns, tokens, and cost across Cursor, Claude Code, and Ope
Budi
Local-first cost analytics for AI coding agents. See where your tokens and money go across Claude Code, Cursor
Related Agents
Transport Verifier
Runs live end-to-end checks of a delivery transport (Herdr socket, MCP server, Claude Code or Codex hook, Open
Claude Multi Agent API Server
Production-ready FastAPI service for concurrent Claude Agent session management with real-time monitoring, cos
Dm Optimizer
Makes measured improvements to performance, token and context usage, redundant work and workflows. Use only af