Tools/PrefectHQ/fastmcp

fastmcp

The fast, Pythonic way to build MCP servers and clients

28.8k ★+88/wkgrowthPythonApache License 2.0 →trending

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Nov 2026

FastMCP turns ordinary Python functions into tools an AI assistant can call. Add a decorator and it writes the schema, validates inputs, and handles transport and auth. It also ships a client for any MCP server, plus Apps: small interactive UIs rendered inside the chat. Apache 2.0, nothing gated. Version 1 was folded into the official MCP Python SDK in 2024; development continued here.

Setup is uv add fastmcp and a few lines of code. A server is just a Python process: laptop, container, any VM. Version 4 has been stable since August. Prefect also keeps a TypeScript port, separate from the community punkpeye/fastmcp.

Prefect sells hosting as FastMCP Gateway (formerly Horizon). Personal is free for one developer, Developer is $35 per developer per month plus usage, and SSO, RBAC and audit logs sit in Enterprise. Solo: free. Small teams: free, pay only to skip hosting. Larger teams: the framework stays free, governance is the upsell.

The catch: security churn. Prefect published 16 advisories in five days this October, including a critical bug that let a malicious MCP server run code on any machine using the FastMCP client. Stay on 4.0.11+ or 3.4.8+.

Free vs Self-Hosted vs Paid

free self hosted paid cloud

Free: The framework is Apache 2.0 and complete. Servers, clients, Apps, auth and transports all ship in the open source package with no key, seat count or feature gate. FastMCP Gateway also has a free Personal plan: 1 developer, up to 200 hosted MCP servers, 1 agent, 1 day of log retention, Git-based deploys and managed OAuth.

Self-hosted: The normal path. A FastMCP server is a Python process, so your cost is whatever box runs it plus whatever API the server calls on your behalf. The real work is keeping current: v4 has been stable since August 2026, and the October 2026 advisory batch (one critical client-side code execution bug, several high-severity auth and resource-exhaustion bugs) was fixed in 3.4.8 to 3.4.11 and 4.0.11 to 4.1.2.

Paid: FastMCP Gateway (Prefect's renamed Horizon) hosts and governs servers. Developer is $35 per developer per month plus usage, with unlimited developers, servers and agents, 7 day logs, imported external servers, user and session analytics, and bring-your-own auth. Enterprise is custom, billed annually, and is where tool-level RBAC, audit logs, SAML SSO, SCIM, custom domains and static IPs live. Usage rates for the Developer plan are not spelled out on the pricing page.

The framework is free and complete. You pay Prefect only to host servers ($35 per developer per month plus usage) or for Enterprise governance like SSO, RBAC and audit logs.

What to do by team size

Solo
free
Small team
free; Gateway Developer at $35 per developer per month only if you'd rather not host servers yourself
Medium team
free framework; stay on current 4.x releases, the October 2026 advisories hit the client and auth layers
Large team
free framework; Gateway Enterprise (custom pricing) is where SSO, SCIM, tool-level RBAC and audit logs live
Self-hosting ops:trivial

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Score
92/100 · A+
Adoption27/30
Maintenance25/25
Community15/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

High adoption: 24,614 starsActive community: 1,931 forksCommunity discussions enabledOrganization account (39 public repos)Author also built: PrefectHQ/prefab (206 stars)

License: Apache License 2.0

Apache 2.0 for the whole framework; the hosted Gateway is a separate commercial product.

Commercial use: ✓ Yes

About

Owner
PrefectHQ (Organization)
Stars
28,836
Forks
2,675

Also by PrefectHQ

Explore Further

More tools in the directory