
TokenSafe MCP server
Runs locally beside AI coding agents, trimming file reads and test output and blocking secrets from git.
read 2026-11-30
How to connect
Add the server to your MCP client config. Claude Desktop, Cursor and most other clients read this shape:
{
"mcpServers": {
"tokensafe": {
"type": "http",
"url": "https://api.tokensafe.dev/mcp"
}
}
}Add it
Claude Code, in a terminal
claude mcp add --transport http tokensafe https://api.tokensafe.dev/mcpclaude.ai, ChatGPT and other clients: add https://api.tokensafe.dev/mcp as a custom connector in the settings.
Also shipped through: npm, pypi
get_public_statsdescribed by the serverReturns aggregated public TokenSafe stats (total tokens saved, active teams). No auth required.
check_latest_versiondescribed by the serverChecks whether the client TokenSafe version is up-to-date against the latest release.
get_license_statusdescribed by the serverValidates the Bearer license key and returns status, tier, expiry, and trial state.
get_team_metricsdescribed by the serverReturns live and aggregated token savings metrics, telemetry stats, and team seats for the authenticated account.
distill_promptdescribed by the serverManaged Cloud Distillation: compiles a verbose developer prompt into a dense TOCP S-expression server-side. Requires Solo/Team license.
team_cache_lookupdescribed by the serverLooks up a shared team distillation cache entry by hash. Requires Team license.
team_cache_storechanges datadescribed by the serverStores a distilled result or AST skeleton in the shared team cache so teammates reuse it. Requires Team license.
list_invoicesseen, not called yetLists Stripe billing invoices for the authenticated account.
get_setup_instructionsdescribed by the serverReturns exact MCP configuration snippets and setup instructions for a coding agent (Cursor, Claude, Codex, Windsurf, Antigravity, Gemini CLI).
search_docsverified Nov 29, 2026Searches the built-in TokenSafe cloud and local knowledge base (features, install, tiers, privacy).
generate_team_seatchanges datadescribed by the serverTeam owner: provisions a new seat license for a member email address.
revoke_team_seatchanges datadescribed by the serverTeam owner: revokes a previously issued seat license key.
preview_weekly_digestdescribed by the serverPreviews the weekly ROI and token savings digest for the team (same data as the Friday summary email).
How we checked it
Should an agent connect it
- On Nov 29, 2026 we called its read-only tools following a fixed scenario, and 1 of 1 steps returned what the check expects.
- Checked on 5 of the 7 days it takes to judge reliability.
Said by rules from the measurements above. The likely first call is a model's pick from the tool list; read its description before relying on it.
Measured daily
- INITE MCP scoreafter a weeka score needs 7 daily checks: 5 so far
- Checked by calling it1 of 1 steps passedlatest run Nov 29, 2026, read-only calls only
- Use6,429 npm downloads a week4,319 PyPI downloads a week · 48 GitHub stars
- Answeredmeasuring5 of the 7 daily checks it takes to print a share
- Median first answer86 ms
- Space in an agent's context≈ 1,395 tokensthe definitions of all its tools (13), which an agent carries on every turn
- Tool definitionsA · 100 of 100
- Typed results0 of 13 toolsdeclared outputSchema: results come typed, read once
- Every tool passes all six checks.
Worth a look
None of the five warning signs in these definitions.
A program checks the server once a day: initialize and tools/list, no model. Tokens are the definitions' length at about four characters a token. The grade averages six checks of every tool's name, description, schema and annotations; it says how well the tools are described, not whether they work. The score weighs what was measured and nothing else: answering (25%), doing the product's job (25%), definitions (20%), context (10%), use (10%) and how readily a client connects (10%). A part that was not measured is left out, and a hidden instruction caps the score at 40. The state of vendors' MCP servers: method and numbers →
Grade A, 94 of 100, checked 2026-11-29 · 18 of 18 checks judged · 3 failed
- Stateanswerschecked 2026-11-30
- Tools13
- Server calls itselftokensafe-cloud-mcp
- Server version4.12.4
- Protocol version2025-06-18
On 2026-11-30 the server answered initialize and tools/list without a sign-in. First answer in 76 ms.
- Registry namedev.tokensafe/tokensafeverified in the MCP registry
The registry name sits under tokensafe.dev. The registry only lets a publisher use that namespace after proving control of the domain through DNS or HTTP.
Each line is something a program found when it went looking: the registry entry, the server's own answer, a spec that parses. A missing line means we did not find it, not that it does not exist.
Before we count this visit
Analytics and ad measurement tell us which pages and which of our ads do their job: Google Analytics and Google Ads, the Meta pixel, Yandex Metrica, and one first-party id of our own. Nothing is stored until you answer, and declining changes nothing about the site.