quota-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@quota-mcpWhich provider should I use right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
quota-mcp
How much of each AI subscription is left, and which provider should this agent use right now.
If you have ever woken up to an agent that burned the whole Claude weekly window overnight, or watched a batch job hammer a rate-limited provider for hours — this is for you. quota-mcp is a local-first MCP server and CLI that tracks subscription quota (the 5h/daily/weekly windows of your plans), not API spend. Cost meters tell you what you paid; quota-mcp tells you what you have left and whether to keep going.
How it trusts data (the important part)
Remote "usage APIs" for subscription plans are undocumented, unofficial, and they break. This project is built around that fact instead of pretending otherwise:
The core is local-only. Tokens come from the OpenCode database on your disk. Limits come from a file you calibrate with real measured values (
null= track only — numbers are never invented). No network, no credentials, works offline.Observed events beat estimates. When a provider actually rate-limits you, record it (
observe). An observedrate_limit/balance/key_limitevent always vetoes the provider — an estimate never does.Remote scrapers are community plugins. Each one is a registry entry with a status (
core/community/broken). When a provider changes something and a scraper breaks, the community fixes it or flips it tobroken— the core keeps working either way.Fail-open. A missing sensor (no DB, no calibrated limit) yields "use" with a warning. A gate never blocks because a sensor is absent.
Related MCP server: pi-auto
Quickstart
uv tool install quota-mcp # or: uvx --from quota-mcp quota-mcp
quota-mcp status # tokens per provider, windows 5h/day/week
quota-mcp serve # MCP stdio serverMCP client configuration
Claude Code:
claude mcp add quota -- uvx --from quota-mcp quota-mcp serveCursor / OpenCode / any stdio MCP client:
{
"mcpServers": {
"quota": { "command": "uvx", "args": ["--from", "quota-mcp", "quota-mcp", "serve"] }
}
}Tools exposed: get_all_usage, get_provider_usage, get_recommendation, observe.
CLI for orchestrators
The exit-code contract is stable and scriptable:
quota-mcp recommend --provider opencode # exit 0 = use, 1 = wait, 4 = exhausted
MODEL=$(quota-mcp pick --tiers "free-model openrouter/deepseek/x claude:opus")
quota-mcp observe --kind rate_limit --model-ref "$MODEL" # real event -> veto
quota-mcp limits --set opencode 5h 4000000 # calibrate with a MEASURED valuepick walks the list in order and prints the first viable ref: it skips providers with a recently observed block event and providers above their calibrated limit. With QUOTA_MCP_MODEL_REGISTRY set, it also vetoes refs absent from your model registry and refs with a dead id_status.
Collectors
Collector | Status | Auth (env) | Description | Maintainer | Last verified |
| core | none | Tokens per provider from the local OpenCode database (~/.local/share/opencode/opencode.db), windows 5h/day/week. No network. | @carl0sfelipe | 2026-08-13 |
| community |
| Key limit and usage from the official OpenRouter /key endpoint. Reads OPENROUTER_API_KEY or the OpenCode auth store. | @carl0sfelipe | 2026-08-13 |
| community | none | Claude Pro/Max subscription windows from Anthropic's oauth usage endpoint. Reuses the token Claude Code keeps fresh - never refreshes it (refresh is blocked by Cloudflare; the cache layer serves stale data on 429). | @carl0sfelipe | 2026-08-13 |
The table above is generated from registry.yaml — the registry is the source of truth. A scraper marked broken is skipped by the loader (force with allow_broken: true) until someone fixes it. See CONTRIBUTING.md to add or fix a collector; it is one module plus one registry entry plus one fixture test.
Configuration
Optional file at ~/.config/quota-mcp/config.yaml (or $QUOTA_MCP_CONFIG):
providers:
opencode:
collector: opencode_db
enabled: true
claude_pro:
collector: claude_pro
enabled: true
openrouter:
collector: openrouter
enabled: true
engine:
wait_pct: 85 # recommend "wait" above this percent
obs_lookback_min: 15 # how long an observed event vetoes a providerEnvironment overrides: QUOTA_MCP_OPENCODE_DB, QUOTA_MCP_LIMITS, QUOTA_MCP_OBS, QUOTA_MCP_MODEL_REGISTRY, QUOTA_MCP_WAIT_PCT, QUOTA_MCP_OBS_LOOKBACK_MIN.
Data lives in ~/.local/share/quota-mcp/ (limits.json, observations.jsonl, cache.db).
Development
uv sync
uv run pytest # the whole suite runs with sockets disabled - no network, no keysCI runs on Linux and macOS, blocks network access in tests, and refuses commits containing machine paths, third-party e-mails or phone numbers (scripts/check_public.sh).
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceProvides intelligent OpenAI API token management with automatic switching between model tiers when usage limits are reached. It enables users to track daily token consumption, estimate costs before making calls, and manage project-specific usage data.MIT
- Alicense-qualityDmaintenanceProvides usage data from @ccusage/pi and tools to switch between AI providers (e.g., Claude Code, OpenAI Codex, CursorAI) using load-balancing or high-availability strategies.112MIT
- AlicenseAqualityAmaintenanceEnables AI agents to delegate scoped tasks across multiple providers like Codex, Claude Code, and Antigravity through a single local MCP server, with quota monitoring, notifications, and remote control via messaging apps.122Apache 2.0
- Alicense-qualityCmaintenancePer-agent quota meter for the A2A network, enabling quota checks with USDC settlement on Base L2 via x402 envelopes.MIT
Related MCP Connectors
Track, analyze, and act on your streaming and SaaS subscriptions from any AI agent.
Live status, API pricing and rate limits for ChatGPT, Claude, Gemini, Cursor and 42+ AI tools.
Budget & cost control for AI agents — per-agent spend caps + rate limits before each call.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/carl0sfelipe/quota-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server