Claude Usage Mcp
@Orellius
关于 Claude Usage Mcp
MCP server for Claude Pro/Max subscription usage — session limits, weekly limits, per-model breakdown, extra credits. Zero config, reads your existing OAuth token.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"claudeusage": {
"command": "node",
"args": [
"/absolute/path/to/claudeusage-mcp/dist/index.js"
]
}
}
}工具
4Full dashboard — session, weekly, per-model, extra usage with progress bars
Current 5-hour session window only
7-day limits with per-model breakdown (All, Opus, Sonnet)
Am I about to be rate-limited? Returns LOW / MODERATE / HIGH / RATE LIMITED
概览
What is Claude Usage Mcp?
Claude Usage Mcp is an MCP server that gives real‑time visibility into your Claude Pro/Max subscription usage directly inside Claude Code. It reads the OAuth token already stored on your machine and calls Anthropic’s usage endpoint—no API keys, scraping, or browser automation required.
How to use Claude Usage Mcp?
Clone the repository, run npm install && npm run build, then add the server via claude mcp add claudeusage -- node $(pwd)/dist/index.js or manually in your MCP config. After restarting Claude Code, ask “what’s my usage?” or type /usage. Optional statusline integration adds a persistent usage line.
Key features of Claude Usage Mcp
- Reads OAuth credentials from macOS Keychain or
~/.claude/.credentials.json - Provides four MCP tools:
get_usage,get_session_usage,get_weekly_limits,check_rate_status - Caches responses for 60 seconds with stale‑data fallback on rate limits
- Color‑coded progress bars (green/orange/red) for usage levels
- Statusline script shows usage in the Claude Code status bar
- Works on macOS and Linux with Node.js 18+
Use cases of Claude Usage Mcp
- Monitor current 5‑hour session window utilization and reset countdown
- Check weekly usage across all models and per‑model (Opus, Sonnet)
- See if you are approaching or currently rate‑limited
- Track extra usage credits and monthly limits
- Get all usage data without leaving the terminal or opening a browser
FAQ from Claude Usage Mcp
How does Claude Usage Mcp authenticate?
It uses the same OAuth token that Claude Code creates when you sign in with a Pro/Max subscription. No API keys, environment variables, or .env files are required.
What are the runtime requirements?
Node.js 18 or later, macOS or Linux, and a Claude Code session logged in with a Pro or Max subscription.
Where does my usage data come from?
The server calls GET https://api.anthropic.com/api/oauth/usage with the stored OAuth token. It caches the response for 60 seconds and serves stale data if the endpoint rate‑limits the request.
Does Claude Usage Mcp work with API keys?
No. This server is for Pro/Max subscribers only. API users should use the official Usage and Cost API instead.
What happens if my token expires?
Restart Claude Code to trigger a fresh OAuth login. If you previously used claude setup-token or /login, the token may have the wrong scopes; delete the credentials file and restart Claude Code.
AI 与智能体 分类下的更多 MCP 服务器
Perplexity MCP Server
DaInfernalCoderA Model Context Protocol (MCP) server for research and documentation assistance using Perplexity AI. Won 1st @ Cline Hackathon
Model Context Protocol Server for Home Assistant
tevonsbA MCP server for Home Assistant
🛡️ A.I.G(AI-Infra-Guard)
TencentA full-stack AI Red Teaming platform securing AI ecosystems via OpenClaw Security Scan, Agent Scan, Skills Scan, MCP scan, AI Infra scan and LLM jailbreak evaluation.
MCP Client for Ollama (ollmcp)
joniglHarness the power of local LLMs with this TUI MCP Client for Ollama. Featuring all core MCP primitives (tools, prompts, resources), agent mode, multi-server, model switching, streaming responses, human-in-the-loop, thinking mode, model params config, system prompts, and saved pre
Model Context Protocol for Unreal Engine
chongdashuEnable AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).
评论