fastmcp-client-cli

Discover and invoke MCP tools from the command line.

27.1k|2.2k|Updated Nov 30, 2024
One-click install
npx skills add https://github.com/jlowin/fastmcp --skill fastmcp-client-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fastmcp-client-cli
Source: https://github.com/jlowin/fastmcp/tree/main/skills/fastmcp-client-cli
Command: npx skills add https://github.com/jlowin/fastmcp --skill fastmcp-client-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers and operators quickly discover what MCP tools are available on any server and invoke them from the command line, reducing manual setup and context-switching.

Core Features & Use Cases

  • Tool discovery: list available MCP tools on a given server or MCPConfig.
  • Tool invocation: call tools with properly typed arguments; supports multiple input formats, including key=value pairs and JSON payloads.
  • Workflow integration: script MCP interactions into automation workflows and CI pipelines.

Quick Start

Use the fastmcp CLI to list tools on a server, then call a tool: fastmcp list http://localhost:8000/mcp fastmcp call server.py greet name=World

Frequently Asked Questions about fastmcp-client-cli

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

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

Use the fastmcp CLI list command against a server URL or MCPConfig to discover available MCP tools. This command outputs a structured list of all tools hosted on the specified target for quick discovery.

Can I invoke MCP tools with typed arguments using a CLI?

Yes, you can invoke MCP tools with typed arguments using the fastmcp call command. It supports multiple input formats including key=value pairs and JSON payloads, automatically coercing arguments to the correct types.

Does fastmcp-client-cli support integrating MCP server interactions into automation workflows?

fastmcp-client-cli supports integrating MCP server interactions into automation workflows and CI pipelines. You can script tool discovery and invocation commands to automate multi-target MCP interactions.

What is the best way to call an MCP tool from a local Python script via CLI?

The best way to call an MCP tool from a local script is using the fastmcp call command, pointing it directly to the server.py file. You can pass arguments like name=World to execute the tool.

How do I pass complex arguments when invoking MCP tools from the CLI?

You can pass complex arguments when invoking MCP tools by using JSON payloads. The CLI accepts these payloads alongside key=value pairs to properly handle structured argument coercion.

Can I use this CLI to interact with multiple MCP targets simultaneously?

Yes, the CLI provides multi-target support, allowing you to list and invoke tools across various MCP servers. You can target different servers by specifying their respective URLs or file paths.