token-enhancer MCP Server Security Report
Cuts AI web-fetching costs up to 99.9% by stripping page junk before it reaches your LLM.
Run it securely
This server scored F. Run it behind runtime policy enforcement so one bad tool call can't become an incident.
Are you the maintainer?
Verify with GitHub to get alerted whenever xelektron/token-enhancer changes score — and claim the badge for your README.
Claim this server- criticalNo command-injection sinks — 1 occurrence
- criticalNo dynamic code execution — 7 occurrences
- highNo unsafe deserialization — 4 occurrences
The short answer
- Is token-enhancer safe to use?
- token-enhancer scores 14/100 (grade F) on the Canopii Trust Index, and carries 3 confirmed security failures that cap its score: No command-injection sinks, No dynamic code execution and No unsafe deserialization. It passes 14 of the 25 controls that apply to it.
- What security issues does token-enhancer have?
- token-enhancer fails 3 controls: No command-injection sinks, No dynamic code execution and No unsafe deserialization. Each failure on this page carries the evidence behind it — the file and line, dependency, or CVE that decided it.
- How reliable is the security score for token-enhancer?
- We could evaluate 92% of the controls that apply to token-enhancer. Scores are deterministic — the same source always produces the same score — and a partially-scannable server cannot present a high one, because confidence caps the result. The scanner is open source, so this score can be reproduced independently.
- How was token-enhancer scored?
- Its published source was scanned against a fixed catalog of weighted security controls covering code safety, committed secrets, dependency vulnerabilities, tool-description integrity, authentication and transport, and maintenance. A confirmed flaw caps the score outright regardless of what else passes. The full rubric is published.
Security controlslatest scored version v0.2.1
Each control is evaluated deterministically with evidence. The score is earned from passing controls; a failed guard caps it.
Security controlslatest scored version v0.2.1
Each control is evaluated deterministically with evidence. The score is earned from passing controls; a failed guard caps it.
Model–MCP Runtime Guardrails
- PassIndirect Prompt Injection (IPI) Defensesguardno injection markers
Tool/prompt/resource text is free of hidden instructions that could hijack the agent.
- PassStrict JSON Schema EnforcementadditionalProperties:false present
Tool inputs are constrained (additionalProperties:false), so unexpected arguments can't be smuggled in.
- PassTool Definition Integrityguardtool definitions stable; no risky changes in version history
Every consecutive version pair is diffed for new injection markers or destructive scope — a risky diff anywhere in history is a rug-pull (fail, durable); benign description drift warns.
- PassUser-in-the-Loop / Approval Scopeguardno destructive tool scope
No over-broad or destructive tools (arbitrary shell, bulk-delete) that warrant human approval.
Application Security Checks
- FailNo command-injection sinksguard1 occurrence
Untrusted tool input reaching a shell yields remote code execution. How many servers fail this?
venv/lib/python3.12/site-packages/click/_termui_impl.py:607Fix: Never pass tool arguments to a shell; use argv arrays with shell disabled.
- FailNo dynamic code executionguard7 occurrences
eval()/exec()/Function() on tool-derived strings allows arbitrary code execution. How many servers fail this?
venv/lib/python3.12/site-packages/attr/_make.py:227venv/lib/python3.12/site-packages/cffi/recompiler.py:78venv/lib/python3.12/site-packages/cffi/setuptools_ext.py:26venv/lib/python3.12/site-packages/flask/cli.py:1031Fix: Remove eval/exec; parse and dispatch explicitly.
- FailNo unsafe deserializationguard4 occurrences
pickle/yaml.load/etc. on untrusted data can execute code. How many servers fail this?
venv/lib/python3.12/site-packages/anyio/to_interpreter.py:130venv/lib/python3.12/site-packages/anyio/to_process.py:94venv/lib/python3.12/site-packages/anyio/to_process.py:218venv/lib/python3.12/site-packages/jinja2/bccache.py:73Fix: Use safe loaders (yaml.safe_load, JSON) on untrusted input.
- WarnNo path traversalguard2 occurrences
Naive path checks let tools read/write outside intended directories (EscapeRoute-class).
venv/lib/python3.12/site-packages/cffi/recompiler.py:290venv/lib/python3.12/site-packages/jinja2/environment.py:860Fix: Resolve to a canonical path and verify containment; reject ../ and symlinks.
- WarnNo SSRF sinksguard4 occurrences
Fetching tool-supplied URLs can pivot into internal networks and metadata services.
data_proxy.py:256venv/lib/python3.12/site-packages/jsonschema/validators.py:112venv/lib/python3.12/site-packages/jsonschema/validators.py:1224venv/lib/python3.12/site-packages/jsonschema/validators.py:1228Fix: Allow-list destinations; reject arbitrary/loopback/link-local URLs.
- WarnEstablished maintainerrecently published
Brand-new / single anonymous maintainers raise takeover and malware risk.
Fix: Publish under an established account/org; add multiple maintainers.
- WarnHas a security policyno security policy
A SECURITY.md gives a private path to report vulnerabilities.
Fix: Add SECURITY.md with a disclosure contact and process.
- PassNo committed secretsguardno secrets found
Hardcoded keys/tokens in published source are live credentials an attacker can use.
- PassCredentials sourced from environmentreads credentials from environment
Reading secrets from env/secret stores avoids hardcoding them.
- PassNo known-vulnerable dependencies1 runtime deps, no known CVEs
Runtime dependencies (parsed from the lockfile) are scanned against OSV.dev for published CVEs. Advisory: flagged dependencies lower the score but don't hard-cap it, since transitive reachability is unproven.
- PassDependencies pinned (lockfile)lockfile present
A lockfile makes installs reproducible and resistant to silent dependency swaps.
- PassPackage name not typosquattingguarddistinct package name
Names mimicking popular packages are a common malware delivery vector.
- PassActively maintainedrecent commits
Unmaintained servers don't receive security fixes.
- PassRepository not archivedguardactive
Archived repositories will never be patched.
- PassDeclares a licenseMIT
A clear license is required for legal enterprise use.
- PassAdoption & popularityestablished adoption
A small, capped nudge from stars/downloads — widely-used servers get more eyes on bugs. It can never offset a real security failure.
- Not checkedNo install/post-install scriptsguardnot determinable from PyPI metadata
install hooks run arbitrary code on every consumer at install time.
- Not checkedPublished with provenancenot determinable
Build provenance attests the artifact was built from the claimed source by CI.
- Not checkedSigned releasesnot evaluated
Signed releases let consumers verify artifacts weren't tampered with.
Transport & Trust Model
- WarnNetwork Exposurebinds 0.0.0.0
Binding 0.0.0.0 or exposing debug inspectors widens the attack surface.
Fix: Bind to 127.0.0.1 by default; never ship open debug endpoints.
- PassExecution Sandboxingcontainerized
A container/sandbox image limits blast radius; a server that runs natively has full host access.
- N/ATransport Encryption (TLS)guardno remote endpoints
Plaintext HTTP exposes traffic and bearer tokens to interception.
- N/AIAM / Authentication Scopingno remote endpoints
OAuth 2.1 / Protected Resource Metadata gates who can invoke tools.
- N/ALive Endpoint Reachablenot dynamically scanned
A dynamic scan connected to the declared remote endpoint and it responded — verified live, not a dead URL.
- N/AAuthentication Enforced (live)not dynamically scanned
If the server declares auth is required, it must actually reject anonymous clients. Serving tools to unauthenticated callers is a real exposure.
Embed this score
Add the live badge to your README — it updates automatically on every rescan.
[](https://index.canopii.dev/server/io.github.xelektron/token-enhancer)<a href="https://index.canopii.dev/server/io.github.xelektron/token-enhancer"><img src="https://index.canopii.dev/api/badge/io.github.xelektron/token-enhancer" alt="Canopii Trust Score" /></a>Versions
Wondering how this compares? The MCP Security Index tracks grade distribution, committed secrets, and missing authentication across the whole ecosystem, refreshed monthly.