Discover and explore top open-source AI tools and projects—updated daily.
jlowinPythonic SDK for building Model Context Protocol (MCP) servers/clients
Top 2.2% on SourcePulse
FastMCP provides a Pythonic framework for building Model Context Protocol (MCP) servers and clients, simplifying the creation of tools, resources, and prompts for LLM applications. It abstracts away protocol complexities, enabling developers to focus on core logic and integration with LLMs.
How It Works
FastMCP leverages Python decorators (@mcp.tool(), @mcp.resource(), @mcp.prompt()) to define server capabilities. It automatically generates MCP schemas from type hints and docstrings. The FastMCP class manages server lifecycle, routing, and protocol details, while the Client class allows programmatic interaction with any MCP server, supporting various transport protocols like SSE, Stdio, and WebSockets.
Quick Start & Requirements
uv pip install fastmcpuvfastmcp run server.pyfastmcp dev server.pyfastmcp install server.pyHighlighted Details
fastmcp.Image helper.Context object for logging, progress reporting, and resource access within tools/resources.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is actively evolving, with v2 introducing advanced features. While designed for simplicity, advanced use cases like proxying and composition require a deeper understanding of MCP concepts.
10 hours ago
1 day
modelcontextprotocol
modelcontextprotocol