mcp-cli
Skill4 starsChanged 6 months agoMITView on GitHub
Interface for MCP (Model Context Protocol) servers via CLI. Use when you need to interact with external tools, APIs, or data sources through MCP servers, list available MCP servers/tools, or call MCP tools from command line.
9 other projects use a version of this, 6 of them edited.
Adopted by
Most recently taken up by
- github/awesome-copilotedited, first seen Oct 25, 2026
- haojing8312/WorkClawtheir own version, first seen Oct 9, 2026
- philschmid/mcp-cliedited, first seen Oct 8, 2026
- Adhamxon/claude-code-skillsedited, first seen Jul 30, 2026
- ReaperOAK/ForgeOSedited, first seen Jun 8, 2026
- Typeless-Git/skillsedited, first seen Mar 30, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 6
- github/awesome-copilot★ 41k92% same
- philschmid/mcp-cli★ 1.3k19% same
- asterixix/polish-academic-mcp★ 492% same
- Adhamxon/claude-code-skills★ 292% same
- Typeless-Git/skills★ 192% same
- ReaperOAK/ForgeOS★ 092% same
Wrote their own version · 3
- obra/superpowers-lab★ 429same name
- haojing8312/WorkClaw★ 141same name
- paulanunes85/three-horizons-accelerator★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository124 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- .vscode/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agent-log-analysisSkill
- agent-mdSkill
- agent-md-writerSkill
- agent-skill-md-writerSkill
- agentskillsSkill
- agents-md-writerSkill
- ai-prompt-writerSkill
- ansibleSkill
- apache-airflow-apiSkill
- apache-airflow-dagsSkill
- astro-cliSkill
- astronomer-docsSkill
- awesome-copilotSkill
- brainstorm-agent-runsSkill
- brainstorm-github-prSkill
- brainstormSkill
- catSkill
- chrome-devtoolsSkill
- claude-docsSkill
- codeqlSkill
- code-reviewSkill
- code-tourSkill
- coding-standard-writerSkill
- context-aware-opsSkill
- copilot-cliSkill
- copilot-docsSkill
- critical-thinkingSkill
- datadog-agentSkill
- datadog-apiSkill
- datadog-mcpSkill
- datadog-monitorsSkill
- datadog-pulumiSkill
- devcontainerSkill
- dictationSkill
- direnvSkill
- dockerfileSkill
- dockerSkill
- docs-reviewSkill
- docs-writerSkill
- dot-claudeSkill
- dotfilesSkill
- dot-githubSkill
- editorconfigSkill
- fact-writerSkill
- gdpr-compliantSkill
- gh-agent-taskSkill
- gh-apiSkill
- gh-aw-compileSkill
- gh-aw-firewall-debugSkill
- gh-aw-firewallSkill
- gh-aw-newSkill
- gh-awSkill
- gh-aw-troubleshootingSkill
- gh-codespaceSkill
- gh-issueSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
When debugging or inspecting the JSON schema of an available MCP tool.
- Distinctive: line 23
If the required MCP server is not installed or configured in the environment.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
mcp-cli
<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->Access MCP servers through the command line. MCP enables interaction with external systems like GitHub, filesystems, databases, and APIs.
When to Use
- To interactively call an MCP (Model Context Protocol) server's tool from the command line.
- When debugging or inspecting the JSON schema of an available MCP tool.
- To execute specific filesystem, database, or API queries provided by a configured MCP server without writing a wrapper script.
When Not to Use
- Inside automated scripts where direct API calls (e.g.,
curlor language-specific SDKs) are faster and more reliable than shelling out to an MCP server wrapper. - For managing GitHub resources natively supported by
gh(e.g.,gh issue list). - If the required MCP server is not installed or configured in the environment.
Common Pitfalls
- JSON Escaping Errors: Passing complex, nested JSON payloads directly in the command line argument without proper escaping, causing parse errors. (Use stdin or heredocs instead).
- Ignoring Descriptions: Running a tool blindly without first checking its schema and description via
mcp-cli <server>/<tool>, leading to incorrect parameter types. - Assuming Tool Availability: Hardcoding an MCP tool call in a script without verifying that the specific server is actually running and accessible in that environment.
Core Process
- Discover:
mcp-cli→ see available servers and tools - Explore:
mcp-cli <server>→ see tools with parameters - Inspect:
mcp-cli <server>/<tool>→ get full JSON input schema - Execute:
mcp-cli <server>/<tool> '<json>'→ run with arguments
Core Principles
- Direct Execution: Favor using
mcp-clicommands directly from the shell rather than writing intermediate script wrappers.
Commands / Usage Patterns
| Command | Output |
mcp-cli | List all servers and tool names |
mcp-cli <server> | Show tools with parameters |
mcp-cli <server>/<tool> | Get tool JSON schema |
mcp-cli <server>/<tool> '<json>' | Call tool with arguments |
mcp-cli grep "<glob>" | Search tools by name |
Add -d to include descriptions (e.g., mcp-cli filesystem -d)
Quick Start
# List all servers and tool names
mcp-cli
# See all tools with parameters
mcp-cli filesystem
# With descriptions (more verbose)
mcp-cli filesystem -d
# Get JSON schema for specific tool
mcp-cli filesystem/read_file
# Call the tool
mcp-cli filesystem/read_file '{"path": "./README.md"}'
# Search for tools
mcp-cli grep "*file*"
# JSON output for parsing
mcp-cli filesystem/read_file '{"path": "./README.md"}' --json
# Complex JSON with quotes (use heredoc or stdin)
mcp-cli server/tool <<EOF
{"content": "Text with 'quotes' inside"}
EOF
# Or pipe from a file/command
cat args.json | mcp-cli server/tool
# Find all TypeScript files and read the first one
mcp-cli filesystem/search_files '{"path": "src/", "pattern": "*.ts"}' --json | jq -r '.content[0].text' | head -1 | xargs -I {} sh -c 'mcp-cli filesystem/read_file "{\"path\": \"{}\"}"'Options
| Flag | Purpose |
-j, --json | JSON output for scripting |
-r, --raw | Raw text content |
-d | Include descriptions |
Diagnostics and Troubleshooting
Exit Codes:
0: Success1: Client error (bad args, missing config)2: Server error (tool failed)3: Network error
Limitations
- Server interactions are isolated to standard streams or network responses depending on the MCP server.
References
Related Skills
- robust-commands: You MUST load this skill when executing commands requiring resilient error recovery or fallbacks.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

