mcp-compressor
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., "@mcp-compressorlist available tools"
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.
mcp-compressor
MCP Compression Proxy service for PVE.
Wraps any existing MCP server and reduces tool-description token usage by exposing only a tiny discovery interface to the agent:
list_tools()— compact list of{name, brief_description}get_tool_schema(tool_name)— full JSON schema + docs for one tool (cached)invoke_tool(tool_name, arguments)— execute and return resultget_server_info()— metadata about connected upstream servers
Upstream tools are namespaced as mcp__<server>__<tool> to avoid collisions across servers.
Quick start
CLI / uvx mode (single upstream)
# stdio command upstream
uvx mcp-compressor "npx -y @modelcontextprotocol/server-filesystem /tmp"
# SSE URL upstream
uvx mcp-compressor "http://localhost:8080/sse" --server-name fetch --transport stdioService mode (multi-upstream)
Create config.yaml:
servers:
- name: filesystem
command: npx
args: ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
cache_ttl: 300
max_tools: 100
- name: fetch
url: http://localhost:8080/sse
cache_ttl: 300
max_tools: 50
cache_ttl: 300
max_tools: 100
log_level: INFO
host: 127.0.0.1
port: 8000
transport: sseRun:
uvx mcp-compressor --config config.yaml --transport sseOr install as a systemd service on PVE:
uv pip install -e .
mcp-compressor --config /etc/mcp-compressor.yaml --transport sseRelated MCP server: mcp-compressor
Configuration
Option | Env / CLI | Default | Description |
|
|
| List of upstream MCP servers |
|
|
| Schema cache TTL in seconds |
|
|
| Safety cap per upstream server |
|
|
|
|
|
|
| Bind host for SSE/HTTP |
|
|
| Bind port for SSE/HTTP |
|
|
| Log level |
Each upstream server accepts either:
command+args+ optionalenvfor stdio MCP serversurlfor SSE MCP servers
Hermes / Bob mcp.json example
{
"mcpServers": {
"compressor": {
"command": "uvx",
"args": [
"mcp-compressor",
"npx -y @modelcontextprotocol/server-filesystem /tmp"
]
}
}
}For service mode:
{
"mcpServers": {
"compressor": {
"url": "http://127.0.0.1:8000/sse"
}
}
}How it works
The proxy connects to every configured upstream MCP server on startup.
list_toolsreturns a short, stable list of namespaced names and one-line descriptions.When the agent calls
get_tool_schema, the proxy fetches the full schema for that single tool from the upstream server and caches it forcache_ttlseconds.invoke_toolforwards the call to the correct upstream server with the original tool name and returns the result.
This keeps the agent context small while preserving the full MCP contract.
Development
uv sync --extra dev
uv run pytest
uv run ruff check src tests
uv run mypy srcLicense
MIT
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
- Alicense-qualityDmaintenanceA configurable proxy that filters GitHub MCP server tools via YAML whitelist, reducing context consumption from 100+ tools to only the ones you need while providing meta-tools to discover available functionality.MIT
- Alicense-qualityAmaintenanceA proxy server that wraps existing MCP servers to significantly reduce token consumption by compressing tool descriptions into a two-step interface. It enables users to integrate extensive toolsets without exceeding context limits or incurring high API costs.105Apache 2.0
- Alicense-qualityBmaintenanceAggregates multiple backend MCP servers into a single unified interface with optional web management UI for tool control and configuration.75192MIT
Related MCP Connectors
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Search and browse every MCP server in the Model Context Protocol registry.
MCP server exposing the Backtest360 engine API as tools for AI agents.
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/trac3r00/mcp-compressor'
If you have feedback or need assistance with the MCP directory API, please join our Discord server