TokenZero
NPM · @TOKENZERO/MCP · 2 COMPONENTS
LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.
Available components
Last scanned (21 hours ago)
Scores higher than 48% of npm servers
Category AI and Machine Learning
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →
Supply Chain Security100
- No malware found by supply-chain analysis.Pass
- No known CVEs affecting this package version or its production dependencies.Pass
- No install/post-install scripts declared.Pass
- No production dependencies, so there is no dependency health to assess. View diagnostics → Pass
Provenance & Transparency45
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (Apache-2.0).Pass
- Actively maintained (last published 0 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability76
- 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
- AI-judged instruction clarity (good).Pass
- Context-footprint check failed: tool/resource definitions use about 890 tokens (~148/item across 6 items; 6 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management30
- Stability observed for 9 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage88
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 63% of tool parameters carry a description.Partial
Tool Safety100
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- We read all 6 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
- An AI judge read all 7 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a current MCP spec version (2026-07-28).Pass
Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 4 Nov 26 +15
- Malware scan: unverified → pass ▲ security
- 3 Nov 26 +12
- Known CVEs: unverified → pass ▲ security
- Malware scan: unverified → pass ▲ security
- Security disclosure: fail → unverified ▼ functional
- Dependency health: unverified → pass ▲ functional
- Package version: 0.2.14 → 0.2.16 functional
- Package version: 0.2.14 → 0.2.15 functional
- 2 Nov 26 −26
- Known CVEs: pass → unverified ▼ security
- Malware scan: pass → unverified ▼ security
- Dependency health: pass → unverified ▼ functional
- Package version: 0.2.12 → 0.2.14 functional
- Package version: 0.2.12 → 0.2.13 functional
- 1 Nov 26 +3
- Stability: 0.17 → unverified ▼ security
- Tool safety: pass → unverified ▼ security
- Known CVEs: pass → unverified ▼ security
- Schema quality: 705 → 890 ▼ functional
- Tool coverage: 100 → unverified ▼ functional
- Capabilities: pass → unverified ▼ functional
- Dependency health: pass → unverified ▼ functional
- Tool coverage: 56% → 63% ▲ functional
- First check of Schema quality: unverified functional
- First check of Schema quality: 100 functional
- Package version: 0.2.9 → 0.2.12 functional
- Package version: 0.2.9 → 0.2.11 functional
- 31 Oct 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 13 to 17. That category is still filling its 30-day observation window: 4 days of observed history at the previous scan, 5 at this one. The score rises as the window fills, whether or not the server changes.
- 29 Oct 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 7 to 10. That category is still filling its 30-day observation window: 2 days of observed history at the previous scan, 3 at this one. The score rises as the window fills, whether or not the server changes.
- 28 Oct 26 +15
- Tool safety: pass → unverified ▼ security
- Stability: 0.03 → unverified ▼ security
- Malware scan: unverified → pass ▲ security
- Tool coverage: 100 → unverified ▼ functional
- Capabilities: pass → unverified ▼ functional
- Schema quality: pass → fail ▼ functional
- Tool coverage: 38% → 56% ▲ functional
- First check of Schema quality: unverified functional
- Package version: 0.2.8 → 0.2.9 functional
- 27 Oct 26 +1
- Known CVEs: pass → unverified ▼ security
- Dependency health: pass → unverified ▼ functional
- Stability: unverified → 0.03 ▲ functional
- Package version: 0.2.6 → 0.2.8 functional
- Package version: 0.2.6 → 0.2.7 functional
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 4 Nov 2026 · Analysed npm/@tokenzero/mcp@0.2.16
Provenance No attestation
The registry publishes no build provenance for this version, so there is nothing to verify.
| Result | No attestation |
|---|---|
| Ecosystem | npm |
Background: How many MCP packages publish verified provenance →
Dependencies 0 packages
| Packages resolved | 0 |
|---|---|
| Tree resolution | Complete |
Background: SBOMs and build attestations, explained →
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
audit_repo_token_waste Audit a repo or directory for LLM token waste ~192
No API key needed. Static audit for LLM token waste: uncached static prompts and prompt templates, frontier models on extraction/classification prompts, calls in loops, unpriced models, and prompt-caching mis-integration (caching gated on model names, volatile values in the system prompt, random ids in history, wrong-provider cache markers, misplaced breakpoints, cost math that ignores cached tokens). Give `path` for a local directory (scanned on this machine, nothing uploaded; defaults to the working directory), `repo` (owner/name) for a public GitHub repo, or `diff` for a unified diff. Results are static heuristics, not measurements.
| Name | Type | Req | Description |
|---|---|---|---|
| diff | string | – | unified diff text, e.g. from git diff |
| path | string | – | local directory; defaults to the current working directory |
| repo | string | – | public GitHub owner/name |
No output schema declared.
No examples provided.
calculate_model_arbitrage Price a workload across models ~159
No API key needed; only `model` is required (defaults 2,000 tokens in and 400 out). Price a workload at list prices for the requested model, its cheaper sibling and any extra models, with and without prompt caching. Runs locally.
| Name | Type | Req | Description |
|---|---|---|---|
| compare_to | array | – | – |
| input_tokens | number | – | per request; default 2000 |
| model | string | yes | model id, e.g. gpt-6.1-sol or claude-sonnet-5-5 |
| output_tokens | number | – | per request; default 400 |
| requests_per_month | number | – | – |
| static_tokens | number | – | portion of input_tokens that is a fixed prefix (system + tools) |
No output schema declared.
No examples provided.
optimize_prompt_payload Make a request body cache-friendly ~80
Rewrite an OpenAI Chat/Responses or Anthropic Messages request body so its static prefix is provider-cacheable, and project the saving. Sends the body you pass to the TokenZero service (set TOKENZERO_URL); do not pass secrets in it.
| Name | Type | Req | Description |
|---|---|---|---|
| body | object | yes | – |
| endpoint | string | – | – |
| strategy | string | – | – |
No output schema declared.
No examples provided.
provision_workspace Create a free TokenZero workspace ~95
Create a TokenZero workspace and key with no form (POST /v1/workspaces on the TokenZero service). Returns the key once, the base URLs that route through it, the one-click dashboard link (key in the URL fragment, never sent to the server) and the badge URL. Free up to the monthly free tier; nothing is billed.
| Name | Type | Req | Description |
|---|---|---|---|
| name | string | – | workspace name (defaults to "mcp-agent") |
No output schema declared.
No examples provided.
try_tokenzero Try TokenZero (no key needed) ~183
Call this first: no API key, no signup, no setup. Shows what TokenZero would do to one of your LLM calls: it runs the four savings engines (prompt-cache formatting, edge cache, cascade advice, signed receipt) on a sample or your own prompt and model, and returns the list-price saving, the signed receipt and a copy-paste keyless curl that makes a real call on a free model. Pass {} for the default, or {"model": "gpt-6.1-sol", "system": "...", "prompt": "..."}. Runs in the TokenZero service; send no secrets in the prompt.
| Name | Type | Req | Description |
|---|---|---|---|
| model | string | – | a priced model id; default gpt-6.1-sol |
| prompt | string | – | your user message (optional) |
| system | string | – | your system prompt (optional) |
No output schema declared.
No examples provided.
workspace_metrics Read a workspace savings scorecard ~109
Live value scorecard for a TokenZero workspace (GET /v1/workspaces/me/metrics): hard savings and net ROI per window, per-engine contribution, speed, parity, availability, privacy posture, per-model breakdown and one-click recommendations. Uses TOKENZERO_KEY unless a key is given; demo: true returns a labelled sample.
| Name | Type | Req | Description |
|---|---|---|---|
| demo | boolean | – | – |
| key | string | – | workspace key (tz_live_…); defaults to TOKENZERO_KEY |
| window | string | – | – |
No output schema declared.
No examples provided.
How do I install the TokenZero MCP server?
TokenZero runs locally as an npm package, launched with npx -y @tokenzero/mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.
npm · @tokenzero/mcp
claude mcp add sh-tokenzero-mcp -- npx -y @tokenzero/mcp
What is the TokenZero MCP server?
TokenZero is an MCP server listed in the public MCP registry as sh.tokenzero/mcp. LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server. This page covers its npm package (@tokenzero/mcp).
Is the TokenZero MCP server safe to use?
TokenZero scores 74 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 4 November 2026. It declares no install or post-install scripts. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.
What tools does the TokenZero MCP server expose?
TokenZero exposes 6 tools: try_tokenzero, audit_repo_token_waste, calculate_model_arbitrage, optimize_prompt_payload, workspace_metrics, provision_workspace. Their descriptions and schemas cost roughly 818 tokens of context every time the server is loaded.
Is the TokenZero MCP server still maintained?
TokenZero is still listed as active in the MCP registry. We last reached this channel on 4 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.
What licence is the TokenZero MCP server under?
TokenZero declares the Apache-2.0 licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.