FastMCP is two years old this week.
I wrote the first version over Thanksgiving weekend in 2024, just four days after Anthropic announced the Model Context Protocol. Two years later, MCP has become a cornerstone of how the modern AI world works, and FastMCP has become the way the world builds with it. I’m incredibly grateful to have been part of that, and a little amazed, because by the time that first version worked, I was pretty sure MCP wasn’t going to make it.
Prefect is in the automation business, and by then I’d spent a few years wondering how we would find our place in an AI world. That is to say: what does it mean to automate software that is fundamentally autonomous? A lot of that comes down to bridging the deterministic world of code and the probabilistic world of LLMs. Working with code is easy, and working with LLMs is easy, but working with LLMs that interface with code is complicated.
Almost everything we’ve built or experimented with in the last few years tackles some piece of that problem, and tool calling sits right in the middle of it, because a tool call is the moment an LLM’s output turns into code actually running. Two years ago, tool calling was still a relatively new technology. It was established enough to be taken for granted, but new enough that everyone had a different way of doing it and dealing with it, and working with agents disproportionately meant configuring those different forms of tool calling. You had to write completely different prompts to get different models to call tools correctly, and each one had its own idea of what calling a tool meant and how to react to the result. There was so obviously a need for a standard.
So when Anthropic announced MCP on the Monday of Thanksgiving week, it looked like exactly the standard I’d been hoping for. To be completely honest, its scope also seemed a little strange to me. It included things like resources and prompts, and I wasn’t sure what they were for (yet). But I figured that if Anthropic was behind it, it had the best possible shot at winning. I talked it over with Adam Azzam, who was my sounding board, and set aside the holiday weekend to play with it.
What I found was a really powerful protocol, with what felt to me like a very unpythonic approach to building its SDK.
My friend Chris White likes to say that people choose software when its abstractions agree with their mental model. It seemed to me that the key abstraction for reasoning about an MCP server was the tool itself: a thing with a name, a description, and some arguments, that does something when it’s called. But the protocol was organized around the methods a client uses to access tools. For tools, which were all most of the world used during MCP’s first year and a half, it defined two: a client could ask a server to list its tools, or ask it to call one of them by name. List and call are the protocol’s verbs, and they’re really just two things you can do with a tool.
That tension is at the root of why I built FastMCP. The original low-level SDK was organized around the protocol’s verbs, not around tools as a core abstraction. A server needed one handler that returned every tool it had, each with a hand-written schema, and a second handler that received the name of whichever tool was being called and branched to the right logic. Every tool was split across two places that were tightly coupled but maintained separately. Changing a tool’s arguments meant changing its schema somewhere else, and every new tool made the branching longer. That made servers hard to test, hard to modify, and hard to compose, and as soon as mine grew past one or two tools, I found it very hard to reason about.
What I wanted was to write a tool. I wanted a tool to be a Python function, with a name, a docstring, and type hints, and I wanted listing and calling to follow from that function automatically.
Consider the following two examples. Here’s a server with a single tool, written against the original version 1 SDK and adapted from its own example at release in November 2024:
import anyioimport httpximport mcp.types as typesfrom mcp.server import Serverfrom mcp.server.stdio import stdio_server
app = Server("website-fetcher")
async def fetch_website( url: str,) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]: async with httpx.AsyncClient(follow_redirects=True) as client: response = await client.get(url) response.raise_for_status() return [types.TextContent(type="text", text=response.text)]
@app.list_tools()async def list_tools() -> list[types.Tool]: return [ types.Tool( name="fetch", description="Fetches a website and returns its content", inputSchema={ "type": "object", "required": ["url"], "properties": { "url": {"type": "string", "description": "URL to fetch"} }, }, ) ]
@app.call_tool()async def call_tool( name: str, arguments: dict) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]: if name != "fetch": raise ValueError(f"Unknown tool: {name}") if "url" not in arguments: raise ValueError("Missing required argument 'url'") return await fetch_website(arguments["url"])
async def main(): async with stdio_server() as streams: await app.run(streams[0], streams[1], app.create_initialization_options())
anyio.run(main)And here’s the same server in the first version of FastMCP:
import httpxfrom fastmcp import FastMCP
mcp = FastMCP("website-fetcher")
@mcp.tool()async def fetch(url: str) -> str: """Fetches a website and returns its content""" async with httpx.AsyncClient(follow_redirects=True) as client: response = await client.get(url) response.raise_for_status() return response.text
mcp.run()The decorator registers the function, so it shows up when a client lists tools and runs when a client calls it by name. FastMCP reads the function’s name, docstring, arguments, and return type to fill in everything else. (Two years and three major versions later, a FastMCP server still looks almost exactly like this.)
I wrote FastMCP to solve my own problem, not to start an open-source project. And by the time it worked, I’d concluded that MCP was a little too complicated for its own good. Almost all new software starts out not good enough, but it needs some obvious win to bring people in, and I just wasn’t seeing one. I put FastMCP on GitHub anyway and figured that might be the end of it.
Some open-source projects are born great, some achieve greatness, and some have greatness thrust upon them. FastMCP was definitely put in the last camp when David Soria Parra called me a few weeks later.
David co-created MCP at Anthropic. We had a long talk, in which he said he thought FastMCP was the right way for people to build MCP servers, and asked whether it could become part of the official SDK.
I was thrilled that the people who created MCP wanted something I’d written over a holiday weekend, and of course I said yes. David and I did discuss the difficulties of pairing a high-level framework with a low-level SDK, but we both agreed that was only a problem for truly popular software, and in December 2024, that wasn’t how we were thinking about MCP. We worked together to change FastMCP’s license so it could move upstream, and in January 2025 it became the default way to build servers in the official Python SDK. I marked my own repo inactive, with a note pointing everyone to the SDK. Then I went back to Prefect, and my attention wandered.
A few months later, a friend called to tell me I was the number one trending developer on GitHub. I had no idea what that meant. It turned out people were pouring into the inactive FastMCP repo, and I couldn’t understand why they were coming there instead of the SDK. I spent most of that day pointing them in the right direction.
But the way they were writing to me made it clear they wanted something more: a real framework for MCP, with the kinds of things we take for granted in web frameworks. They wanted to compose servers, add authentication, and use the more advanced parts of the protocol like logging and sampling, and every one of those was as verbose in the low-level SDK as the original tool example.
FastMCP is named as an homage to FastAPI, where you write ordinary Python functions and the framework takes care of the web. Under the hood, FastAPI is built on Starlette, a lower-level library that handles the work of serving web requests, and the two work well together precisely because they do different jobs. MCP needed the same split. The original FastMCP already lived inside the SDK, so a second one only made sense as a complete, high-level framework built on top of it.
In the spring of 2025, I adjusted my role at Prefect so I could spend three months building that framework, and in April I launched FastMCP 2.0. Version 2 shipped with composition, proxying, a real client, beautiful new documentation (the most important part), and the support promise that put Prefect on the map: if you showed up with a question, I answered instantly. It quickly became a kitchen sink where every feature request and interesting idea found a home, and it grew like crazy. Prefect took almost four years to reach 10,000 GitHub stars. FastMCP got there about six weeks after relaunching.
The kitchen sink taught us a lot. One of our most-used features turned REST APIs into MCP servers, which sounds great but has wrong-way risk: the more complicated an API is, the more tempting it is to convert, and complicated APIs are exactly the ones that don’t translate one to one. We saw so many bad servers that they inspired what may be my most popular post and conference talk: Stop Converting Your REST APIs to MCP and Your MCP Server is Bad (and you should feel bad).
Those servers taught me what MCP is actually for. Everything an agent does is probabilistic, but an MCP server is ordinary code that does exactly what it says. I’ve come to think of it as a beautiful programmatic island in a sea of stochastic nonsense: one of the very few places in an agentic system where you can exercise real control. It’s exactly what I was looking for that first Thanksgiving, even if I couldn’t have described it that way at the time.
By the end of 2025, the kitchen sink had caught up with us, so we took everything we’d learned and designed FastMCP 3.0 as a proper framework. That put FastMCP’s own house in order, but the deeper problem was the one David and I had set aside on that first call. Pairing a high-level framework with a low-level SDK is only a problem for truly popular software, and MCP had turned out to be very popular software.
So when the MCP SDK team set out to build a second version based on everything they’d learned, I worked with them to combine all of our experience into an extraordinary new low-level engine for MCP, and we rebuilt FastMCP on top of it. That’s FastMCP 4, our new flagship framework. For the first time, the foundation and the framework were designed to work together, the way Starlette and FastAPI do. Most recently, FastMCP 4.2 brought support for Skills over MCP, and we’re working on events. They’re two of the most exciting new things in the MCP ecosystem.
FastMCP is also in wonderful hands. Nate Nowack is now FastMCP’s lead maintainer, and he has done an amazing job, far beyond anything I could have done myself. Bill Easton showed up long before MCP was cool and became our first external maintainer. And more than 400 contributors have filed issues, sent pull requests, and helped each other build better servers.
We recently built a logo wall for the new gofastmcp.com, and it was an extraordinary exercise in understanding how far this little project has traveled. The world builds on FastMCP, from NASA and IBM to LangChain and ClickHouse. As remarkable as that is, it’s only one corner of MCP’s reach. Getting to contribute to something this foundational is a privilege I never expected, and we’re going to keep FastMCP the platform of choice for building on it.
So thank you: to David and the MCP team for building the protocol and trusting me with a piece of it, to Adam for being my sounding board, and to everyone who has built a server, asked a question, or told a friend to try it.
I wrote FastMCP to solve my own problem, and I very nearly left it at that. Everything that followed happened because the code was sitting on GitHub when people came looking for it. So build the thing you want, and put it somewhere people can find it. You never know who’s going to call.
Two years in, the job is the same as it was that first weekend: build the best possible experience for developers, and now for agents too. There’s a lot left to build, and I can’t wait to build it with all of you.
Happy birthday, FastMCP, and happy engineering!