FastMCP v2 ๐
@jlowin
FastMCP v2 ๐ ใซใคใใฆ
๐ The fast, Pythonic way to build MCP servers and clients.
ๅบๆฌๆ ๅ ฑ
ใซใใดใช
ใใฎไป
ใฉใคใปใณใน
Apache-2.0
ใฉใณใฟใคใ
python
ใใฉใณในใใผใ
stdio
ๅ ฌ้่
jlowin
่จญๅฎ
ไปฅไธใฎ่จญๅฎใไฝฟใฃใฆใใใฎใตใผใใผใ MCP ๅฏพๅฟใฏใฉใคใขใณใใซ่ฟฝๅ ใใฆใใ ใใใ
{
"mcpServers": {
"fastmcp": {
"command": "uv",
"args": [
"pip",
"install",
"fastmcp"
]
}
}
}ใใผใซ
ใใผใซใฏๆคๅบใใใพใใใงใใ
ใใผใซใฏ README ใใ่ชๅ็ใซๆฝๅบใใใพใใใกใณใใใผใฏ ## Tools ใจใใ่ฆๅบใใฎไธใซ่จ่ผใใใใจใงใใใฎใฟใใซๅๆ ใงใใพใใ
ๆฆ่ฆ
What is FastMCP v2 ๐?
FastMCP v2 ๐ is a Python framework for building MCP (Model Context Protocol) servers, apps, and clients. It wraps your Python functions into MCP-compliant tools, resources, and prompts, automatically generating schema, validation, and documentation. Made by Prefect, it powers 70% of MCP servers across all languages and is downloaded a million times daily.
How to use FastMCP v2 ๐?
Install with uv pip install fastmcp. Create an FastMCP instance, decorate functions with @mcp.tool, and run the server with mcp.run(). FastMCP also provides clients to connect to any MCP server and apps that give tools interactive UIs inside the conversation.
Key features of FastMCP v2 ๐
- Auto-generates MCP schema, validation, and documentation from Python functions.
- Three pillars: Servers, Apps, and Clients.
- Handles transport negotiation, authentication, and protocol lifecycle.
- Best practices for MCP are built in by default.
- Supports local and remote MCP server connections.
- Interactive UI rendering for tools via Apps.
Use cases of FastMCP v2 ๐
- Build MCP servers that expose custom tools and resources to LLMs.
- Create interactive UIs for tools that appear directly in the LLM conversation.
- Connect to existing MCP servers (local or remote) from Python code or CLI.
- Rapidly prototype and then scale MCP applications to production.
FAQ from FastMCP v2 ๐
What is the Model Context Protocol (MCP)?
MCP is a protocol that connects LLMs to tools and data. FastMCP v2 ๐ is a framework that makes implementing MCP servers, clients, and apps easy.
How do I install FastMCP v2 ๐?
The recommended installation is via uv pip install fastmcp. Full instructions including verification and upgrading are in the Installation Guide at gofastmcp.com.
What are the runtime requirements?
FastMCP v2 ๐ requires Python 3.9+ and the fastmcp package installed via uv or pip. There are no other mandatory external services.
Can I use FastMCP v2 ๐ without Prefect Horizon?
Yes. FastMCP v2 ๐ is a standalone framework. Horizon is an optional enterprise gateway for managing FastMCP servers in production.
Where can I find the full documentation?
Complete documentation is available at gofastmcp.com, including API references and advanced patterns. An llms.txt version is also provided for LLM consumption.
ใใใฎไปใใฎไปใฎใณใณใใณใ
Awesome Mcp Servers
punkpeyeA collection of MCP servers.

EverArt
modelcontextprotocolModel Context Protocol Servers
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Awesome Mlops
visengerA curated list of references for MLOps
ใณใกใณใ