AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified Apache-2.0 Self-run

Mcp Compressor

mcp-atlassian-labs-mcp-compressor · by atlassian-labs

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

No reviews yet
0 installs
34 views
0.0% view→install

Install

$ agentstack add mcp-atlassian-labs-mcp-compressor

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution Used
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-atlassian-labs-mcp-compressor)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Mcp Compressor? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

mcp-compressor

[](https://github.com/atlassian-labs/mcp-compressor/releases) [](https://github.com/atlassian-labs/mcp-compressor/actions/workflows/main.yml?query=branch%3Amain) [](https://github.com/atlassian-labs/mcp-compressor/commits/main) [](https://github.com/atlassian-labs/mcp-compressor/blob/main/LICENSE)

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.

  • Documentation:
  • Repository:
  • Blog:

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.

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

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 mcpcompressor::compression::CompressionLevel; use mcpcompressor::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.getAccessibleAtlassianResources()
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.

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.