Weather Union
About
Provides weather data and air quality information using the Weather Union API.
Details
- Author
- junaidrahim
- Categories
- Cloud Service, Other, API
Jump to
Setup
Install Weather Union in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/junaidrahim/weatherunion-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
Provides weather data and air quality information using the Weather Union API.
A Model Context Protocol (MCP) server that provides weather data and air quality information using theWeather Union API.
This server offers real-time weather data for specific coordinates or predefined Indian cities.
Add to your Claude Desktop configuration:
{ "mcpServers": { "weather-union": { "command": "uvx", "args": ["weatherunion-mcp"], "env": { "WEATHER_UNION_API_KEY": "your-api-key-here" } } } }
The server follows standard MCP protocol and works with any compliant MCP client.
export WEATHER_UNION_API_KEY='your-api-key-here'
# For MCP clients (default - uses stdin) python weatherunion_mcp/server.py # For testing with HTTP python weatherunion_mcp/server.py --http --port 8000
The MCP server provides two powerful weather tools:
Get current weather data for any geographic location using latitude and longitude coordinates.
- latitude(float): Latitude coordinate (-90 to 90 degrees)
- longitude(float): Longitude coordinate (-180 to 180 degrees)
Returns:Comprehensive weather information including temperature, humidity, wind conditions, precipitation, and air quality data.
get_current_weather(12.933756, 77.625825) # Bangalore coordinates
Get weather data for major Indian cities using predefined city names.
- city_name(str): Name of the city (case-insensitive)
- country_code(str, optional): Country code (default: "IN")
- Bangalore, Mumbai, Delhi, Hyderabad, Chennai
- Kolkata, Pune, Ahmedabad, Jaipur, Lucknow
get_weather_for_city("bangalore") get_weather_for_city("Mumbai")
The server returns comprehensive weather information in a formatted string:
Weather Information (Lat: 12.933756, Lon: 77.625825): Temperature: 25.68°C Humidity: 25.81% Wind Speed: 1.15 km/h Wind Direction: 331.2° Rain Intensity: 0 mm/h Rain Accumulation: 0.4 mm Air Quality Index (PM 2.5): 84 Air Quality Index (PM 10): 75
You need a Weather Union API key (X-Zomato-Api-Key) to use this server. You can generate this for free by signing up atWeather Union.
- The server validates your API key on startup
- API key must be set as an environment variable
- The server will show clear error messages if the API key is missing or invalid
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
This project is licensed under the MIT License - see theLICENSEfile for details.
Fetches precipitation forecast data for a specific location using the Buienradar service.
Query weather information and meteorological warnings for Chinese cities using the QWeather API.
A server for fetching weather information using the OpenWeather API.
Provides hourly weather forecasts using the AccuWeather API.
Access global weather forecasts and historical data through the Open-Meteo API.
Access global weather data and forecasts using the OpenMeteo API, including current conditions, historical data, and location search.
Provides comprehensive weather data and forecasts using the OpenWeatherMap API.
An MCP server providing weather tools from the National Weather Service (weather.gov) API, built with Spring Boot.
Provides real-time weather alerts for US states using the National Weather Service API.
An MCP server for accessing real-time weather data and forecasts.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





