{"repo":"voicetreelab/lazy-mcp","free":true,"listed":false,"github":"https://github.com/voicetreelab/lazy-mcp","clone":"git clone https://github.com/voicetreelab/lazy-mcp.git","description":"MCP proxy server with lazy loading support - reduces context usage through on-demand tool activation","language":"Go","stars":108,"topics":["mcp","mcp-server"],"license":"MIT","category":"mcp-servers","readme_excerpt":"Lazy MCP Lazy MCP lets your agent fetch MCP tools only on demand, saving those tokens from polluting your context window. In this example, it saved 17% (34,000 tokens) of an entire claude code context window by hiding 2 MCP tools that aren't always needed. Welcoming open source contributions! How it Works Lazy MCP exposes two meta tools, which allows agents to explore a tree structure of available MCP tools and categories. - get tools in category(path) - Navigate the tool hierarchy - execute tool(tool path, arguments) - Execute tools by path Example Flow Quick Start This generates the hierarchical structure in the output folder config.json specifies, by fetching the available tools from the mcp servers specified. Add to Claude Code: Configuration Basic Config Structure see config.json for an example. Tool Hierarchy Structure Tool hierarchy is defined in testdata/mcp hierarchy/ with JSON files: Root node ( testdata/mcp hierarchy/root.json ): Category nodes (e.g., testdata/mcp hierarchy/github/github.json ): Tool nodes (e.g., testdata/mcp hierarchy/github/create issue/create issue.json ): Command Line Options Permission Control with Claude Code Hooks When using lazy-mcp with Claude Code, all tool calls go through execute tool . This means traditional MCP permission rules (like mcp github create issue ) don't apply directly. To control which tools require permission prompts, use Claude Code hooks . Option 1: Claude Code Native Hook (Recommended for Claude Code) Claude Code's Pre","default_branch":null,"files":null,"tree":[],"storefront":"/r/voicetreelab","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/voicetreelab/lazy-mcp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}