
fastmcp
by PrefectHQ·★ 25,181·Score 64
FastMCP is the standard Python framework for building MCP servers, tools, and clients.
Overview
FastMCP is a comprehensive Python framework for creating MCP servers, clients, and apps. It simplifies the process of exposing tools, resources, and prompts to LLMs by handling schema generation, validation, and documentation automatically. With three pillars - Servers, Apps, and Clients - it provides a complete ecosystem for MCP development. The project is actively maintained with downloads of millions per day and powers 70% of MCP servers across all languages.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose FastMCP when building MCP servers in Python, especially if you want automatic schema generation and a simplified API that abstracts away protocol complexities.
When NOT to choose this
Avoid FastMCP if you need non-Python implementation, or require enterprise features like advanced authentication and governance which are provided by their commercial product Horizon.
Tools this server exposes
1 tool extracted from the READMEaddadd(a: int, b: int) -> intAdd two numbers
Comparable tools
Installation
Install FastMCP using uv:
uv pip install fastmcpFor Claude Desktop, add to your config.json:
{
"mcpServers": {
"fastmcp": {
"command": "uv",
"args": ["run", "fastmcp", "serve"]
}
}
}FAQ
- Is FastMCP the official MCP Python SDK?
- FastMCP 1.0 was incorporated into the official MCP Python SDK in 2024, but it's also available as a standalone framework.
- What's the difference between FastMCP and Prefect Horizon?
- FastMCP is the framework for building MCP servers, while Horizon is the enterprise gateway for deploying and managing those servers in production.
On Hacker News
Recent discussion from the developer community.
- Story by LeoDaVibeci · 2026-04-26
Compare fastmcp with
Last updated · Auto-generated from public README + GitHub signals.