What it does
A Python framework for building MCP servers, clients and interactive apps. You write ordinary Python functions and FastMCP generates the tool schemas, validation and docs. FastMCP 1.0 was folded into the official MCP Python SDK in 2024; this is the actively maintained standalone project. Apache-2.0.
Who it's for
Python developers who want to turn their own functions or APIs into an MCP server quickly.
How to set it up
Add it to your project with uv:
bashuv add fastmcpCreate server.py:
textfrom fastmcp import FastMCP mcp = FastMCP("Demo") @mcp.tool def add(a: int, b: int) -> int: """Add two numbers""" return a + b if __name__ == "__main__": mcp.run()Run it with python server.py, then add it to your MCP client. A TypeScript counterpart is available as @prefecthq/fastmcp-ts.
Check the official FastMCP docs for the latest steps.
Example prompts
Turn the functions in utils/weather.py into a FastMCP server with one tool each.Add a FastMCP resource that exposes our README as context.Write a FastMCP client script that connects to my server and lists its tools.Made FastMCP? Add the badge
If you like, show that FastMCP is listed and hand-checked here. It's optional: listings are free and we never ask for a link back.
Get the Markdown or HTML
Markdown (for a GitHub README)
[](https://www.pluginstackai.com/plugins/fastmcp/)HTML (for a website)
<a href="https://www.pluginstackai.com/plugins/fastmcp/"><img src="https://www.pluginstackai.com/badge/hand-checked.svg" alt="Hand-checked on PluginStack" width="226" height="28"></a>Free: MCP Starter Checklist
After you set this tool up, use the one-page checklist so your next MCP server doesn't fail on first connect.