๐Ÿš€ #MCPCLI v0.3.0: A Lightweight CLI for Dynamic #MCP Server Discovery #AI #DevTools #opensource

๐Ÿชถ Built on #Bun - compiles to a single standalone binary for easy deployment and distribution across platforms

๐Ÿ”Œ Works with both stdio (local) and HTTP (remote) MCP servers for maximum flexibility in connecting to external tools, APIs, and data sources

๐Ÿ” Glob-based search across all servers with mcp-cli grep "*pattern*" to find the right tools instantly without loading everything upfront
๐Ÿงต ๐Ÿ‘‡

๐Ÿ“‰ Reduces token consumption by 99%! From ~47,000 tokens to ~400 tokens when using 6 MCP servers with 60 tools - massive savings for AI agent workflows

โšก Connection pooling with lazy-spawn daemon featuring 60s idle timeout for optimal performance - no manual start/stop needed

๐ŸŽ›๏ธ Tool filtering via allowedTools and disabledTools config to control which tools are available - supports glob patterns like read_* or *file*

๐Ÿค– Designed for AI coding agents like #GeminiCLI, #ClaudeCode, and others with system prompt integration and Agent Skills support

๐Ÿ“‹ Three-subcommand architecture: info for discovery, grep for searching, call for execution - structured error messages with recovery suggestions

๐Ÿ”ง Simple workflow: mcp-cli to list servers, mcp-cli info server tool for schema, mcp-cli call server tool '{}' to execute

๐Ÿ’ก Solves the context window bloat problem - dynamic discovery means you only pay tokens for tools you actually use instead of loading all definitions upfront

https://www.philschmid.de/mcp-cli

Introducing MCP CLI: A way to call MCP Servers Efficiently

Mcp-cli is a lightweight CLI that allows dynamic discovery of MCP, reducing token consumption while making tool interactions more efficient for AI coding agents.