Overview of the fastmcp CLI commands
mainThe fastmcp CLI is the primary interface for running, testing, installing, and interacting with MCP servers. It is installed automatically with FastMCP.
Core Commands
| Command | Description |
|---|---|
run | Run a server from a local file, factory function, remote URL, or config file |
dev apps | Launch a browser-based preview UI for Prefab App tools |
dev inspector | Launch a server inside the MCP Inspector for interactive testing |
install | Install a server into Claude Code, Claude Desktop, Cursor, Gemini CLI, or Goose |
inspect | Print a server's tools, resources, and prompts as a summary or JSON report |
list | List a server's tools (and optionally resources and prompts) |
call | Call a tool, read a resource, or get a prompt |
discover | Find MCP servers configured in your editors and tools |
generate-cli | Scaffold a standalone typed CLI from a server's tool schemas |
project prepare | Pre-install dependencies into a reusable uv project |
auth cimd | Create and validate CIMD documents for OAuth |
version | Print version info (use --copy to copy to clipboard) |
fastmcp --help