MCP Weather SSE Server

by jdhettema

1 377 downloads Not rated yet
GitHub

About

An MCP server that connects AI assistants to real-time weather data through OpenWeatherMap API using Server-Sent Events.

Explore

- Implements the Model Context Protocol for seamless integration with AI tools
- Uses Server-Sent Events (SSE) transport for real-time communication
- Connects to the OpenWeatherMap API to fetch live weather data
- Provides three tools:
- get_current_weather: Get current weather conditions for a city
- get_weather_forecast: Get a multi-day weather forecast for a city
- get_weather_by_coordinates: Get weather for specific geographic coordinates

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Weather SSE Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

- Python 3.8+
- An OpenWeatherMap API key (sign up at openweathermap.org)

export OPENWEATHER_API_KEY=YOUR_API_KEY
python mcp_weather_sse.py

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp weather sse server": {
            "mcp-weather-sse": {
                "command": "python",
                "args": [
                    "-m",
                    "venv",
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-weather-sse": {
        "command": "python",
        "args": [
            "-m",
            "venv",
            "venv"
        ]
    }
}

A Model Context Protocol (MCP) server that connects to the OpenWeatherMap API through Server-Sent Events (SSE). This server provides real-time weather data to AI clients like Claude, CursorAI, or MCP-Inspector.

Features

- Implements the Model Context Protocol for seamless integration with AI tools
- Uses Server-Sent Events (SSE) transport for real-time communication
- Connects to the OpenWeatherMap API to fetch live weather data
- Provides three tools:
- get_current_weather: Get current weather conditions for a city
- get_weather_forecast: Get a multi-day weather forecast for a city
- get_weather_by_coordinates: Get weather for specific geographic coordinates

Prerequisites

- Python 3.8+
- An OpenWeatherMap API key (sign up at openweathermap.org)

Installation

1. Clone this repository:

   git clone https://github.com/yourusername/mcp-weather-sse.git
cd mcp-weather-sse

2. Create a virtual environment and install dependencies:

   python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install mcp requests

Usage

Starting the Server

You can start the server with your OpenWeatherMap API key:

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.