AI Usage
Analyze local Claude Code, Codex CLI, and OpenCode token usage, costs, cache breaks, limits, and project trends.
Install AI Usage
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"ai-usage": {
"command": "npx",
"args": [
"-y",
"ai-usage-mcp"
]
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
claude mcp add --transport stdio ai-usage -- npx -y ai-usage-mcpRun in your terminal. Add --scope project to share it with your team through .mcp.json.
We couldn’t confirm it starts correctly
We hit an unexpected error while testing this listing automatically.
npx -y ai-usage-mcpRate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .
Overview
Use cases
- Find which projects, models, or sessions consume the most tokens
- Investigate prompt-cache losses and their estimated cost
- Compare actual spending with another model’s list rates
- Track Claude Pro or Max limits and reset forecasts
Key features
- Local SQLite history for Claude Code, Codex CLI, and OpenCode usage
- Token and cost reports by session, model, client, project, and day
- Prompt-cache break detection with cost analysis
- Counterfactual pricing at alternate model rates
- Claude Pro and Max five-hour and weekly limit tracking
- CSV, JSON, status-line, verification, and MCP prompt support
Tools12
What AI Usage lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 7d ago via OSV.dev · ai-usage-mcp (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How AI Usage works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about AI Usage
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ai-usage)<a href="https://allmcps.com/mcp/ai-usage"><img src="https://allmcps.com/api/badge/ai-usage?style=directory" alt="AI Usage on AllMCPs" /></a>