MCP ScannerCustom audit
All servers

ooples/token-optimizer-mcp

91.5% fewer tokens on tool output on Headroom's own benchmark, where Headroom removes 61.4%. Separately, the same SWE-bench tasks resolved at 0.71x the cost of plain Claude Code. Plus memory across sessions and subscription quota pacing. Claude Code, Codex, Copilot, Gemini and 12 more. Local, MIT.

Version7.11.0 in package.json
Publisherooples community
MCP Registryio.github.ooples/token-optimizer-mcp
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 582Forks 73Last push 2026-11-15npm downloads a month 15,740
JavaScript 70.5%TypeScript 27.8%Python 1.6%by source files the scanner reads
Code safetypartly tracedExposure9.2Promptsnot analysedSupply chain7.0Secretsnot analysedTransparencynot analysed
Analysis confidence80%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure9.2/10Good

How much power the tools give an agent over the machine

Prompt Integritynot analysed—

Hidden instructions and poisoning in text for the model

Supply Chain7.0/10Fair

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnot analysed—

How the server reads credentials and where they can go

Behavior Transparencynot analysed—

Whether the tools do only what their descriptions say

How far the analysis went

Prompt Integrity, Secrets & Credentials and Behavior Transparency are not analysed and have no number.

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • Prompt Integrity and Secrets & Credentials: no tool description could be read from the code
  • Behavior Transparency: no tool description could be read to compare with the code
  • Some paths pass through more than 8 functions one inside another; the scanner stops there
  • In 3,480 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
  • 2 source files could be read only in part
  • 1 place in the code registers tools whose names are computed at run time; how many tools that makes cannot be read from the code
  • 1 tool, prompt or resource registered only in the repository's tests is not counted on this page

Top risks in plain words

  • HIGH2 security advisories have been published for this server itself (worst: high).
  • HIGHTool with a name computed at run time reads or writes any file path by design: an agent steered by prompt injection can use it that way.
  • MEDIUM2 production dependencies have known vulnerabilities (worst: medium).

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Give it only the folder it needs

    src/server/mcp-server.ts:2087 can read or write any file path. Mount a single project folder, read-only where you can.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need src/server/mcp-server.ts:2087, switch them off.

  • Update its vulnerable packages

    Use minimatch 11.0.1 or later, qs 6.16.1 or later.

  • Use a fixed version

    Versions before @ooples/token-optimizer-mcp 5.1.0 have a published vulnerability that is fixed in 5.1.0.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 1 tool. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

None of the tools reaches any of these in the code the scanner could trace.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

No tool was seen returning text from outside the server to the model.

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (1: 1 tool)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

(name computed at run time)tool
No description.

Text the model reads (1)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

(name computed at run time) tool

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure9.2
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 1 tool handler traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 1 tool handler traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path
    3 findings the scanner could not decide; see the findings below
  • Requests any address
    No tool sends a request to an address the caller supplies — 1 tool handler traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 1 tool handler traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 1 capability; 1 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    Not seen in the traced code of 1 capability; 1 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    Not seen in the traced code of 1 capability; 1 more call code the scanner could not follow, where it may happen
Where the code is: 1 handler in 1 file at commit 1518a5d7c41f
Prompt Integritynot analysed
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Not checked: no tool description could be read from the code
Supply Chain7.0
  • Dependency manifests
    5 manifests: bench/tools/fixtures/large-project/package.json, bench/tools/fixtures/package.json, package.json, src/evals/fixtures/mistake-transfer/package.json, src/evals/fixtures/system-project/package.json
  • Lockfiles checked against OSV
    4 files resolved and checked against the OSV database; 2 not resolved: bench/tools/fixtures/large-project/package.json: dependency ranges declared here were not resolved against a lockfile and were not checked; bench/tools/fixtures/package.json: dependency ranges declared here were not resolved against a lockfile and were not checked
  • Known vulnerabilities in production dependencies MEDIUM
    2 production packages with known advisories
  • Known vulnerabilities in other dependencies
    6 packages with advisories used only for development, tests or examples; an install of the server leaves them out
  • MCP SDK version
    @modelcontextprotocol/sdk ^1.32.2
Secrets & Credentialsnot analysed
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Not checked: no tool description could be read from the code
  • Tools that read credentials
    Not seen in the traced code of 1 capability; 1 more call code the scanner could not follow, where it may happen
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparencynot analysed
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Not checked: no tool description could be read to compare with the code
  • Tool descriptions present
    Every tool has a description the model and the user can read (2 only in code no tool reaches)
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (2 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

PackageInstalledWorstAdvisoriesFixed in
minimatchnpm 10.2.6 MEDIUM 1 advisory 11.0.1
  • MEDIUMGHSA-g3hv-75wg-m249 CVE-2026-118764minimatch has potential denial of service via globparts amplification
qsnpm 6.16.0 MEDIUM 1 advisory 6.16.1
  • MEDIUMGHSA-6pq8-jhm2-2vcw CVE-2026-110816qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)
6 vulnerable packages outside the server itself (used only for development, tests or examples, not shipped)
PackageInstalledWorstAdvisoriesFixed in
undicinpm 7.29.0 HIGH 18 advisories 6.28.16.29.17.29.1+3 more
  • HIGHGHSA-qrxm-fqhp-jwvm CVE-2026-87018undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation
  • HIGHGHSA-2m5v-pch6-74hx CVE-2026-109383undici vulnerable to TLS certificate validation bypass via dropped tls options in Agent
  • HIGHGHSA-rfgv-xxqx-mfg5 CVE-2026-19534undici vulnerable to Denial of Service via unrequested WebSocket subprotocol
  • HIGHGHSA-w293-vg96-wgc3 CVE-2026-84961undici vulnerable to TLS certificate validation bypass via dropped connect options in BalancedPool
  • HIGHGHSA-xjj6-f33q-929c CVE-2026-109869undici vulnerable to Denial of Service via unhandled error on excessive content-encodings
  • HIGHGHSA-4w7w-5xrc-9h26 CVE-2026-109829undici vulnerable to cache poisoning and cross-user disclosure via cross-origin redirects
  • MEDIUMGHSA-9fm3-97px-rjf6 CVE-2026-109932undici WebSocket client vulnerable to Denial of Service via unbounded automatic PONG buffering
  • MEDIUMGHSA-3wwx-pv8p-q78v CVE-2026-85024undici vulnerable to Denial of Service via unhandled error in WebSocket permessage-deflate decompression
  • MEDIUMGHSA-pmjh-fq2x-6v4x CVE-2026-18149undici vulnerable to Denial of Service via orphaned RetryHandler response body
  • MEDIUMGHSA-2jfj-6hjv-fm6j CVE-2026-84933undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared caches
  • MEDIUMGHSA-3xpg-4rpp-hhhm CVE-2026-84890undici vulnerable to Denial of Service via unbounded decompression of compressed responses
  • MEDIUMGHSA-4qv8-2p9j-2685 CVE-2026-109924undici vulnerable to Denial of Service via unbounded memory in the EventSource parser
  • MEDIUMGHSA-f72v-6w45-q472 CVE-2026-109841undici vulnerable to Subresource Integrity bypass via non-lowercase algorithm tokens
  • MEDIUMGHSA-55wc-3pg8-jfw6 CVE-2026-87029undici vulnerable to Denial of Service via unhandled exception in the decompress interceptor
  • MEDIUMGHSA-rx4f-c7p8-82vq CVE-2026-85014undici vulnerable to Denial of Service via WebSocketStream unclean close
  • LOWGHSA-2gqq-gqf2-x968 CVE-2026-84947undici vulnerable to response truncation via oversized chunked responses in the dump interceptor
  • LOWGHSA-8436-99hf-9mmv CVE-2026-85008undici vulnerable to caching and replay of unsafe HTTP method responses
  • LOWGHSA-r53p-7pc4-xj5r CVE-2026-18540undici vulnerable to downstream response splitting via retry interceptor
globnpm 10.5.0 MEDIUM 1 advisory 14.0.2
  • MEDIUMGHSA-3g3m-2fjr-6pw4 CVE-2026-118773Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal
globnpm 13.0.6 MEDIUM 1 advisory 14.0.2
  • MEDIUMGHSA-3g3m-2fjr-6pw4 CVE-2026-118773Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal
globnpm 13.0.7 MEDIUM 1 advisory 14.0.2
  • MEDIUMGHSA-3g3m-2fjr-6pw4 CVE-2026-118773Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal
minimatchnpm 10.2.5 MEDIUM 1 advisory 11.0.1
  • MEDIUMGHSA-g3hv-75wg-m249 CVE-2026-118764minimatch has potential denial of service via globparts amplification
minimatchnpm 9.0.9 MEDIUM 1 advisory 11.0.1
  • MEDIUMGHSA-g3hv-75wg-m249 CVE-2026-118764minimatch has potential denial of service via globparts amplification

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

  • MEDIUM
    GHSA-76pc-mqxp-3rq5CVE-2026-55156
    Token Optimizer MCP: Unauthenticated Path Traversal in Dashboard Session Log API Endpoints
    2026-08-14fixed in 5.1.0
  • HIGH
    GHSA-49mq-fc6q-3h46CVE-2026-55157
    Token Optimizer MCP: OS command injection in smart_user via username in get-user-info
    2026-08-14fixed in 5.1.0

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportstdio
Sign-innot checked needs the live server
MCP SDK@modelcontextprotocol/sdk ^1.26.0, @modelcontextprotocol/sdk ^1.32.2
Servers in the code2 (token-optimizer-mcp, token-optimizer-mcp-test)

The project's own security

Security policyyes .github/SECURITY.md
Private reportingmentioned the policy names a private channel
Past advisories2 · 2 with a fixed version released
Last push2026-11-15
Signed releasesnot checked yet

Install it

For the server's own npm package @ooples/token-optimizer-mcp. Pin a version (@ooples/[email protected]) so an update cannot change the tools without you noticing.

Claude Desktop claude_desktop_config.json
{
  "mcpServers": {
    "token-optimizer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ooples/token-optimizer-mcp"
      ]
    }
  }
}
Cursor ~/.cursor/mcp.json
{
  "mcpServers": {
    "token-optimizer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ooples/token-optimizer-mcp"
      ]
    }
  }
}
VS Code .vscode/mcp.json
{
  "servers": {
    "token-optimizer-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ooples/token-optimizer-mcp"
      ]
    }
  }
}
Claude Code terminal
claude mcp add token-optimizer-mcp -- npx -y @ooples/token-optimizer-mcp

Where it is published

npm package@ooples/token-optimizer-mcp
Downloads15 740 a month on npm
MCP Registryio.github.ooples/token-optimizer-mcp
Listed in5 catalogs (github_search, glama, mcp_registry, mcp_toplist, npm)
LicenseMIT
Created2025-10-11
Topicsai ai-agents caching claude claude-code codex compression context-engineering cost-optimization developer-tools

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.