MCP Weather SSE Server
About
An MCP server that connects AI assistants to real-time weather data through OpenWeatherMap API using Server-Sent Events.
Details
- Author
- jdhettema
- GitHub stars
- 1
- Downloads
- 377
- Categories
- Media
Jump to
- Implements the Model Context Protocol for seamless AI tool integration
- Uses SSE transport for real-time communication
- Connects to OpenWeatherMap API for live weather data
- Provides three weather query tools: current, forecast, and by coordinates
- Supports optional metric or imperial units
- Defaults to localhost for safe local use
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:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MCP Weather SSE ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install the server, create a virtual environment, and install dependencies (pip install mcp requests). Start it with your OpenWeatherMap API key using a command-line argument (--api-key) or the OPENWEATHER_API_KEY environment variable. Then configure your MCP client (e.g., Cursor AI, Claude Desktop) to connect to the SSE endpoint at http://127.0.0.1:3001/sse.
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"
]
}
}
MCP Weather SSE Server
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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.
