SSE
Provides a framework for building Model Context Protocol (MCP) servers utilizing the Server-Sent Events (SSE) protocol.
Developed to address challenges with existing SSE transport implementations, this project offers a straightforward Python framework for constructing Model Context Protocol (MCP) servers. It simplifies the process of creating custom tools and exposing them via an MCP server, particularly designed with clients like Cursor in mind. The framework provides robust integration with FastAPI and Uvicorn, offering flexible middleware configuration, including compression and custom HTTP middleware, to ensure efficient and tailored server operations.
主要功能
01Framework for creating MCP servers with SSE support
02Decorator-based tool registration for custom functions
03FastAPI application factory for easy server hosting and configuration
04Flexible middleware configuration for compression, CORS, and custom logic
05Integration with standard Python logging for debugging and monitoring
060 GitHub stars
使用案例
01Developing and hosting custom AI tools compatible with MCP clients
02Implementing custom server-side logic and request handling via middleware for MCP endpoints
03Building an MCP server specifically tailored for the Cursor client