mcp-cli

Discover, inspect, and execute MCP server tools from the command line.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/selfagency/agentsy --skill mcp-cli-selfagency
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-cli
Source: https://github.com/selfagency/agentsy/tree/main/.agents/skills/mcp-cli
Command: npx skills add https://github.com/selfagency/agentsy --skill mcp-cli-selfagency

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction of discovering, inspecting, and calling MCP server tools by giving you a single command-line interface for end-to-end MCP interactions.

Core Features & Use Cases

  • MCP server and tool discovery: list available MCP servers and tool names to quickly understand what integrations are available.
  • Tool introspection with JSON schemas: retrieve full JSON input schemas for specific server/tool pairs before you call them.
  • Tool execution from the command line: invoke tools by passing JSON arguments and optionally return JSON or raw content.
  • Use case example: when you need to read a repository file via an MCP filesystem tool, discover the tool, fetch its input schema, then execute it with the correct JSON payload to retrieve file contents.

Quick Start

Run mcp-cli filesystem/read_file with the JSON arguments for your target path to fetch the tool output directly from your terminal.

Frequently Asked Questions about mcp-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I discover and list available MCP servers and tools from the command line?

MCP server and tool discovery from the command line lets you list available integration names and tool names. This Skill enumerates server and tool availability so you can quickly understand what external capabilities are ready for orchestration.

Can I view the JSON input schema for a specific MCP tool before calling it?

Yes, you can retrieve the full JSON input schema for specific server and tool pairs. This tool introspection helps you construct properly formatted JSON arguments before you execute the tool invocation from your terminal.

How do I execute an MCP tool with JSON arguments via the CLI?

You execute an MCP tool by passing properly formatted JSON arguments to the CLI. The invocation supports returning structured JSON output or raw text content, enabling direct integration into your command-line automation scripts.

What is the best way to read a file using an MCP filesystem tool in a terminal?

The best way to read a file is using CLI orchestration to discover the filesystem tool, fetch its JSON input schema, and execute it with the correct JSON payload. This retrieves the file contents directly in your terminal.

Does CLI orchestration of MCP tool calls support raw text output?

Yes, CLI orchestration of MCP tool calls supports options for both JSON output and raw text output. This flexibility allows you to choose the format that best fits your downstream command-line processing or automation requirements.