fastmcp-client-cli
Qué hace
Esta skill usa la línea de comandos de fastmcp para explorar y ejecutar herramientas de servidores MCP. Está pensada para personas que quieren ver qué puede hacer un servidor o usar sus herramientas en un script.
Cuándo usarla
- ✓Cuando quieres ver qué herramientas ofrece un servidor MCP antes de usarlo.
- ✓Cuando necesitas llamar a una herramienta MCP desde la línea de comandos o dentro de un flujo de trabajo.
- ✓Cuando quieres una salida JSON legible por máquina de un servidor MCP para un script.
Link de la skill
https://github.com/PrefectHQ/fastmcp/blob/main/docs/.mintlify/skills/fastmcp-client-cli/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Qué herramientas ofrece mi servidor MCP local, y puedes llamar a la herramienta de búsqueda con la consulta hola?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente ejecuta fastmcp list para mostrar las herramientas del servidor y sus firmas, y después fastmcp call con argumentos que se convierten automáticamente al tipo correcto.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes
¿Con qué tipos de servidores funciona?
Funciona con servidores remotos en una URL, archivos Python locales, archivos de configuración con varios servidores y comandos que inician un servidor.
¿Tengo que dar los argumentos en JSON?
No. Sirven los argumentos sencillos clave=valor, y los valores se convierten al tipo correcto automáticamente.
¿Puedo ver los esquemas completos?
Sí. Si añades las opciones de esquema de entrada y salida, el listado incluye los esquemas JSON completos.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 28 mil
- Posición en el ranking
- #9866
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
Skills parecidas
mcporter
394 milAyuda a tu agente a listar, llamar e inspeccionar servidores MCP y sus herramientas por HTTP o stdio, y gestionar sus ajustes de inicio de sesión.
fastmcp
260 milTe ayuda a crear, probar e implementar un servidor MCP en Python que da a los asistentes de IA acceso a tu API, base de datos o archivos como herramientas.
mcp-oauth-remote-gateway
260 milTe guía para iniciar sesión con OAuth en un servidor MCP remoto cuando Hermes se ejecuta en un servidor, donde el inicio de sesión normal en el navegador no llega.