fastmcp-client-cli

fastmcp-client-cli is a skill for Claude Code, Codex from PrefectHQ/fastmcp. It costs 46 tokens per session (877 once invoked), scanned A, original, Apache-2.0.

A command-line skill for discovering and calling tools exposed by MCP servers. MCP, or Model Context Protocol, is a standard way for applications to provide tools and data to AI agents.

In plain words
What is it for?
Listing tools, input and output schemas, resources, and prompts from remote servers, local Python files, configuration files, or command-based servers, then calling those tools with arguments.
Why use it?
It lets you inspect what a server offers and invoke its tools without writing a custom client for each server.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Gemini CLI.

Good fit Listing tools, input and output schemas, resources, and prompts from remote servers, local Python files, configuration files, or command-based servers, then calling those tools with arguments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prefecthq/fastmcp/fastmcp-client-cli
About the project

FastMCP is a Python framework for building Model Context Protocol applications, which connect language models with tools and data through servers and clients. Developers use it to expose Python functions as tools, connect to local or remote MCP servers, and build interactive tool interfaces. The catalogue includes eight skills, three instructions, two rules, one setting, and one hook for FastMCP.

PrefectHQ/fastmcp · 28,864 stars · on GitHub · gofastmcp.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PrefectHQ/fastmcp --skill fastmcp-client-cli
Clone the repo
git clone --depth 1 https://github.com/PrefectHQ/fastmcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fastmcp-client-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/prefecthq/fastmcp/fastmcp-client-cli/github.svg)](https://agentmods.dev/skills/prefecthq/fastmcp/fastmcp-client-cli)
Your own site
<a href="https://agentmods.dev/skills/prefecthq/fastmcp/fastmcp-client-cli"><img src="https://agentmods.dev/badge/skills/prefecthq/fastmcp/fastmcp-client-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fastmcp-client-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/prefecthq/fastmcp/fastmcp-client-cli"><img src="https://agentmods.dev/badge/skills/prefecthq/fastmcp/fastmcp-client-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 877 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk warn 7 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 23
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 65
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00877
Opus 5.5 $0.00018 $0.00351
Sonnet 5.5 $0.00009 $0.00175
Haiku 4.5 $0.00005 $0.00088

Measured 3mo ago against content hash d1984daf0f15, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fastmcp-client-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/.mintlify/skills/fastmcp-client-cli/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on 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.

Read the full file on GitHub · 115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 115 lines · 46 tokens per session scan A d1984daf0f15

Subscribe to this mod's changes

fastmcp-client-cli is a skill published in the GitHub repository PrefectHQ/fastmcp (28,864 stars, last pushed today), licensed Apache-2.0. It adds 46 tokens to every session and 877 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

fastmcp-client-cli compared with skills from other repositories

fastmcp-client-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fastmcp-client-cliPrefectHQ/fastmcpSkill29ktodayApache-2.0A46Claude Code, Codex
first-readerShubhamsaboo/awesome-llm-appsSkill147kyesterdayApache-2.0A174Claude Code, Codex
thinking-out-loudShubhamsaboo/awesome-llm-appsSkill147kyesterdayApache-2.0A206Claude Code, Codex
hugging-face-model-trainerpatchy631/ai-engineering-hubSkill42k1mo agoMITA131Claude Code
create-tech-designhumanlayer/humanlayerSkill13k2d agoApache-2.0A16Claude Code, Codex
hugging-face-datasetspatchy631/ai-engineering-hubSkill42k1mo agoMITA49Claude Code
hugging-face-paper-publisherpatchy631/ai-engineering-hubSkill42k1mo agoMITA42Claude Code