Compressor

Developer tools

An MCP server wrapper for reducing tokens consumed by MCP tools, available in typescript, python, and rust.

Your AI app calls the Compressor MCP server, which does the developer tools work and sends the result back to the chat.

About Compressor

Compressor is a community MCP server from atlassian-labs, filed in our directory under developer tools. An MCP server wrapper for reducing tokens consumed by MCP tools, available in typescript, python, and rust.

At a glance

Publisher
atlassian-labs (community)
Runs
See the README for setup
Written in
Rust
License
Apache-2.0
GitHub stars
146

How to set up Compressor

  1. Follow the install steps in the Compressor README; it is written in Rust, so have that toolchain ready.
  2. Check the Compressor README for keys or settings; the registry lists none that Compressor requires.
  3. Add Compressor to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Compressor tools to confirm the connection.
  5. Run one read-only task with Compressor first, and keep your app asking before each tool call until the results look right.

Compressor compared with similar servers

  • MCP Juridico Brasil by DeHor-Labs has fewer GitHub stars than Compressor (146 against 146); both are community servers, and both run locally.
  • Comfyui MCP Panel by artokun has fewer GitHub stars than Compressor (146 against 146); both are community servers, and both run locally.
  • Obsidian MCP Connector by istefox has fewer GitHub stars than Compressor (146 against 146); both are community servers, and both run locally.

Before you connect Compressor

  • Give Compressor its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Compressor tool call until you trust what it does with them.
  • Treat text that Compressor fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Compressor on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Compressor

How marketing and sales teams put Compressor to work, by company size. Pick the size closest to yours and start Compressor on one use case.

Small business

  • A small business with a developer can use Compressor to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Compressor to explain and fix a marketing site issue without context switching between tools.
  • Compressor runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Compressor to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Compressor to keep scripts and automations documented and versioned as they change.
  • Start Compressor on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Compressor with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Compressor so web and marketing engineering share one reviewed way of working with AI.
  • Compressor is a community server, so have security review the code and pin a version before Compressor touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Compressor README

From atlassian-labs/mcp-compressor on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

mcp-compressor

mcp-compressor helps agents use large MCP servers without spending huge amounts of context on tool descriptions and schemas.

It can run as a CLI MCP proxy, or be embedded directly from Python, TypeScript, or Rust.

Why mcp-compressor?

A powerful MCP server can expose dozens or hundreds of tools. Each tool has a name, description, input schema, and sometimes large nested JSON Schema details. Sending all of that to a model up front can waste thousands of tokens before the agent has done any useful work.

For example, large public MCP servers can spend thousands or tens of thousands of tokens on tool descriptions alone. That creates three problems:

  • models spend context on tools they may never call,
  • cost increases for every request that carries the tool list,
  • adding multiple MCP servers quickly overwhelms practical context budgets.

mcp-compressor changes the interaction pattern: the model sees a small compressed surface first, asks for the full schema only for the selected tool, and then invokes that tool.

Opt into bounded tool responses in any proxy mode with --shrinkfit (20,000 characters) or --shrinkfit=10000. Object responses retain their top-level shape and add truncation instructions. CLI/Code/Just Bash sessions save the full original in a private temporary file; MCP callers can recall with full=true using a session cache or bypassing shrinking on a backend call. See recoverable response shrinking.

Pattern 1: compressed MCP proxy

Use this when you want any MCP client to see a smaller tool surface.

sequenceDiagram
    participant Client as MCP client / agent
    participant Proxy as mcp-compressor
    participant Backend as Backend MCP server

    Client->>Proxy: tools/list
    Proxy->>Backend: tools/list
    Backend-->>Proxy: all backend tools and schemas
    Proxy-->>Client: compact wrapper tools
    Client->>Proxy: get_tool_schema(tool_name)
    Proxy-->>Client: full schema for selected tool
    Client->>Proxy: invoke_tool(tool_name, input)
    Proxy->>Backend: tools/call selected backend tool
    Backend-->>Proxy: tool result
    Proxy-->>Client: result

The frontend usually exposes only:

  • get_tool_schema
  • invoke_tool
  • optionally list_tools at max compression
MCP protocol negotiation

The stdio and streamable HTTP frontends accept both legacy initialize clients and modern 2026-07-28 discovery clients, including Python MCP SDK 2.2.0 in auto, legacy, or explicit 2026-07-28 mode. Backend connections initialize independently, so modern clients can use legacy backends without sending frontend negotiation metadata to them. Backends must support legacy initialize; modern-only backends are not supported. Application tool-call metadata and tool result content, annotations, structured content, and error flags are preserved.

Modern catalog and resource-read responses use ttlMs: 0 and private cache scope. Catalogs remain static for the connection; dynamic change subscriptions are not advertised or supported. Legacy responses omit modern protocol fields.

Pattern 2: local proxy for SDKs and generated clients

Use this when your application wants to embed compression directly and call tools from code or shell commands.

flowchart LR
    App[Python / TypeScript / Rust app]
    SDK[CompressorClient]
    Proxy[Local session proxy\n/token auth]
    Generated[Generated CLI / Python / TS clients]
    Backend[MCP backend servers]

    App --> SDK
    SDK --> Proxy
    Generated --> Proxy
    Proxy --> Backend

The SDK starts a local session proxy for generated clients. Generated clients call that proxy using a session token. Your app does not need to spawn a mcp-compressor stdio subprocess.

Features

Quick example

=== "CLI"

```bash
mcp-compressor -c medium -- python server.py
```

=== "Python"

```python
from mcp_compressor import CompressorClient

with CompressorClient(
    servers={"alpha": {"command": "python", "args": ["server.py"]}},
    compression_level="medium",
) as proxy:
    print([tool.name for tool in proxy.tools])
    print(proxy.invoke("echo", {"message": "hello"}))
```

=== "TypeScript"

```ts
import { CompressorClient } from "@atlassian/mcp-compressor";

const proxy = await new CompressorClient({
  servers: { alpha: { command: "python", args: ["server.py"] } },
  compressionLevel: "medium",
}).connect();

try {
  console.log(proxy.tools.map((tool) => tool.name));
  console.log(await proxy.invoke("echo", { message: "hello" }));
} finally {
  proxy.close();
}
```

=== "Rust"

```rust
use mcp_compressor::compression::CompressionLevel;
use mcp_compressor::sdk::{CompressorClient, ServerConfig};
use serde_json::json;

let proxy = CompressorClient::builder()
    .server("alpha", ServerConfig::command("python").arg("server.py"))
    .compression_level(CompressionLevel::Medium)
    .build()
    .connect()
    .await?;

let result = proxy.invoke("echo", json!({ "message": "hello" })).await?;
```

Generated clients

CLI Mode generates shell commands:

mcp-compressor --cli-mode --server-name atlassian -- https://mcp.atlassian.com/v1/mcp
atlassian get-accessible-atlassian-resources

Code Mode generates Python or TypeScript functions:

# generated-py/atlassian.py
import atlassian

resources = atlassian.get_accessible_atlassian_resources()
import { getAccessibleAtlassianResources } from "./generated-ts/atlassian.ts";

const resources = await getAccessibleAtlassianResources();

See Code Mode and generated clients for more detail.

Where to go next

  1. Install the package you need.
  2. Run the quickstart.
  3. Read how compression works.
  4. Choose between CLI usage, SDK usage, generated clients, and Just Bash.

Questions about Compressor

What is the Compressor MCP server?

An MCP server wrapper for reducing tokens consumed by MCP tools, available in typescript, python, and rust. Compressor is maintained by atlassian-labs on GitHub at atlassian-labs/mcp-compressor, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Compressor MCP server?

Compressor doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (atlassian-labs/mcp-compressor). Like most servers, Compressor ends with a command or URL you paste into your AI app's MCP config.

Does Compressor need an API key?

The registry lists no required keys for Compressor. Check the Compressor README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Compressor an official MCP server?

No. Compressor is a community server maintained by atlassian-labs. Community servers can be excellent; read the code and the open issues before you give Compressor access to company data.

What license is Compressor under?

Compressor is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Compressor; the service it connects to has its own terms.