Skip to main content

MCP plugin + Python library for LLM token compression. 50+ languages, zero ML models. Port of Caveman (C#).

Project description

Synthelion — Token Compressor for Claude Code

Synthelion is a plugin for Claude Code that compresses your prompts before sending them to AI models — saving tokens, reducing costs, and speeding up responses. Works across 50+ languages with no AI model required.

"Why use many tokens when few tokens do trick?" — A caveman (and your wallet).


Install in 3 steps

Step 1 — Install the package

pip install synthelion

Step 2 — Add to Claude Code

Open your Claude Code settings file and add the synthelion block inside mcpServers:

macOS / Linux~/.claude/settings.json
Windows%APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "synthelion": {
      "command": "synthelion-mcp"
    }
  }
}

Step 3 — Restart Claude Code

Close and reopen Claude Code. Synthelion is ready.


No pip? Use uvx instead (zero install)

If you have uv installed, skip pip install entirely:

{
  "mcpServers": {
    "synthelion": {
      "command": "uvx",
      "args": ["synthelion-mcp"]
    }
  }
}

What you can ask Claude

Once installed, just talk to Claude naturally:

"Compress this text to save tokens"

"What language is this text written in?"

"Summarize this article in 3 sentences"

"Compress this JSON / HTML / git diff / log file"

"Compress these 10 prompts all at once"

Synthelion automatically picks the best compression strategy for each content type.


Tools

Tool What it does
compress Removes stop words and lemmatizes content words. Up to 70% token reduction.
detect_language Identifies the language of any text (returns ISO 639-3 code).
route_content Auto-detects JSON, HTML, git diff, logs, code or prose and compresses accordingly.
summarize Extractive summarization — keeps the most important sentences.
compress_batch Compresses a list of texts in a single call.

Compression levels

Level What it removes Typical savings
light Stop words only (articles, prepositions…) 25–35%
semantic Stop words + reduces words to their base form 30–69%
aggressive Everything above + generic verbs and adjectives 35–70%

Default is semantic. Ask Claude to use a different level if needed:

"Compress this aggressively to save as many tokens as possible"


Troubleshooting

synthelion-mcp: command not found

Python's Scripts folder is not in your PATH. Use the full path instead:

{
  "mcpServers": {
    "synthelion": {
      "command": "python",
      "args": ["-m", "synthelion.plugins.mcp_server"]
    }
  }
}

Or just use the uvx option above — it always works without PATH issues.


Supported languages (50+)

Afrikaans, Arabic, Basque, Belarusian, Bengali, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, Galician, German, Greek, Hebrew, Hindi, Hungarian, Armenian, Icelandic, Indonesian, Irish, Italian, Japanese, Kannada, Kazakh, Korean, Latin, Latvian, Lithuanian, Macedonian, Malay, Marathi, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swedish, Tamil, Telugu, Thai, Turkish, Ukrainian, Urdu, Vietnamese.

Language is detected automatically — no configuration needed.


PyPI · Source

© 2026 Passaro Francesco Paolo — Digitalsolutions.it

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

synthelion-1.0.1.tar.gz (12.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

synthelion-1.0.1-py3-none-any.whl (12.8 MB view details)

Uploaded Python 3

File details

Details for the file synthelion-1.0.1.tar.gz.

File metadata

  • Download URL: synthelion-1.0.1.tar.gz
  • Upload date:
  • Size: 12.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for synthelion-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6d42c72b8f00e9dbf374418784a56ea4becb9a7bb7bdff1d91ab3458ef8dfb5b
MD5 c73fe82cf11fb31ae521d203cc13814d
BLAKE2b-256 bb50cce7603b502e02a9db400dab4aeeaa1ba13dc6ad501b3b3e5ac82051bf11

See more details on using hashes here.

File details

Details for the file synthelion-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: synthelion-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for synthelion-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b5163ba2688322e51b3024e16a4b0b735a97e7a5619c38eb4b521d8aa3041d0
MD5 98f430c6a13289bcc683c941efbc6cab
BLAKE2b-256 da06c901498d383cfcc6b51e273cf9cbda0e4999b03fa48d7d0fc350929155e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page