PM

petercha90/mcp-lazy-load

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

11 stars 3 forks 품질 63 트렌드 18MIT

MCP 도구는 컨텍스트 창을 먹는? Lazy-load them on demand 모든 AI 에이전트와 하나의 명령.

개요

ღ♥ღ❤️❤️❤️❤️ღ♥ღ MCP 컨텍스트 윈도우 토큰 사용률을 90%+로 감소 하나의 명령 설정. - MCP 서버는 시작하기 전에 모든 도구 정의를 컨텍스트 창에로드합니다. 5-10개의 서버로, 이것은 당신의 컨텍스트 창의 30-50%를 소모할 수 있습니다. 모든 MCP 서버를 통해 단일 경량 프록시를 통해 툴을 주문할 수 있습니다. 그런 다음 도구 캐시를 미리 구축 (추천) : - 추가 명령은 에이전트의 기존 MCP 구성을 읽고, ~/.mcp-lazy/servers.json에 모든 서버 정의를 저장하고, mcp-lazy 프록시 항목과 에이전트 구성을 대체합니다. - init pre-builds tool cache 그래서 첫 번째 에이전트 세션 즉시 시작.

개요(AI 번역)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ღ♥ღ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️ ღ♥ღ♥ღ❤️❤️❤️ღ♥ღ ღ♥ღ❤️❤️❤️ღ♥ღ ღ♥ღ❤️❤️❤️❤️ღ♥ღ ║╚═╗ღ║╚╝║ღ─╚╗──╔╝─ღ║═╩╗ღღ Top♚

m

주요 특징

MCP 컨텍스트 윈도우 토큰 사용량을 90%+로 늘리십시오. 하나의 명령 설정.

  • MCP 서버는 시작하기 전에 모든 도구 정의를 컨텍스트 창에로드합니다. 5-10개의 서버로, 이것은 당신의 컨텍스트 창의 30-50%를 소모할 수 있습니다. ** mcp-lazy** 프록시는 단일 경량 프록시를 통해 모든 MCP 서버를 프록시로 제공합니다.

82 tools exposed at startup] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0] [T0] [T0]] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0]] 82 tools exposed at startup] 82 tools exposed at startup]]] 82 tools exposed at startup]]]]]] [[82 tools exposed at startup]]]]]]] [[[[[[82 tools exposed at startup]]]]]]]]]]]]]] [[[[[[[82 tools exposed at startup]]]]]]]]]]]]]]]]]] [[[[[[[[[[[[[[[[[[[[[[

👇 Just 2 with mcp-lazy

빠른 시작

당신의 대리인을 위한 한 벌을 선택하십시오:

그런 다음 도구 캐시를 미리 구축 (추천) :

  • add 명령은 에이전트의 기존 MCP 구성을 읽고, 모든 서버 정의를 ~/.mcp-lazy/servers.json]로 저장하고, mcp-lazy 프록시 항목과 에이전트 구성을 대체합니다.
  • init 도구 캐시를 미리 구축하여 첫 번째 에이전트 세션이 즉시 시작됩니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

███╗ ███╗ ██████╗██████╗ ██╗ █████╗ ███████╗██╗ ██╗ ████╗ ████║██╔════╝██╔══██╗ ██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝ ██╔████╔██║██║ ██████╔╝█████╗██║ ███████║ ███╔╝ ╚████╔╝ ██║╚██╔╝██║██║ ██╔═══╝ ╚════╝██║ ██╔══██║ ███╔╝ ╚██╔╝ ██║ ╚═╝ ██║╚██████╗██║ ███████╗██║ ██║███████╗ ██║ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝

mcp-lazy 🫠

한국어

Reduce MCP context window token usage by 90%+ with lazy loading. One command setup.

  • MCP servers load all tool definitions into the context window at startup — even before you use them. With 5-10 servers, this can consume 30-50% of your context window. mcp-lazy proxies all your MCP servers through a single lightweight proxy that loads tools on-demand.

82 tools exposed at startup

👇 Just 2 with mcp-lazy

Quick Start

Pick one for your agent:

npx mcp-lazy add --cursor        # Cursor
npx mcp-lazy add --antigravity   # Antigravity
npx mcp-lazy add --opencode      # Opencode
npx mcp-lazy add --all           # or all at once

Then pre-build the tool cache (recommended):

npx mcp-lazy init
  • The add command reads your agent’s existing MCP config, saves all server definitions to ~/.mcp-lazy/servers.json, and replaces the agent config with only the mcp-lazy proxy entry.

  • init pre-builds the tool cache so your first agent session starts instantly. Without it, the first session will be slightly slower while mcp-lazy discovers tools from all servers.

    Tip: Installed a new MCP server? Just re-run npx mcp-lazy add -- — no extra steps.

How It Works

Without mcp-lazy:
  Agent → MCP Server A (50 tools) + Server B (30 tools) + Server C (20 tools)
        = 100 tools loaded at startup (~67,000 tokens)

With mcp-lazy:
  Agent → mcp-lazy proxy (2 tools only, ~350 tokens)
              ↓ on-demand
         Server A / B / C (loaded only when needed)
         URL servers (Notion, Slack, etc.) via mcp-remote bridge

The proxy exposes just 2 tools:

  • mcp_search_tools — Search available tools by keyword
  • mcp_execute_tool — Execute a tool (lazy-loads the server on first call)

What add Does

  • When you run npx mcp-lazy add --, it:
  1. Reads your agent’s existing MCP server config
  2. Extracts all server definitions (stdio and URL-based)
  3. Converts URL servers (OAuth-requiring services like Notion, Slack) to stdio commands using npx mcp-remote
  4. Saves everything to ~/.mcp-lazy/servers.json
  5. Replaces the agent config with only the mcp-lazy proxy entry
  • The proxy reads from ~/.mcp-lazy/servers.json at runtime — that’s where all your server definitions live after setup.

Supported Agents

| Agent | Status |

GitHub에서 전체 README 보기

설치

npx mcp-lazy add --cursor # Cursor
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →