TraceFlow Compress
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TraceFlow CompressCompress this prompt to 70% and show metrics"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Distil
A serverless prompt-compression MCP connector that compresses prompts fast and returns Distil-style metrics — tokens, cost, latency, compute-load, energy, and carbon — where every number is either measured or a clearly-labeled estimate. See SPEC.md for the full design.
Built around the source whitepaper's Prompt Intelligence + token/cost/ compute/energy/carbon layer (the buildable slice — no GPU hardware required).
Highlights
Fast + serverless: default heuristic compression is pure Python (~3 ms, no model, no API key). Optional
gpt-4o-minimode for higher quality.MCP connector: exposes 5 tools + a metrics resource over streamable HTTP.
Distil metrics: token/cost/latency (measured) + energy/carbon/GPU-load (estimated, labeled). GPU intent preserved via a compute-load model, not faked.
Live dashboard + public
/metricsendpoint.Honest by design: every estimate flagged
estimated: true; closed-model params flaggedparams_known: false.
Related MCP server: token-optimization-mcp
Quick start (local)
pip install -r requirements.txt
python demo.py # try the core on a sample
python eval/run_eval.py # measured eval over sample prompts
pytest tests/ # test suite
python mcp_server.py # run the MCP server over stdio
uvicorn api.index:app --port 8000 # run the HTTP server + dashboard
# → open http://localhost:8000/ (dashboard) and /mcp (connector)MCP tools
Tool | Purpose |
| Compress + full metrics. |
| Recommend a small/large model by complexity + cost transparency |
| Tokens, fillers, redundancy (no compression) |
| Projected monthly cost/carbon savings |
| Aggregate Distil metrics incl. cache hit rate |
| Most compressible prompts seen |
| AIOps: flag low-compression / token / cost spikes (IQR baseline) |
Resource: metrics://summary.
Each compress_prompt result also carries distributed-trace spans (§2.2) —
measured sub-step timings (route, cache_lookup, compress, token_metrics,
estimates).
Semantic caching (§8.2) & multi-model routing (§8.4)
Cache — two-tier, serverless-friendly: exact (normalized hash) + similarity (lexical-cosine,
DISTIL_CACHE_THRESHOLD, default 0.92) so near-identical prompts reuse a prior compression. Namespaced by (ratio, quality, model). Per warm instance. Hit rate is shown on the dashboard.Routing —
route_prompt/target_model="auto"scores prompt complexity (reasoning verbs, code, structure, length) and picks a small vs large model, with per-model cost estimates so the choice is transparent.
Deploy (serverless, Vercel)
Push to GitHub, import into Vercel (Python / Fluid Compute — auto-detected).
Set env vars:
CONNECTOR_API_KEY(gates/mcp), optionalOPENAI_API_KEY(quality mode), optionalUPSTASH_REDIS_REST_URL+_TOKEN(persistent metrics; a local JSON file is used otherwise).Add to Claude via connector settings →
https://<app>.vercel.app/mcp.
Metrics dashboard: https://<app>.vercel.app/.
Metrics reference
Measured (real) | Estimated (labeled) |
tokens in/out/saved, reduction % | cost saved (USD) |
latency (ms) | energy saved (Wh) |
CPU time, peak RAM | carbon saved (g CO₂) |
fillers removed, redundancy % | GPU-ms load + reduction % ( |
Layout
core/ compression + intelligence + estimates + metrics store
mcp_server.py FastMCP tools/resource
api/index.py serverless ASGI entrypoint (MCP + dashboard + /metrics + auth)
dashboard/ static metrics page
eval/ measured evaluation
tests/ unit testsReused from the Prompt Compression Agent
tiktoken counting, the filler list + analysis logic, the metrics dataclass pattern, and the OpenAI wiring (for the optional LLM path).
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP proxy that compresses tool schemas on the fly. Up to 98% token reduction, 100% signal preserved verified after every compression. Zero LLM calls, fully deterministic.Last updated52MIT
- FlicenseAqualityDmaintenanceA fully offline MCP server for token estimation, prompt compression, model routing, and semantic caching to optimize LLM usage costs and efficiency.Last updated9
- AlicenseAqualityAmaintenanceMCP server and local proxy that compresses LLM prompts, tool output, and replies to cut token cost, with a quality gate that reverts any step that does not save. Exposes llmtrim_compress, llmtrim_compress_text, and llmtrim_stats.Last updated3183Mozilla Public 2.0
- FlicenseBqualityCmaintenanceLocal MCP server for token optimization, providing tools to compress code/JSON, optimize prompts, and manage placeholder-based content redaction and hydration to reduce LLM token usage.Last updated5
Related MCP Connectors
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ashritkvs/distil'
If you have feedback or need assistance with the MCP directory API, please join our Discord server