Starlette SSE icon

Starlette SSE

Createdpanz2018

Integrates Model Context Protocol (MCP) functionality into a Starlette web application using Server-Sent Events (SSE).

About

This project showcases how to implement Server-Sent Events (SSE) using the Starlette framework while integrating Model Context Protocol (MCP) functionality, creating a unified web application with both MCP and standard web endpoints. It offers a modular architecture, separating MCP functionality from standard web routes, and demonstrates how to add custom routes and customize MCP integration. Ideal for developers seeking to build AI-powered applications with seamless tool and data source interactions using the MCP standard.

Key Features

  • Server-Sent Events (SSE) implementation with MCP
  • Starlette framework integration with custom routes
  • Unified web application with MCP and standard web endpoints
  • Customizable route structure
  • Clean separation of concerns between MCP and web functionality
  • 7 GitHub stars

Use Cases

  • Integrating AI models with external tools and data sources using MCP.
  • Building web applications with real-time data streaming via SSE.
  • Extending existing Starlette applications with MCP functionality.
Craft Better Prompts with AnyPrompt