Agent skill

Fastmcp Client CLI

by PrefectHQ in PrefectHQ/fastmcp

Query and invoke tools on MCP servers using fastmcp list and fastmcp call.

Apache-2.0Auto-check passedAgent Workflows

Install Fastmcp Client CLI

skills CLI
$ npx skills add PrefectHQ/fastmcp --skill fastmcp-client-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install PrefectHQ/fastmcp fastmcp-client-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/PrefectHQ/fastmcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/fastmcp-client-cli .claude/skills/fastmcp-client-cli && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fastmcp-client-cli
GitHub stars
28k
Used in
1 other repo
Token cost
~823 tokens
SKILL.md length
198 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
Apache-2.0

At a glance

Query and invoke tools on MCP servers using fastmcp list and fastmcp call.

  • You need to discover what tools a server offers
  • SKILL.md covers Listing Tools, Calling Tools, Server Targets and Auth, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Integrate MCP servers into workflows

What it does

Fastmcp Client CLI is an agent skill from PrefectHQ/fastmcp. 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.

Its SKILL.md is about 820 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering MCP servers. It works with Model Context Protocol and Python. The repository describes itself as: 🚀 The fast, Pythonic way to build MCP servers and clients. The licence is Apache-2.0.

When your agent uses it

  • You need to discover what tools a server offers
  • Integrate MCP servers into workflows

Example prompts

  • “/fastmcp-client-cli”

Requirements

  • Python 3
  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 5baeacf. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fastmcp Client CLI loads about 823 tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 198 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~823

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from PrefectHQ/fastmcp at commit 5baeacf, republished under its Apache-2.0 licence (© PrefectHQ). 198 words, ~823 tokens.

Download SKILL.mdSave it as .claude/skills/fastmcp-client-cli/SKILL.md (or your agent's skills folder).
name
fastmcp-client-cli
description
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.

FastMCP CLI: List and Call

Use fastmcp list and fastmcp call to interact with any MCP server from the command line.

Listing Tools

bash
# 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

bash
# 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:

TargetExample
HTTP/HTTPS URLhttp://localhost:8000/mcp
Python fileserver.py
MCPConfig JSONmcp.json (must have mcpServers key)
Stdio command--command 'npx -y @mcp/server'
Discovered nameweather 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:

bash
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:

bash
fastmcp call http://server/mcp tool --auth none

Discovering Configured Servers

bash
# 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:

bash
# 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.

© PrefectHQ, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/fastmcp-client-cli of PrefectHQ/fastmcp.

Open the folder on GitHubat commit 5baeacf

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in PrefectHQ/fastmcp, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Fastmcp Client CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fastmcp Client CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fastmcp Client CLI this skillPrefectHQ/fastmcp28k1 repos~823Automated safety check: PassApache-2.0
MCP Server Builderanthropics/skills180k62 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k5 repos~1.2kAutomated safety check: PassMIT
MemPalace Setup and OperationMemPalace/mempalace59k—~2.2kAutomated safety check: PassMIT
FastmcpTommy-yw/RunbookHermes5463 repos~2.1kAutomated safety check: PassMIT
Migrate To Archestraarchestra-ai/archestra4.3k—~2.6kAutomated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 62 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 5 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Installs and configures MemPalace as a private local palace, a shared-brain hub or a client of an existing hub, including MCP registration and version-correct initialization.

    59k GitHub stars~2.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Fastmcp

    Tommy-yw/RunbookHermes

    Build, test, inspect, install, and deploy MCP servers with FastMCP in Python.

    546 GitHub starsUsed in 3 repos~2.1k tokens
    Agent WorkflowsAuto-check passed
  • Migrate To Archestra

    archestra-ai/archestra

    Migrate an existing agentic PoC/pilot (Claude Code project files, MCP configs, hooks, local tools, openclaw config, or similar hand-rolled setup artifacts) into an Archestra instance.

    4.3k GitHub stars~2.6k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Build Error Adapter

    ArcadeAI/arcade-mcp

    Build new Arcade error adapters from scratch using public Arcade TDK patterns.

    1k GitHub stars~2k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from PrefectHQ/fastmcp

All 9 skills in this repo
  • Release

    PrefectHQ/fastmcp

    Cut a FastMCP release end to end. An agent skill from PrefectHQ/fastmcp.

    28k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Docs

    PrefectHQ/fastmcp

    Write or revise a page under docs/ for gofastmcp.com. An agent skill from PrefectHQ/fastmcp.

    28k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Review Issue

    PrefectHQ/fastmcp

    Review an incoming external issue (and any gated-closed PR behind it) and decide whether to assign the contributor or decline.

    28k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Review PR

    PrefectHQ/fastmcp

    Assess a FastMCP pull request for justified behavior, compatibility, and correctness, then follow CI and review feedback to a revision-specific verdict.

    28k GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • Review Security Report

    PrefectHQ/fastmcp

    Review FastMCP vulnerability reports before accepting, rejecting, patching, scoring, or publishing them.

    28k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Triage

    PrefectHQ/fastmcp

    Find worthwhile FastMCP issues to work on in a backlog or release window, verify promising candidates, and present concrete picks with existing PR links.

    28k GitHub stars~573 tokensUpdated today
    Auto-check passed

Categories

Questions about Fastmcp Client CLI

What does Fastmcp Client CLI do?

Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Fastmcp Client CLI is an agent skill from PrefectHQ/fastmcp. Query and invoke tools on MCP servers using fastmcp list and fastmcp call.

When should I use Fastmcp Client CLI?

Fastmcp Client CLI fits situations like: you need to discover what tools a server offers; integrate MCP servers into workflows.

How do I install Fastmcp Client CLI in Claude Code?

Run `npx skills add PrefectHQ/fastmcp --skill fastmcp-client-cli -a claude-code`. Or copy the skill folder (skills/fastmcp-client-cli in PrefectHQ/fastmcp) into .claude/skills/fastmcp-client-cli in your project. Claude Code loads it when a task matches its description.

How do I install Fastmcp Client CLI in Codex?

Run `npx skills add PrefectHQ/fastmcp --skill fastmcp-client-cli -a codex`. Or copy the skill folder (skills/fastmcp-client-cli in PrefectHQ/fastmcp) into .agents/skills/fastmcp-client-cli in your project. Codex loads it when a task matches its description.

Can I use Fastmcp Client CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PrefectHQ/fastmcp --skill fastmcp-client-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fastmcp-client-cli, .gemini/skills/fastmcp-client-cli, .github/skills/fastmcp-client-cli and .opencode/skills/fastmcp-client-cli in your project.

What does Fastmcp Client CLI need to run?

SKILL.md names no scripts, command-line tools or credentials: Fastmcp Client CLI is instructions for the agent only. Our summary lists: Python 3; Node.js.

Does Fastmcp Client CLI access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Fastmcp Client CLI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Fastmcp Client CLI use?

Fastmcp Client CLI is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Fastmcp Client CLI use?

About 823 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Fastmcp Client CLI?

Skills that share tags, products or a category with Fastmcp Client CLI: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), MemPalace Setup and Operation (MemPalace/mempalace, 59k stars) and Fastmcp (Tommy-yw/RunbookHermes, 546 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fastmcp Client CLI?

PrefectHQ (a GitHub organization) maintains it in PrefectHQ/fastmcp, which has 27,989 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 6, 2026.

Source: PrefectHQ/fastmcp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.