Code GenerationOpen_source
FastMCP logo

FastMCP

Python framework for building MCP servers, clients and apps

Overview

About FastMCP

FastMCP is a Python framework for the Model Context Protocol, the standard that lets a language model call your tools and read your data. Writing an MCP server by hand means writing JSON schemas, validating inputs and outputs, negotiating a protocol version, handling transports and wiring up authentication before you get to the part you actually care about. FastMCP treats all of that as the framework's job. You decorate an ordinary Python function with mcp.tool, and the schema, validation and transport come from the type annotations you already wrote.

It is Apache-2.0 licensed and maintained by Prefect. Its history matters for judging it: FastMCP created the high-level Python API that was folded into the official MCP Python SDK in 2024, and the standalone project kept going from there. The current release is FastMCP 4, built on version 2 of the MCP Python SDK, and at the time of writing it is at v4.0.0 beta 1. That is the honest caveat: FastMCP 4 carries documented breaking changes from 3.0. ctx.sample() and ctx.list_roots() are gone, the McpError constructor signature changed, custom httpx clients handed to a transport become httpx2, and one change is silent rather than loud, which the project's own FAQ tells you to go looking for. There is no pricing page because there is no paid tier; the docs navigation links Prefect Horizon, which is a separate Prefect product.

Pricing

No pricing page found

No free tier

Free and Apache-2.0 licensed. FastMCP publishes no pricing page and has no paid tier. It is maintained by Prefect, whose separate commercial product (Prefect Horizon) is linked from the docs.

From the vendor pricing page, 2026-10-08

Details

GitHub Stars 27,547
Forks 2,308
Data from: GitHub • Website•Updated: Sep 7, 2026
devopsinfrastructuredeploymentopen-source
Claim this tool
Report a problem