mcp-weather-sse

mcp-weather-sse

0

The MCP Weather SSE Server is a Model Context Protocol server providing real-time weather data via Server-Sent Events using the OpenWeatherMap API. It facilitates seamless integration with AI tools and offers tools to fetch weather data by city or coordinates.

MCP Weather SSE Server

A Model Context Protocol (MCP) server that connects to the OpenWeatherMap API through Server-Sent Events (SSE). This server enables AI clients to receive real-time weather data.

Features

  • Implements the Model Context Protocol for integration with AI tools
  • Uses Server-Sent Events (SSE) for real-time communication
  • Connects to the OpenWeatherMap API for live weather data
  • Tools provided:
    • Get current weather by city
    • Multi-day weather forecast by city
    • Weather by geographic coordinates

Prerequisites

  • Python 3.8+
  • OpenWeatherMap API key

Usage

  • Start the server with your API key
  • Customize host and port if needed

Connecting with MCP Clients

  • Steps to connect with Cursor AI, Claude Desktop, and MCP-Inspector

Security Considerations

  • Accessible only from your local machine by default
  • Implement authentication and HTTPS for production use
  • Consider rate limiting to manage API quotas

License

MIT