
ameshkov/mcp-compress-router
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
모든 연결된 MCP를 단일 라우터 MCP로 압축하고 토큰에서 최대 99 %까지 절약하십시오
개요
모든 연결된 MCP를 단일 라우터 MCP로 압축하고 토큰에서 최대 99 %까지 절약하십시오. MCP Compress Router는 여러 MCP 서버를 코딩 에이전트에 연결하는 개발자를 위한 단일 MCP 서버입니다. 직접 연결, 각 요청은 모든 도구 정의를 수행합니다. - 약 26K 토큰 3 인기있는 서버, 약 $0.93 50 회전 세션. 라우터는 두 개의 도구, get tool schema 및 invoke tool을 사용하여 해당 목록을 대체하고 에이전트가 요청할 때 도구의 전체 스키마를 반환합니다. 대략 600개의 토큰의 카탈로그에 동일한 3개의 서버 압축은 대략 97.7%에 의해 머리말을 자르기. 가격 모델에 대한 토큰 오버 헤드에 대해 알아보십시오. - 한 곳에서 모든 다운스트림 MCP 서버를 관리하고 라우터에 각 에이전트를 연결합니다. - 라우터는 에이전트가 모든 차례에 모든 정의를 보냅니다. 실제 저축은 코딩 대리인에 달려 있습니다: 몇몇 대리인은 이미 그들의 자신의 알고리즘 (아래 측정한 저축을 보십시오)를 가진 그들의 요구에 도구 정의를 지킵니다.
개요(AI 번역)
모든 연결된 MCP를 단일 라우터 MCP로 압축하고 최대 99 %의 저장 토큰.
묘사
MCP Compress Router는 개발자를 위한 단일 MCP 서버입니다.
여러 MCP 서버에서 코딩 에이전트. 직접 연결, 각 요청
모든 도구 정의를 운반 - 약 26K 토큰 3
인기있는 서버, 약 $0.93 50 회전 세션. 비밀번호
두 도구로 그 목록을 대체, get_tool_schema 및
invoke_tool, 그리고 에이전트가 묻을 때만 도구의 전체 스키마를 반환
으로 대략 600의 카탈로그에 동일한 3개의 서버 압축
토큰은 약 97.7%의 오버 헤드를 절단합니다. 이름 *
비용에 대한 토큰 오버 헤드
모델.
라우터는 두 가지 경우에 가장 도움이됩니다.
- ** 하나 이상의 코딩 에이전트를 사용합니다. ** 각 에이전트를 연결 한 곳에서 모든 다운스트림 MCP 서버를 관리합니다.
- 당신의 에이전트는 모든 요청에 전체 도구 정의를로드합니다. 더 보기 라우터는 에이전트가 모든 정의를 전송하는 가장 저장 설정하기
실제 저축은 코딩 대리인에 달려 있습니다: 몇몇 대리인은 이미 지킵니다 도구는 자신의 알고리즘을 사용하여 요청을 정의합니다. (see 아래 측정된 저축.
필수품
- **노드.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MCP Compressing Router
Compress all connected MCP into a single router MCP and save up to 99% on
tokens.
Description
MCP Compress Router is a single MCP server for developers who connect
several MCP servers to a coding agent. Connected directly, each request
carries all of their tool definitions — about 26K tokens for three
popular servers, roughly $0.93 over a 50-turn session. The router
replaces those listings with two tools, get_tool_schema and
invoke_tool, and returns a tool’s full schema only when the agent asks
for it. The same three servers compress to a catalog of about 600
tokens, cutting the overhead by roughly 97.7%. See
About token overhead for the cost
model.
The router helps most in two cases:
- You use more than one coding agent. Connect each agent to the router once and manage every downstream MCP server in one place.
- Your agent loads full tool definitions on every request. The router saves the most where the agent sends every definition on every turn.
The actual savings depend on the coding agent: some agents already keep tool definitions out of their requests with their own algorithms (see Measured savings below).
Prerequisites
- Node.js 24 or later — the router runs on Node.js and is launched
via
npx, so no separate install step is needed. - A coding agent that supports stdio MCP servers — opencode, Claude Code, Codex, GitHub Copilot, Cursor, and most other modern agents.
Quick Start
The router is published on npm as
mcp-compress-router.
You do not need to install it — just run it with npx.
Setup is two steps: connect your coding agent to the router, then add the MCP servers you want to compress.
1. Connect your coding agent
Register the router the same way you register any other stdio MCP server, at the user scope (or your agent’s equivalent). It reads its server list from a user-wide config file, so every project shares one compressed catalog:
opencode mcp add mcp-compress-router -- npx -y mcp-compress-router@latest
See Connect your coding agent for Claude Code, Codex, GitHub Copilot (VS Code), and other agents.
2. Add downstream MCP servers
설치
npx mcp-compress-router@latest add playwright \