/mcp-tooling:mcp-cli-philschmidfrom mcp-tooling
Use this skill when working with philschmid/mcp-cli — a lightweight Bun-based CLI for interacting with MCP servers from the shell. Use when the user asks about discovering MCP tools, calling MCP tools from the command line, reducing token consumption with dynamic tool discovery, or integrating MCP servers into shell scripts and AI agent workflows. Also use when encountering questions about mcp_servers.json configuration for CLI-based MCP access.
Ships in mcp-tooling. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Repository: https://github.com/philschmid/mcp-cli
A lightweight, Bun-based CLI for interacting with MCP servers from the shell. Designed for AI coding agents (Gemini CLI, Claude Code, etc.) and shell scripting workflows.
Traditional MCP integration loads entire tool schemas into the AI context window, consuming thousands of tokens. mcp-cli enables dynamic, on-demand discovery — the agent only fetches schemas for tools it actually needs.
Key advantages:
jq for chaining# Via install script
curl -fsSL https://raw.githubusercontent.com/philschmid/mcp-cli/main/install.sh | bash
# Via Bun
bun install -g https://github.com/philschmid/mcp-cli
| Command | Purpose |
|---|---|
mcp-cli | List all servers and tools |
mcp-cli -d | List all servers and tools with descriptions |
mcp-cli info <server> | Show all tools available in a server |
mcp-cli info <server> <tool> | Display complete tool JSON schema |
mcp-cli grep "<pattern>" | Search tools by name using glob pattern |
mcp-cli call <server> <tool> <json> | Execute a tool with JSON arguments |
# 1. Discover — list all servers and available tools
mcp-cli
mcp-cli -d # with descriptions
# 2. Explore — view tools for a specific server
mcp-cli info filesystem
# 3. Inspect — examine a specific tool's schema
mcp-cli info filesystem read_file
# 4. Execute — call the tool with arguments
mcp-cli call filesystem read_file '{"path": "./README.md"}'
Create mcp_servers.json in one of these locations (searched in order):
$MCP_CONFIG environment variable-c <path> command-line argument~/.config/mcp/{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "."]
},
"web": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-web"]
}
}
}
Control which tools are exposed per server:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "."],
"allowedTools": ["read_file", "list_directory"],
"disabledTools": ["write_file"]
}
}
}
{
"mcpServers": {
"api": {
"command": "node",
"args": ["api-server.js"],
"env": {
"API_KEY": "${API_KEY}"
}
}
}
}
Missing variables cause errors unless MCP_STRICT_ENV=false.
# Pipe JSON from stdin
echo '{"path": "./file"}' | mcp-cli call filesystem read_file
# Chain with jq
mcp-cli call filesystem list_directory '{"path": "."}' | jq '.[] | .name'
# Search for tools matching a pattern
mcp-cli grep "read*"
| Code | Meaning |
|---|---|
0 | Success |
1 | Client error |
2 | Server error |
3 | Network issue |
| Scenario | Recommendation |
|---|---|
| AI agent needs a few specific tools | mcp-cli (discover on demand, save tokens) |
| Shell scripts calling MCP tools | mcp-cli (native shell integration) |
| Debugging MCP server issues | mcp-cli (inspect schemas, test calls) |
| Full IDE integration with many tools | Native MCP (persistent connection, all tools available) |
| CI/CD pipelines | mcp-cli (scriptable, JSON output) |
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/mcpc-apifyUse this skill when working with Apify's mcpc — a universal CLI client for MCP with persistent sessions, OAuth authentication, and interactive shell mode. Use when the user asks about connecting to remote MCP servers, managing MCP sessions, authenticating with OAuth for MCP, or using Apify's MCP platform. Also use when comparing MCP CLI tools or needing persistent named sessions.
/mcp-gatewaysUse this skill when working with MCP gateways — infrastructure for running MCP servers off-host, sharing them between sessions/clients, and federating multiple servers behind a single endpoint. Use when the user asks about remote MCP servers, MCP multiplexing, sharing MCP tools across teams, securing MCP over networks, transport bridging (stdio to SSE/HTTP), or choosing between gateway solutions like Supergateway, mcp-proxy, ContextForge, Envoy AI Gateway, or AgentGateway.
/mcp-proxy-daemoningUse this skill when working with mcp-proxy daemoning patterns — running a shared MCP proxy daemon that multiple Claude Code sessions can connect to simultaneously. Use when the user asks about sharing MCP servers across sessions, reducing MCP server overhead, running a single MCP proxy instance for multiple clients, configuring smart-mcp-proxy, or understanding the daemon lifecycle pattern from nsheaps/aitkit. Also use for the Serena de-duplication pattern — running project-level MCP servers at the user level to avoid duplicate instances across projects.
/mcp-use-frameworkUse this skill when working with the mcp-use Python/TypeScript framework for building MCP servers, clients, and agents. Use when the user asks about creating MCP servers with Python decorators, building MCP agents with LangChain, connecting to multiple MCP servers programmatically, or using the mcp-use fullstack framework for MCP application development.
npx claudepluginhub nsheaps/ai-mktpl --plugin mcp-toolingOther plugins' skills for the same job