本文へ移動
cccskills
無料GitHub で公開日本語紹介

fastmcp-client-cli

コマンドラインからMCPサーバーのツールや引数を調べて実行します。設定済みサーバーの探索、ローカル・リモート接続、JSON出力による作業への組み込みを扱います。

原文原文の説明を見る

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.

インストール方法を見る

こんなときに便利

  • エディターやプロジェクトの接続設定を探索
  • 利用可能なツールと引数定義の確認
  • ローカルやリモートのMCPツール実行
  • JSONの結果をスクリプトで使いたいとき

日本語での紹介

できること

コマンドラインからMCPサーバーの機能を調べ、ツールを呼び出す作業を支援します。fastmcp discoverで設定済みサーバーを探し、fastmcp listでツール名や説明、入出力の定義を確認してから、fastmcp callで実行します。リソースやプロンプトの一覧表示、スクリプトで扱いやすいJSON出力にも対応します。

こんなときに便利

接続先にどんなツールがあるか確認したい場合や、MCPの操作を日常の作業手順に組み込みたい場合に向いています。HTTP/HTTPSの接続先、ローカルのPythonファイル、mcp.json、標準入出力で接続するコマンドを同じ形式で扱えます。エディターに登録したサーバーは名前でも指定できます。

使い方の例

  • 「設定済みのMCPサーバーと、使えるツールを一覧にして」
  • 「server.pyの引数定義を確認してツールを呼び出して」
  • 「複雑な引数をJSONで渡し、結果もJSONで取得して」

注意点

FastMCP CLIを使用します。設定の探索対象はClaude Desktop、Claude Code、Cursor、Gemini CLI、Gooseとプロジェクトのmcp.jsonです。設定ファイルにはmcpServersキーが必要です。HTTP接続では必要に応じてOAuth認証を自動利用し、SSE接続では--transport sseを指定します。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md3.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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:

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:

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

docs

無料概要あり

FastMCPの公式ドキュメントを追加・改訂するスキル。既存ページに合う構成と文体、実行できるコード例、アクセシビリティ、リンク検査から公開確認まで扱います。

  • FastMCPの新機能を文書化したいとき
  • 既存の説明ページを改訂したいとき
  • 読みやすさとページ間の統一性の点検
PrefectHQ/fastmcp2.8万2026年10月21日 更新

fastmcp-server

無料概要あり

PythonのFastMCPで、導入済みバージョンに合う資料を参照しながらMCPサーバーを作成・拡張・レビューし、ツールの設計や動作、エージェントの利用結果を検証します。

  • PythonでMCPサーバーを作りたいとき
  • ツールやリソース、プロンプトの追加
  • 引数定義とエラー処理のレビュー
PrefectHQ/fastmcp2.8万2026年10月21日 更新

fix-issue

無料概要あり

FastMCPの不具合を再現し、影響範囲を絞った修正から互換性の確認、テスト、プルリクエスト公開後の確認まで進めるスキルです。

  • 再現できるFastMCPの不具合修正
  • 修正公開前に互換性を確認したいとき
  • プルリクエスト公開後の確認と対応
PrefectHQ/fastmcp2.8万2026年10月21日 更新

python-tests

無料概要あり

FastMCPの変更に対して、不具合の再発を防ぐpytestのテストを書くスキル。修正前の再現確認から、通信を伴わない動作検証や外部リクエストの検査まで扱います。

  • 修正前に不具合を再現したいとき
  • ネットワークなしでMCP動作を検証
  • 外部サービスへの送信内容の検査
PrefectHQ/fastmcp2.8万2026年10月21日 更新

release

無料概要あり

FastMCPのリリース内容の確認から、貢献者の記載、変更履歴の更新、タグ作成、PyPIへの公開、ドキュメントの反映確認までを一連の手順で進めます。

  • 次回リリースの変更内容を確認したいとき
  • リリースノートと貢献者表記の準備
  • パッチ版や保守版を公開したいとき
PrefectHQ/fastmcp2.8万2026年10月21日 更新

review-issue

無料概要あり

FastMCPに届いた外部の課題報告と関連する修正案を調べ、不具合の妥当性や受け入れ方針を踏まえて、担当割り当てや見送りを提案するスキルです。

  • 外部の貢献者に担当を割り当てたいとき
  • 受付条件で閉じられた修正案の確認
  • 報告された挙動が不具合か調べたいとき
PrefectHQ/fastmcp2.8万2026年10月21日 更新

PrefectHQ のスキルをすべて見る

このスキルの問題を報告する