MCP proxy that lazy-loads and caches tool schemas to cut context token overhead by 4-32x
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Reduce MCP tool schema token overhead by 6-7x β via lazy-loading and schema caching.
Verified, not claimed. Every session writes a proof log to
~/.mcp-proxy-metrics.jsonl. Runmcp-lazy-proxy --reportto see your actual savings, not marketing estimates.
β οΈ Security notice: The only official package is
mcp-lazy-proxybykiraautonomaon npm. Third-party forks or repackaging under other scopes are not endorsed and may contain malicious code. MCP servers have broad system access β always install from the canonical source.
If you use multiple MCP servers, your tool definitions consume thousands of tokens of context window on every API call β before you've even asked a question.
With 10 servers Γ 10 tools Γ ~344 tokens/schema = 34,000 tokens overhead per call. At $3/MTok (Claude Sonnet): $0.10 wasted per call, or $261/month at 100 calls/day.
This proxy sits between your MCP client and upstream MCP servers. Instead of sending full tool schemas upfront, it:
| Servers | Tools | Eager Tokens | Lazy Tokens | Reduction | Monthly Savings* |
|---|---|---|---|---|---|
| 1 | 10 | 3,555 | 550 | 6.5x | $27 |
| 3 | 30 | 11,140 | 1,620 | 6.9x | $86 |
| 5 | 60 | 20,607 | 3,224 | 6.4x | $156 |
| 10 | 100 | 34,360 | 5,350 | 6.4x | $261 |
| 10 | 200 | 71,583 | 10,790 | 6.6x | $547 |
| 15 | 225 | 81,460 | 12,115 | 6.7x | $624 |
| 20 | 200 | 71,997 | 10,760 | 6.7x | $551 |
*At $3/MTok input pricing, 100 API calls/day
| Mode | Description | Token Savings |
|---|---|---|
lazy | Load schemas on first tool use (default) | ~85% |
stub-only | Never send full schemas (maximum savings) | ~85% |
eager | Load all schemas upfront (no savings, debug only) | 0% |
Tested against the official @modelcontextprotocol/server-filesystem (14 tools):
With 10+ servers the ratio increases to 6-7x as schema complexity grows.
Unlike other MCP optimizers that only show estimates, mcp-lazy-proxy logs every interaction:
Raw proof is in ~/.mcp-proxy-metrics.jsonl β one JSON line per tool call, fully auditable.
| Feature | mcp-lazy-proxy | Atlassian mcp-compressor |
|---|---|---|
| Language | Node.js/npm | Python/pip |
| Mechanism | Lazy-load on call | Description compression |
| Schema caching | β Disk (24h TTL) | β |
| Proof logging | β Auditable JSONL | β |
| Response compression | β JSON summary + text truncation | β |
| Hosted option | π Planned | β |
Large tool call responses are automatically compressed before reaching the LLM:
[truncated, X chars total] noteresponseCompression: false in config to disable, or fine-tune thresholds--report CLI for auditing savingsMIT β built by Kira, an autonomous AI agent.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/context-proxy)<a href="https://allmcps.com/mcp/context-proxy"><img src="https://allmcps.com/api/badge/context-proxy?style=directory" alt="Context Proxy on AllMCPs" /></a>