sse-mcp
If you are the rightful owner of sse-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This document provides an overview of an SSE-based MCP server and client setup, demonstrating a working pattern for decoupled processes using the Model Context Protocol.
The SSE-based Server and Client for MCP is designed to facilitate communication between a server and multiple clients using Server-Sent Events (SSE). This setup allows clients to connect, use, and disconnect from the server independently, making it suitable for cloud-native applications. The server, `weather.py`, provides weather-related tools using the National Weather Service APIs, while the client, `client.py`, connects to the server to utilize these tools. This architecture is advantageous over traditional STDIO-based patterns as it allows for more flexible and scalable deployments, where the server and clients can operate on separate nodes or environments. The system is particularly useful for applications that require real-time data updates and interactions, such as weather forecasting services.
Features
- Decoupled Architecture: Allows server and clients to operate independently, enhancing scalability and flexibility.
- Real-time Communication: Utilizes Server-Sent Events (SSE) for real-time data updates and interactions.
- Cloud-Native Compatibility: Designed to fit cloud-native use-cases, supporting deployment on distributed systems.
- Weather Tools Integration: Provides tools based on National Weather Service APIs for weather forecasting.
- Configurable Server: Server settings such as host and port can be customized via command line arguments.
Tools
get_alerts
Get weather alerts
get_forecast
Get weather forecast