mcp-compress-router
Active·★ 21·MIT·Updated 2026-10-10
MCP Compress Router acts as a unified router for multiple Model Context Protocol (MCP) servers, significantly reducing token usage and costs by compressing all tool definitions into a compact representation. It presents coding agents with a simplified interface of just two tools (`get_tool_schema`, `invoke_tool`), optimizing LLM interactions.
#MCP#Token Optimization#LLM Tooling#API Gateway#Cost Reduction#Agent Development#Tool Routing#Model Context Protocol
01
Features
01Compresses multiple MCP servers into a single router MCP.
02Achieves up to 99% token cost reduction for LLM interactions.
03Provides dynamic tool schema retrieval and invocation via a compact interface.
04Supports configuration of downstream stdio and HTTP MCP servers, including OAuth.
05Allows fine-grained control over exposed tools and compression levels per server.
02
Compatibility
Node.js
Runtime
Verified via docs
Opencode
Agent
Verified via docs
Claude Code
Agent
Verified via docs
Codex
Agent
Verified via docs
GitHub Copilot
Agent
Verified via docs
03
Quick start
1
$ npx mcp-compress-router@latest add github --description "GitHub API tools" -- npx -y @modelcontextprotocol/server-github
04
Use cases
↳Cost-effectively connect multiple coding agents to a broad set of tools.
↳Reduce token usage and API costs in LLM-driven development workflows.
↳Centralize management and routing of tools from various Model Context Protocol servers.
↳Optimize LLM performance by providing a highly compressed tool catalog.
05
Alternatives
conduit★ 235
Local MCP gateway that cuts your agent's tool-token overhead ~90%. Every MCP server's tools collapse to 3 meta-tools the agent searches on demand. Measured: 97% less per request, same results. Keys in your OS keychain, no cloud.
toolport★ 235
Local-first MCP gateway. One port for every tool and every AI client: lazy discovery (~90% token savings), tool integrity + quarantine, secrets in the OS keychain.
agent-harness-generator★ 713
🛠️ The meta-harness for AI agents — scaffold your own focused, branded agent harness with its own npx CLI, MCP server, memory, learning loop, and witness-signed releases. Works with Claude Code, Codex, pi.dev, Hermes, OpenClaw, and RVM (hardware-isolated sandbox).
fastmcp-ts★ 78
🏎️ The official FastMCP TypeScript library - build MCP servers, clients, and apps... fast! 🏎️
Comments
Log in to leave a comment
No comments yet. Be the first!