---
title: "Introducing MCP CLI: A way to call MCP Servers Efficiently"
url: https://daily.dev/posts/introducing-mcp-cli-a-way-to-call-mcp-servers-efficiently-rpwozfkvv
source_url: https://www.philschmid.de/mcp-cli
type: article
source: "Philipp Schmid"
published: 2026-05-31T07:41:19.198Z
updated: 2026-05-31T08:09:10.005Z
tags: ["llm", "ai-agents", "mcp", "bun"]
reading_time: 4
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introducing MCP CLI: A way to call MCP Servers Efficiently

**[Philipp Schmid](https://daily.dev/sources/philschmid)** · 4 min read · 0 upvotes · 0 comments

## Summary

mcp-cli is a lightweight CLI tool that solves the context window bloat problem in AI agent workflows by enabling dynamic, just-in-time discovery of MCP (Model Context Protocol) tools instead of loading all tool definitions upfront. In a benchmark scenario with 6 MCP servers and 60 tools, it reduces token consumption from ~47,000 to ~400 tokens — a 99% reduction. The tool features a 3-subcommand architecture (info, grep, call), connection pooling with a lazy-spawn daemon, glob-based tool search, and tool filtering via allowedTools/disabledTools config. It integrates with AI coding agents like Claude Code and Gemini CLI via system prompt instructions or Agent Skills definitions, and compiles to a single binary built on Bun.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.philschmid.de/mcp-cli>

## Similar posts on daily.dev

- [I Made MCP 94% Cheaper \(And It Only Took One Command\)](https://daily.dev/posts/i-made-mcp-94-cheaper-and-it-only-took-one-command--hafutjzqd) · Hacker News · 3 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#ai-agents](https://daily.dev/tags/ai-agents), [#mcp](https://daily.dev/tags/mcp), [#bun](https://daily.dev/tags/bun)

[View this post on daily.dev](https://daily.dev/posts/introducing-mcp-cli-a-way-to-call-mcp-servers-efficiently-rpwozfkvv)
