{"id":"37eed3ba-7334-4888-be0e-380c15d99dee","shortId":"dptGAC","kind":"mcp","title":"Token Compressor","tagline":"Semantic prompt compression using local LLM rewriting with embedding validation to reduce token usage by 40-60%.","description":"Semantic prompt compression using local LLM rewriting with embedding validation to reduce token usage by 40-60%.\n\nToken Compressor is a two-stage pipeline that compresses prompts before they reach an LLM. The first stage uses a local model (llama3.2:1b via Ollama) to rewrite prompts to their semantic minimum while preserving all conditionals and negations. The second stage validates compression quality by computing cosine similarity between original and compressed embeddings using nomic-embed-text, falling back to the original if similarity drops below a configurable threshold.\n\nThe system requires Ollama running locally and exposes a compress_prompt tool. It achieves 40-60% token reduction across English and Swedish prompts while maintaining semantic fidelity through the embedding validation gate.","tags":["token","compressor"],"capabilities":["mcp","transport-stdio","open-source"],"categories":[],"synonyms":[],"warnings":[],"endpointUrl":"https://github.com/base76-research-lab/token-compressor","protocol":"mcp","transport":"stdio","auth":{"type":"mcp","details":{"transport":"stdio"}},"qualityScore":"0.566","qualityRationale":"deterministic score 0.57 from registry signals: · indexed on pulsemcp · has source repo · 8 github stars · registry-generated description present","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:mcp:v1","enrichmentVersion":1,"enrichedAt":"2026-05-02T07:22:08.518Z","embedding":null,"createdAt":"2026-04-18T21:49:11.385Z","updatedAt":"2026-05-02T07:22:08.518Z","lastSeenAt":"2026-05-02T07:22:08.518Z","tsv":"'-60':19,36,124 '1b':61 '40':18,35,123 'achiev':122 'across':127 'back':98 'compress':5,22,46,81,90,118 'compressor':2,38 'comput':84 'condit':74 'configur':107 'cosin':85 'drop':104 'emb':95 'embed':11,28,91,138 'english':128 'expos':116 'fall':97 'fidel':135 'first':54 'gate':140 'llama3.2':60 'llm':8,25,52 'local':7,24,58,114 'maintain':133 'mcp' 'minimum':70 'model':59 'negat':76 'nomic':94 'nomic-embed-text':93 'ollama':63,112 'open-source' 'origin':88,101 'pipelin':44 'preserv':72 'prompt':4,21,47,66,119,131 'qualiti':82 'reach':50 'reduc':14,31 'reduct':126 'requir':111 'rewrit':9,26,65 'run':113 'second':78 'semant':3,20,69,134 'similar':86,103 'stage':43,55,79 'swedish':130 'system':110 'text':96 'threshold':108 'token':1,15,32,37,125 'tool':120 'transport-stdio' 'two':42 'two-stag':41 'usag':16,33 'use':6,23,56,92 'valid':12,29,80,139 'via':62","prices":[{"id":"e1938b7c-5e37-4558-a846-5fbe6cf069c3","listingId":"37eed3ba-7334-4888-be0e-380c15d99dee","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"mcp-free","isPrimary":true,"details":{"transport":"stdio"},"createdAt":"2026-04-18T21:49:11.385Z"}],"sources":[{"listingId":"37eed3ba-7334-4888-be0e-380c15d99dee","source":"pulsemcp","sourceId":"https://www.pulsemcp.com/servers/base76-research-lab-token-compressor","sourceUrl":"https://api.pulsemcp.com/v0beta/servers","isPrimary":true,"firstSeenAt":"2026-04-18T21:49:11.385Z","lastSeenAt":"2026-05-02T07:22:08.518Z"}],"details":{"listingId":"37eed3ba-7334-4888-be0e-380c15d99dee","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"source":"pulsemcp","transport":"stdio","server_name":"Token Compressor","external_url":"https://github.com/base76-research-lab/token-compressor","github_stars":8,"registry_url":"https://www.pulsemcp.com/servers/base76-research-lab-token-compressor","source_code_url":"https://github.com/base76-research-lab/token-compressor"},"updatedAt":"2026-05-02T07:22:08.518Z"}}