Agent♥︎Age
Catalog

Token Enhancer

Official

by xelektron · Python

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

Model Context Protocol (MCP) Server: io.github.xelektron/token-enhancer

This MCP server is a local proxy that strips web pages down to clean text before they enter an AI agent’s context window. It aims to reduce token usage by removing navigation bars, ads, scripts, and other page junk. It operates without an API key, LLM, or GPU, using Python.

🛠️ Key Features

  • Local proxy that converts fetched pages to clean text for agent context
  • Removes “junk” content such as navigation bars, ads, and scripts
  • Demonstrates large token reduction (e.g., Yahoo Finance)

🚀 Use Cases

  • Web fetching for AI agents where raw HTML inflates token budgets
  • Preprocessing web content before it reaches an LLM context window

⚡ Developer Benefits

  • Reduces tokens consumed per page fetch (example: 704,760 → 2,625 tokens; 99.6% reduction)
  • No API key requirement
  • No LLM and no GPU required (Python only)

⚠️ Limitations

  • Tool count is not provided in the available data
  • Only a partial README excerpt is available (details beyond the proxy/stripping approach are not included)

Topics

mcp-server