MCP.Market

Token Enhancer MCP server

by xelektron·io.github.xelektron/token-enhancer·v0.2.1·68 stars

Cuts AI web-fetching costs up to 99.9% by stripping page junk before it reaches your LLM.

B78/100grade B
What users say
No reviews yet
Be the first
Safety scan
B78/100

full report

Adoption
Growing

68 stars35 downloads/wk

Reviews

Write one

Nobody has reviewed Token Enhancer yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Token Enhancer tools (3)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • fetch_clean

    Fetch a URL and return clean text with all HTML noise removed. Strips navigation, ads, scripts, styles, and boilerplate. Caches results to avoid redundant fetches. Typical reduction: 86-99% fewer tokens than raw HTML.

  • fetch_clean_batch

    Fetch multiple URLs and return clean text for each. Each URL is stripped of HTML noise and cached independently.

  • refine_prompt

    Refine a prompt by removing filler words while preserving entities, negations, time references, and conversation context. Returns both the original and suggested version so you can choose.

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

no findings
  • Code scan6 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 176 days ago8/15
  • Maintainer identityregistry namespace matches repository owner6/10
Overall 78/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Token Enhancer compares

Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
78/100
higher than 57% of 4,460 AI and agents servers
Tools
3
the typical AI and agents server has 6
Tools that change things
0%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
68
more than 93% of 2,711 AI and agents servers
Downloads a week
35
more than 25% of 1,538 AI and agents servers with a package

What its tools let an agent do: 3 read

Install Token Enhancer in Claude Code, Cursor or VS Code

claude mcp add token-enhancer -- uvx xelektron-token-enhancer
Add to Cursor

What the publisher says

From the Token Enhancer repository's README, as published. We do not edit it. Read it on GitHub

<!-- mcp-name: io.github.xelektron/token-enhancer -->

Token Enhancer

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://github.com/xelektron/token-enhancer.git
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://finance.yahoo.com/quote/AAPL/"}' \
  | 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 config file

Mac: ~/Library/Application Support/Claude/claudedesktopconfig.json

Windows: %APPDATA%\Claude\claudedesktopconfig.json

{
  "mcpServers": {
    "token-enhancer": {
      "command": "python3",
      "args": ["-m", "mcp_server"],
      "env": {
        "REQUESTS_CA_BUNDLE": "/etc/ssl/certs/ca-certificates.crt"
      }
    }
  }
}

On Linux hosts where SSL verification fails, the env block above overrides the default CA bundle. Remove it on macOS/Windows.

Cursor: Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "token-enhancer": {
      "command": "python3",
      "args": ["-m", "mcp_server"]
    }
  }
}

Once connected, your agent gets three tools:

fetch_clean fetches any URL and returns clean text (86 to 99% smaller)

fetchcleanbatch fetches multiple URLs at once

refine_prompt optional prompt cleanup, shows both versions so you decide

As a LangChain Tool

from langchain.tools import tool
import requests

@tool
def fetch_clean(url: str) -> str:
    """Fetch a URL and return clean text with HTML noise removed."""
    r = requests.post("http://localhost:8080/fetch", json={"url": url})
    return r.json()["content"]

Add fetch_clean to your agent's tool list. Start python3 proxy.py first.

Features

Data Proxy (Layer 2) Fetches any URL, strips HTML/JSON noise, returns clean text. Caches results so repeat fetches are instant. Handles HTML, JSON, and plain text.

Prompt Refiner (Layer 1, opt in) Strips filler words and hedging while protecting tickers, dates, money values, negations, and conversation references. You see both versions and choose.

MCP Server Plug into Claude Desktop, Cursor, OpenClaw, or any MCP client. Agent discovers the tools and uses them automatically.

API Endpoints (proxy mode)

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Token Enhancer: common questions

Is Token Enhancer MCP server safe?
Mostly: it is graded B (78/100). Read the Token Enhancer safety report
How do I install Token Enhancer?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Token Enhancer need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Token Enhancer maintained?
The last commit was 213 days ago (2026-04-05). The latest release is v0.2.1.
What can I use instead of Token Enhancer?
Servers from other publishers that do the same job: llmtrim MCP server, Robin: AI-Powered Dark Web OSINT MCP server and Charlotte MCP server. Compare all Token Enhancer alternatives.
How does Token Enhancer compare with other AI and agents MCP servers?
safety score 78/100 (higher than 57% of 4,460 AI and agents servers); tools 3 (the typical AI and agents server has 6); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to Token Enhancer

Same job from other publishers: the closest match first, then the best rated.

All Token Enhancer alternatives →
  • llmtrim
    MCP server and proxy that compresses LLM prompts, tool output, and replies to cut token cost.
    A
  • Robin: AI-Powered Dark Web OSINT
    Dark web OSINT over Tor: search onion engines, scrape pages, report with your own model.
    A
  • Charlotte
    Renders web pages into structured, agent-readable representations using headless Chromium.
    A
  • agent-device
    Open source device layer for AI agents: control mobile, web, TV, and desktop apps over MCP
    A
  • Commonly
    Read Commonly pods and post as a Commonly agent you create, with a token from your Commonly account.
    A