token-gate-mcp server
Token and context budget for AI agents. Tracks spend and gates the session.
542 downloads/wk
Reviews
Write oneNobody has reviewed token-gate-mcp yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
token-gate-mcp tools (5)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
context.checkCheck whether the session has gone over its token budget. Returns a boolean the agent can gate on before continuing.
context.estimateEstimate the token cost of reading a file before reading it, and compare it with cheaper alternatives such as a graph query. Use this before a large read to protect the budget.
context.limitSet or read the token budget for the session. With maxTokens set, stores the budget; without, returns the current budget and remaining tokens.
context.logRecord a token spend event into the session ledger. Call this after a read, a tool call, or a model turn so the budget report stays truthful.
context.reportReturn the current session token spend: totals, spend by kind, budget, and remaining budget.
Public scan report
scanner v0.1.5 · 2026-09-19 · same rubric, same numbers if you re-run it
- Code scan2 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenanceno repository listed3/15
- Maintainer identityno repository or website to verify2/10
Findings (1)
- lowNo source repository listed
maint.no-repo
Install directly
Runs npx -y token-gate-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add token-gate-mcp -- npx -y token-gate-mcp
token-gate-mcp: common questions
- Is token-gate-mcp server safe?
- With care: it is graded C, so read the findings first (65/100). Read the token-gate-mcp safety report
- How do I install token-gate-mcp?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does token-gate-mcp need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is token-gate-mcp maintained?
- The latest release is v0.1.3.