Simplifies the creation of Model Context Protocol (MCP) servers using the Server-Sent Events (SSE) protocol.

About

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.

Key Features

  • Utilizes Server-Sent Events (SSE) for efficient communication
  • 0 GitHub stars
  • Simple tool registration using a Python decorator
  • FastAPI app factory for robust server hosting and configuration
  • Comprehensive middleware configuration (e.g., GZip compression, custom middleware)
  • Built specifically for Model Context Protocol (MCP) server development

Use Cases

  • Developing custom Model Context Protocol (MCP) tools and services
  • Building and hosting MCP servers with FastAPI and Uvicorn
  • Creating server backends optimized for SSE-driven clients like Cursor
Advertisement

Advertisement