fastmcp-client-cli
What it does
This skill uses the fastmcp command line to explore and run tools on MCP servers. It is for people who want to check what a server can do or use its tools in a script.
When to use it
- ✓When you want to see which tools an MCP server offers before using it.
- ✓When you need to call an MCP tool from the command line or inside a workflow.
- ✓When you want machine-readable JSON output from an MCP server for a script.
Skill link
https://github.com/PrefectHQ/fastmcp/blob/main/docs/.mintlify/skills/fastmcp-client-cli/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“What tools does my local MCP server offer, and can you call the search tool with the query hello?”
5 new skills a week. 1 minute to read.
How it works
The agent runs fastmcp list to show the server's tools and their signatures, then fastmcp call with arguments that are converted to the right types automatically.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
FastMCP CLI: List and Call
Use fastmcp list and fastmcp call to interact with any MCP server from the command line.
Listing Tools
# Remote server
fastmcp list http://localhost:8000/mcp
# Local Python file (runs via fastmcp run automatically)
fastmcp list server.py
# MCPConfig with multiple servers
fastmcp list mcp.json
# Stdio command (npx, uvx, etc.)
fastmcp list --command 'npx -y @modelcontextprotocol/server-github'
# Include full input/output schemas
fastmcp list server.py --input-schema --output-schema
# Machine-readable JSON
fastmcp list server.py --json
# Include resources and prompts
fastmcp list server.py --resources --prompts
Default output shows tool signatures and descriptions. Use --input-schema or --output-schema to include full JSON schemas, --json for structured output.
Calling Tools
# Key=value arguments (auto-coerced to correct types)
fastmcp call server.py greet name=World
fastmcp call server.py add a=3 b=4
# Single JSON object for complex/nested args
fastmcp call server.py create_item '{"name": "Widget", "tags": ["a", "b"]}'
# --input-json with key=value overrides
fastmcp call server.py search --input-json '{"query": "hello", "limit": 5}' limit=10
# JSON output for scripting
fastmcp call server.py add a=3 b=4 --json
Type coercion is automatic: limit=5 becomes an integer, verbose=true becomes a boolean, based on the tool's input schema.
Server Targets
All commands accept the same server targets:
| Target | Example |
|---|---|
| HTTP/HTTPS URL | http://localhost:8000/mcp |
| Python file | server.py |
| MCPConfig JSON | mcp.json (must have mcpServers key) |
| Stdio command | --command 'npx -y @mcp/server' |
| Discovered name | weather or source:name |
Servers configured in editor configs (Claude Desktop, Claude Code, Cursor, Gemini CLI, Goose) or project-level mcp.json can be referenced by name. Use source:name (e.g. claude-code:my-server, cursor:weather) to target a specific source. Run fastmcp discover to see available names.
For SSE servers, pass --transport sse:
fastmcp list http://localhost:8000/mcp --transport sse
Auth
HTTP targets automatically use OAuth (no-ops if the server doesn't require auth). Disable with --auth none:
fastmcp call http://server/mcp tool --auth none
Discovering Configured Servers
# See all MCP servers in editor/project configs
fastmcp discover
# Filter by source
fastmcp discover --source claude-code
# JSON output
fastmcp discover --json
Scans Claude Desktop, Claude Code, Cursor, Gemini CLI, Goose, and ./mcp.json. Sources: claude-desktop, claude-code, cursor, gemini, goose, project.
Workflow Pattern
Discover tools first, then call them:
# 1. See what servers are configured
fastmcp discover
# 2. See what tools a server has
fastmcp list weather
# 3. Call a tool
fastmcp call weather get_forecast city=London
If you call a nonexistent tool, FastMCP suggests close matches.
FAQ
What kinds of servers does it work with?
It works with remote servers at a URL, local Python files, config files with several servers and commands that start a server.
Do I have to format arguments as JSON?
No. Simple key=value arguments work, and the values are converted to the correct type automatically.
Can I see the full schemas?
Yes. Adding the input and output schema options includes the full JSON schemas in the listing.
Details
Original description by the author
Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server offers, call tools, or integrate MCP servers into workflows.
repo: PrefectHQ/fastmcp
Popularity
- GitHub stars
- 28k
- Ranking position
- #9866
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
Similar skills
mcporter
394kHelps your agent list, call, and inspect MCP servers and their tools over HTTP or stdio, and manage their sign-in settings.
fastmcp
260kHelps you build, test, and deploy a Python MCP server that gives AI assistants access to your API, database, or files as tools.
mcp-oauth-remote-gateway
260kWalks you through OAuth sign-in for a remote MCP server when Hermes runs on a server, where the normal browser sign-in cannot reach it.