- Github
what is the SSE-based Server and Client for MCP?
The SSE-based Server and Client for MCP is a demonstration of a working pattern for Server-Sent Events (SSE) based Model Context Protocol (MCP) servers and standalone clients that utilize various tools for weather forecasting.
how to use the project?
To use the project, ensure you have the ANTHROPIC_API_KEY set in your environment. Run the server using uv run weather.py and the client with uv run client.py http://0.0.0.0:8080/sse. You can then type queries to get weather information.
key features of the project?
- SSE-based communication between server and client.
- Utilizes National Weather Service APIs for real-time weather data.
- Decoupled processes for cloud-native applications.
use cases of the project?
- Real-time weather forecasting for specific locations.
- Integration with other tools for enhanced data retrieval.
- Demonstrating cloud-native architecture with decoupled server-client interactions.
FAQ from the project?
- What is the purpose of the SSE-based server?
The SSE-based server allows clients to connect and retrieve data without needing to spawn a server process, making it more efficient for cloud-native applications.
- How do I install the project?
You can install it via Smithery using the command:
npx -y @smithery/cli install @sidharthrajaram/mcp-sse --client claude.
- Can I customize the server's host and port?
Yes, you can configure the server's host and port using command line arguments.
Server Config
{
"mcpServers": {
"github": {
"command": "ru",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"mcp/github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}