Connect to Claude
FastAPI SSE icon

FastAPI SSE

Createdpanz2018

Demonstrates a FastAPI server implementing Server-Sent Events (SSE) with Model Context Protocol (MCP) integration.

About

This project provides a working example of integrating Server-Sent Events (SSE) with the Model Context Protocol (MCP) within a FastAPI web application. It showcases how to build a modular architecture that combines MCP SSE endpoints with standard web routes, ensuring a clean separation of concerns. The server includes examples of how to add custom routes, customize MCP integration, and connect to tools like the MCP Inspector and Continue VS Code extension for testing and development.

Key Features

  • Server-Sent Events (SSE) implementation with MCP
  • Customizable route structure
  • FastAPI framework integration with custom routes
  • Modular architecture for separation of concerns
  • Unified web application with both MCP and standard web endpoints
  • 11 GitHub stars

Use Cases

  • Integrating AI models with external tools and data sources using MCP.
  • Building real-time applications with server-sent events (SSE).
  • Developing a FastAPI application with both standard web routes and MCP endpoints.