Simplifies the creation of Model Context Protocol (MCP) servers using the Server-Sent Events (SSE) protocol.
Py-mcp offers a streamlined Python framework for developing Model Context Protocol (MCP) servers, specifically utilizing the Server-Sent Events (SSE) protocol. Born from challenges faced with existing Python SDKs for SSE transport, it provides a robust and easy-to-use foundation for developers. It features a FastAPI app factory to quickly set up and configure MCP servers, allowing for seamless integration of custom tools via a simple decorator. The framework also provides comprehensive middleware configuration options, enabling developers to fine-tune server behavior with GZip compression, CORS, and custom header management, ultimately aiming to simplify the creation of performant and customizable MCP server backends for clients like Cursor.