
fastmcp
The fast, Pythonic way to build MCP servers and clients
The Lens
By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.
Updated Aug 2026
FastMCP is the fastest way to build MCP servers in Python. Decorate a function and it becomes a tool your AI assistant can call, with schema generation, validation, auth, and transport handled for you. Apache 2.0 and free. Version 4 turned it from a server library into a full framework with three pillars: servers that wrap your functions, clients that connect to any server, and Apps that render interactive UIs directly in the conversation.
Setup is one uv add and a few lines of code. Written a Flask route? You can write an MCP server. FastMCP 1.0 was folded into the official MCP Python SDK back in 2024, and the standalone project has kept moving well past it, so read the upgrade guides before assuming existing code carries forward. There is an official TypeScript counterpart from the same team if Python is not where you live.
Free at every size, and the library is complete rather than a demo that funnels you toward a paid tier. Prefect sells Prefect Horizon separately: an enterprise MCP gateway that deploys servers from GitHub with branch previews, keeps a private registry of every MCP in the company, and adds SSO, tool-level RBAC, and audit logs. Free for personal projects, enterprise pricing on request. Solo builders and small teams will not need it. Anyone running many servers across many teams is buying governance, not the framework.
The catch is churn. Version 4 is in beta while 3.4.x is still shipping patches, and the docs carry separate upgrade guides from FastMCP 3, FastMCP 2, and two different MCP SDK generations. That is the cost of being the default in a protocol that is still moving. Pin your version and read the release notes before you bump.
Free vs Self-Hosted vs Paid
free self hosted paid cloudFree tier: The framework is Apache 2.0 and complete. Servers, clients, Apps, auth, and transports all ship in the open source package. No key, no seat count, no feature gate.
Self-hosted: This is the normal path and it is cheap. A FastMCP server is a Python process, so it runs anywhere Python runs: a container, a VM, a laptop for local tools. Your costs are whatever hosts the process plus whatever API the server talks to on your behalf. The operational work is version discipline more than infrastructure, because the project moves fast and there are upgrade guides from three prior generations.
Paid: Prefect Horizon is the commercial product, and it is a separate gateway rather than hosted FastMCP. It deploys servers from GitHub with branch previews and rollback, gives you a private registry of every MCP server in the org, and enforces SSO and tool-level RBAC with audit logging across clients like Claude, Cursor, and VS Code. Free for personal projects, enterprise tiers priced through sales. You are buying governance across many servers, not the ability to build one.
The framework is free and complete. Prefect Horizon is a separate enterprise gateway, priced on request, and you only need it once MCP governance becomes somebody's job.
What to do by team size
- Solo
- free
- Small team
- free
- Medium team
- free; pin your version, v4 is still in beta
- Large team
- free to build on, but Horizon is the pitch once you need SSO and audit logs
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
About
- Owner
- PrefectHQ (Organization)
- Stars
- 27,439
- Forks
- 2,282
Also by PrefectHQ
Explore Further
More tools in the directory
openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
388.0k ★everything-claude-code
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
244.4k ★hermes-agent
The agent that grows with you
238.2k ★