SuperCompress

MCP · Updated 2026-10-06

MCP Tool output Token usage

MCP tool output compression: keep the lines that answer the question

MCP tools return whatever the server sends back: full JSON objects, long logs, whole files, pages of search hits. All of it lands in the model's context, and it is paid for again on every turn it stays there. SuperCompress compresses MCP tool results against the question your agent is working on, so the model reads the lines that answer it instead of the whole dump.

October 6, 2026 · Guide

In short: send SuperCompress the tool result plus the current question. It keeps the original lines that answer that question and drops the rest. It never rewrites or summarizes, and every response reports original_tokens and kept_tokens.

Why MCP token usage grows

Most MCP servers wrap an API and pass its response straight through. A single call can return dozens of records with every field filled in, a full build log, or an entire file when the agent needed one function. The model has to read all of it to find the part that matters, and the tool result keeps riding along in the conversation on later turns.

How SuperCompress compresses MCP tool results

SuperCompress is hosted, extractive and query-aware.

  1. You send two things: the tool output as context, and the current question or task as query. The query is never compressed.
  2. It picks lines, it does not write them. SuperCompress keeps the original lines from the tool output that answer that question and drops the rest. Nothing is paraphrased, so IDs, paths, error messages and code stay exactly as the tool returned them.
  3. You see the result. Every response reports original_tokens and kept_tokens, so the saving is measured on your own traffic, call by call.

Set it up in your coding agent

One command finds the coding agents on your machine and adds the SuperCompress MCP server and hooks to each of them:

npm install -g supercompress-proxy && supercompress setup

Your agent then has three MCP tools:

ToolWhat it does
compress_contextTakes a bulky context (tool output, logs, diffs, files) and the user's query, and returns the kept lines with original_tokens and kept_tokens.
connect_accountLinks the agent to your SuperCompress account.
usage_summaryShows token totals and quota for the connected account.

Run supercompress doctor at any time to check what is wired up. The full harness list is in the coding agents guide.

Building your own MCP host or agent

If you run the agent loop yourself, compress each large tool result before you append it to the messages you send to the model. The hosted MCP endpoint is:

https://www.supercompress.dev/api/mcp

Or call the HTTP API directly with an API key from the dashboard:

curl -X POST https://www.supercompress.dev/api/v1/compress \
  -H "X-API-Key: sc_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"context": "<the MCP tool result>", "query": "<what the agent is trying to answer>"}'

Request fields and response fields are in the API reference.

How it compares to other ways to reduce MCP token usage

There are two separate costs in an MCP setup: the tool definitions the model sees on every turn, and the tool results that come back from each call. Different tools go after different parts.

ApproachWhat it changesHow it decides what to keep
SuperCompressThe content of a tool result (or any large context)Against the current question: keeps the original lines that answer it and drops the rest
compressmcpLarge JSON tool responses in Claude CodeKeeps every value and abbreviates repeated JSON keys, with a key dictionary the model reads to decode them
Bifrost Code ModeTool definitions and multi-step tool workflows across many MCP serversExposes four meta-tools; the model writes Python (Starlark) that runs the tool calls in a sandbox and returns only the final result

These approaches do not exclude each other. Code Mode shrinks the tool catalog, key abbreviation shrinks JSON structure, and SuperCompress decides which parts of a result are worth reading for the question at hand.

When it helps, and when to skip it

Pricing

Current plans and your free allowance are shown in the dashboard.

FAQ

Does SuperCompress rewrite or summarize tool results?

No. It is extractive. Every line it returns is copied from the original tool output.

What do I send besides the tool output?

The current question or task. SuperCompress uses it to decide which lines to keep, and it never compresses the question itself.

How do I check what was removed?

Each response includes original_tokens and kept_tokens. For account totals, call the usage_summary MCP tool.

Get API key Coding agents guide