mcp-weather

mcp-weather

0

mcp-weather is an SSE-based MCP Server designed to provide weather forecasts and alerts for US states. It highlights the use of SSE for facilitating AI agents, allowing flexible connections with remote processes. The project is compatible with cloud-native environments.

mcp-weather

  • An MCP Server example for AI Agents, providing weather forecasts and alerts for US states.
  • Original project: mcp-sse.

Purpose

  • Demonstrates the operation mode of an SSE-based MCP server and its tools.

Environment

  • Uses uv for managing dependencies and Python environment.
  • Commands should be executed in Ubuntu 24.04; adjust for other OS as needed.

Running the Service

  • Start with uv: uv run server.
  • Start with Docker: build and run the Docker image.

Verification

  1. Install Node.js.
  2. Run mcp inspector.
  3. Connect to the server using SSE, and use tools get_alerts and get_forecast with appropriate parameters.

Why Use SSE

  • Allows decoupled processes, ideal for cloud-native use cases.