PrefectHQ/fastmcp
🚀 The fast, Pythonic way to build MCP servers and clients.
<div align="center">
<!-- omit in toc -->
<picture> <source width="550" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/brand/f-watercolor-waves-4-dark.png"> <source width="550" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/brand/f-watercolor-waves-4.png"> </picture>
<strong>Move fast and make things.</strong>
*Made with 💙 by Prefect*
[](https://gofastmcp.com) [](https://discord.gg/uu8dJCgttd) [](https://pypi.org/project/fastmcp) [](https://github.com/PrefectHQ/fastmcp/actions/workflows/run-tests.yml) [](https://github.com/PrefectHQ/fastmcp/blob/main/LICENSE)
<a href="https://trendshift.io/repositories/13266" target="_blank"></a> </div>
---
The Model Context Protocol (MCP) connects LLMs to tools and data. FastMCP gives you everything you need to go from prototype to production:
from 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()Building an effective MCP application is harder than it looks. FastMCP handles all of it. D
Loading reviews...