Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, email [email protected] and we’ll put it right.

io.github.rccola990-cloud/mcp-token-optimizer

NPM · MCP-TOKEN-OPTIMIZER · SCANNED AUG 3

Cut LLM token costs: count tokens, estimate cost, slim prompts, and pick the cheapest capable model.

Available components

+20 this week 60 Trust /100
Trust breakdown (6 categories)

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 →

Supply Chain Security87
  • No malware found by supply-chain analysis.Pass
  • Only part of the dependency tree could be resolved (95 of 99), so this covers what we could see, not the whole tree.Partial
  • No install/post-install scripts declared.Pass
  • Only part of the dependency tree could be resolved (95 of 99), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency19
  • Repository check failed: the declared repository URL returned HTTP 404. See how to fix → View diagnostics → Fail
  • Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
  • Clear OSI-approved license (MIT).Pass
  • Actively maintained (last published 45 days ago).Pass
  • Security-disclosure policy not yet verified: we couldn't inspect the source repository.Unverified
Schema Quality & AI Usability77
  • AI-judged instruction clarity (excellent).Pass
  • Tool/resource definitions use about 386 tokens (~96/item across 4 items; 4 tools + 0 resources), lean.Pass
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management0
  • Stability not yet verified: not enough scan history yet (needs a 30-day window).Unverified
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass

Unverified: 1 category

A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

npm · mcp-token-optimizer

# add to Claude Code
claude mcp add rccola990-cloud-mcp-token-optimizer -- npx -y mcp-token-optimizer
# add to Codex CLI
codex mcp add rccola990-cloud-mcp-token-optimizer -- npx -y mcp-token-optimizer
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "rccola990-cloud-mcp-token-optimizer": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "mcp-token-optimizer"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add rccola990-cloud-mcp-token-optimizer --command npx --arg -y --arg mcp-token-optimizer
# ~/.hermes/config.yaml
mcp_servers:
  rccola990-cloud-mcp-token-optimizer:
    command: "npx"
    args: ["-y", "mcp-token-optimizer"]
// mcp.json
{
  "mcpServers": {
    "rccola990-cloud-mcp-token-optimizer": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-token-optimizer"
      ]
    }
  }
}
Changelog

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.

  • 3 Aug 26 +29
    • Provenance: unverified → fail security
    • Known CVEs: unverified → partial security
    • Install scripts: unverified → pass security
    • Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window). security
    • Schema quality: unverified → excellent functional
    • License: unverified → pass functional
    • Dependency health: unverified → partial functional
    • Maintenance: unverified → pass functional
    • MCP protocol: unverified → pass functional
    • Licence: MIT functional
  • 2 Aug 26 +31
    • Malware scan: unverified → pass security
    • Tool coverage: unverified → 100 functional
  • 1 Aug 26 −16
    • Tool coverage: 100 → unverified functional
    • First check of Schema quality: unverified functional
  • 31 Jul 26 −24
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 27 Jul 26 40

    First indexed and scored.

Diagnostics

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 3 Aug 2026 · Analysed npm/[email protected]

Provenance none

Ecosystem: npm · Outcome: none

Dependencies 95 packages

95 packages in the resolved dependency tree · 95 deprecated · 29 stale.

The dependency tree was only partially resolved, so these counts may be incomplete.

MCP tools — 4 exposed · ~386 tokens

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.

Tool Tokens
compare_model_costs ~85

Compare the per-call cost of a prompt across many models and recommend the cheapest. Use to route work to the cheapest capable model.

NameTypeReqDescription
completion_tokensnumberAssumed output tokens per call (default 0).
modelsarrayOptional subset of model ids to compare. Omit for all known models.
textstringyesThe input prompt.

No output schema declared.

No examples provided.

count_tokens ~92

Count the tokens in a piece of text and show the input cost across common LLM models (or one model if specified). Use before sending a prompt to know its size and price.

NameTypeReqDescription
modelstringOptional model id (e.g. gpt-4o, claude-sonnet-4). Omit to compare across common models.
textstringyesThe text/prompt to measure.

No output schema declared.

No examples provided.

estimate_cost ~104

Estimate the per-call and monthly cost of a prompt for a given model, including assumed completion tokens and call volume. Use to forecast LLM spend.

NameTypeReqDescription
completion_tokensnumberAssumed output tokens per call (default 0).
modelstringModel id (default gpt-4o).
monthly_callsnumberCalls per month, to project monthly/yearly spend (default 0).
textstringyesThe input prompt.

No output schema declared.

No examples provided.

slim_prompt ~105

Compress a prompt with safe, meaning-preserving rules (shorten verbose phrases, drop filler, dedupe lines, normalize whitespace) and report tokens and dollars saved. Use to cut token costs without an LLM call.

NameTypeReqDescription
modelstringModel id used to price the savings (default gpt-4o).
monthly_callsnumberCalls per month, to project monthly savings (default 0).
textstringyesThe prompt to slim down.

No output schema declared.

No examples provided.