Agent♥︎Age
Catalog

io.github.base76-research-lab/token-compressor

Official

by base76-research-lab · Python

Compress prompts 40-60% using local LLM + embedding validation. Preserves all conditionals.

MCP Server: io.github.base76-research-lab/token-compressor

The MCP server “token-compressor” compresses prompts by 40–60% (also described as 30–70%) while preserving semantic meaning, including conditionals. It performs prompt compression using a local LLM plus embedding validation, and is marked as MIT licensed and MCP compatible.

🛠️ Key Features

  • Prompt compression: 40–60% (30–70% stated)
  • Preserves semantic meaning
  • Preserves conditionals
  • Uses local LLM with embedding validation

🚀 Use Cases

  • Reducing LLM prompt token usage in LLM workflows
  • Keeping prompt logic/conditionals intact during compression

⚡ Developer Benefits

  • Lower token usage for prompt processing
  • Semantic meaning preservation using embedding validation
  • Local processing implied via “Requires: Ollama”

⚠️ Limitations

  • Requires Ollama (explicitly indicated)

Topics

mcp-server