An MCP server wrapper for reducing tokens consumed by MCP tools.
{
"mcpServers": {
"mcp-compressor": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
An MCP server wrapper for reducing tokens consumed by MCP tools.
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
Apache-2.0. View license →
Is it maintained?
Last commit 2 days ago. 18 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for Mcp Compressor and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
An MCP server wrapper for reducing tokens consumed by MCP tools.
Added a sibling TypeScript implementation with matching compression concepts, OAuth support, in-process runtime APIs, and TypeScript CLI mode.
COMMAND_OR_URLcan now be a single MCP config JSON string. For now,mcpServersmust contain exactly one server, and its key becomes the default--server-nameunless one is passed explicitly.
--cli-mode— Converts any wrapped MCP server into a local CLI. Generates an executable shell script (Unix) or.cmdfile (Windows) so agents and users can interact with the backend via familiar command-line conventions rather than structured tool calls.
--toonify— Automatically converts JSON responses from wrapped backend tools into TOON format, a compact human- and LLM-readable alternative to JSON.
MCP Compressor is a proxy server that wraps existing Model Context Protocol (MCP) servers and compresses their tool descriptions to significantly reduce token consumption. Instead of exposing all tools with full schemas directly to language models, it provides a two-step interface:
get_tool_schema(tool_name) - Retrieve the full schema for a specific tool when neededinvoke_tool(tool_name, tool_input) - Execute a tool with the provided argumentsThis approach dramatically reduces the number of tokens sent in the initial context while maintaining full functionality.
MCP servers are exploding in popularity, but their tool descriptions consume significant tokens in every LLM request. For example:
With 30k+ tokens just for tool descriptions, costs can reach 1-10 cents per request depending on prompt caching. MCP Compressor solves this by replacing dozens of tools with just 2 wrapper tools, achieving 70-97% token reduction while maintaining full functionality. This enables:
low, medium, high, or max