Token Compressor

Token Compressor

Compress LLM prompts by up to 70% with meaning intact.

Visit Token Compressor

About Token Compressor

Token Compressor is an open-source MCP server and Python toolkit for compressing language model prompts by 30–70% while preserving semantic meaning and conditional logic. Using a two-stage pipeline, it rewrites prompts to their semantic minimum and validates meaning retention with embedding cosine similarity, which helps reduce token costs and optimize LLM workflows. It is ideal for LLM developers, prompt engineers, and teams seeking more efficient, cost-effective context management when working with local or API-based models.

Resources

Product Website

Visit Token Compressor's official website for product details and getting started.

Visit website →

Documentation

Comprehensive guide to installing and using Token Compressor, including API references.

View docs →

Blog

Insights and best practices for optimizing prompt engineering with Token Compressor.

Read blog →

Community

Connect with other users and developers to share tips and ask questions about Token Compressor.

Join community →