FastMCP
$ fastmcp Official Med RiskFastMCP (PrefectHQ/fastmcp) is the leading Python framework and CLI for building, running, and testing MCP servers and clients. Its fastmcp CLI supports run, inspect, install, list --json, and call --json across local Python files and remote HTTP MCP endpoints.
pip install fastmcp fastmcp builds and serves MCP servers while also offering list --json, inspect, and call --json so agents can test servers straight from the CLI.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports fastmcp list --json, fastmcp call --json, and fastmcp inspect with clean non-interactive CLI ergonomics.
fastmcp list --json,fastmcp call --json, andfastmcp inspectsubcommands
Separates static inspect / list from call, run, and install (which modifies host client config files).
- Read-only
inspectandlistcommands distinct fromcallandinstall
Runs cross-platform via uvx fastmcp or pip install fastmcp on macOS, Linux, and Windows.
- Available on PyPI (
fastmcp) and runnable viauvx
End-to-end toolchain covering server authoring, transport bridging, client config installation, and CLI tool invocation.
- Single CLI handles
run,inspect,install,list, andcall
Maintained by Prefect (PrefectHQ/fastmcp) under Apache-2.0 with rapid adoption.
- Official PrefectHQ repository under Apache-2.0
Comprehensive documentation site at gofastmcp.com covering CLI patterns, transports, and authentication.
- Official docs at
gofastmcp.com
Security, Auth & Guardrails
Reads provider secrets from environment variables and stores OAuth/client tokens in local FastMCP cache or client configs.
Free and Apache-2.0 open-source.
# FastMCP Agent Rules - Always pass `--json` on `fastmcp list` and `fastmcp call` for clean parsing. - Use `fastmcp inspect` before `fastmcp run` or `fastmcp install` to verify exposed tools and config writes.
Agent-Ready Command Recipes
Safe Read-Only Queries
fastmcp inspect server.py
Prints a structured summary of declared tools, resources, and prompts without running a persistent daemon.
fastmcp list http://127.0.0.1:8000/mcp --json
Queries tools exposed by a local or remote MCP server and returns machine-readable JSON.
Controlled Writes & Previews
fastmcp call http://127.0.0.1:8000/mcp get_status --json
Executes one MCP tool call on a target server and prints a JSON response.
Strengths for Agents
- +
fastmcp list --jsonandfastmcp call --jsonturn MCP server debugging into scriptable CLI steps. - +
fastmcp inspectreveals server capabilities without starting a blocking server. - +
fastmcp installstreamlines wiring servers into Claude, Cursor, and Gemini configs.
Caveats & Pitfalls
- !
fastmcp runstarts a blocking server process unless executed in the background or with a timeout. - ! Requires Python 3.10+ (or
uv/uvx) and project dependencies installed for target Python servers.