Weather Union MCP Server
Provides access to Weather Union API (which requires a Zomato API key) for retrieving real-time weather data and air quality information for geographic coordinates or predefined Indian cities.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weather Union MCP Serverwhat's the weather in Mumbai right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Weather Union MCP Server
A Model Context Protocol (MCP) server that provides weather data and air quality information using the Weather Union API.
This server offers real-time weather data for specific coordinates or predefined Indian cities.
Usage with MCP Clients
Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"weather-union": {
"command": "uvx",
"args": ["weatherunion-mcp"],
"env": {
"WEATHER_UNION_API_KEY": "your-api-key-here"
}
}
}
}Other MCP Clients
The server follows standard MCP protocol and works with any compliant MCP client.
Related MCP server: Weather MCP Server
Quick Start
Set up your API key:
export WEATHER_UNION_API_KEY='your-api-key-here'Run the server:
# For MCP clients (default - uses stdin) python weatherunion_mcp/server.py # For testing with HTTP python weatherunion_mcp/server.py --http --port 8000
Available Tools
The MCP server provides two powerful weather tools:
1. get_current_weather
Get current weather data for any geographic location using latitude and longitude coordinates.
Parameters:
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.
Example:
get_current_weather(12.933756, 77.625825) # Bangalore coordinates2. get_weather_for_city
Get weather data for major Indian cities using predefined city names.
Parameters:
city_name(str): Name of the city (case-insensitive)country_code(str, optional): Country code (default: "IN")
Supported Cities:
Bangalore, Mumbai, Delhi, Hyderabad, Chennai
Kolkata, Pune, Ahmedabad, Jaipur, Lucknow
Example:
get_weather_for_city("bangalore")
get_weather_for_city("Mumbai")Weather Data Format
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): 75API Key
You need a Weather Union API key (X-Zomato-Api-Key) to use this server. You can generate this for free by signing up at Weather 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
Contributing
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceProvides access to real-time weather data, 5-day forecasts, and air quality information for any city using the OpenWeatherMap API.Last updatedMIT
- Alicense-qualityDmaintenanceProvides access to real-time weather data, 5-day forecasts, air quality information, and weather comparisons across multiple cities using the free OpenWeatherMap API.Last updatedMIT
- Flicense-qualityDmaintenanceProvides weather data, forecasts, air quality, and location services via OpenWeatherMap API integration.Last updated12
- Alicense-qualityDmaintenanceProvides real-time and historical weather data for any city worldwide, including forecasts, air quality, and marine conditions, using the free Open-Meteo API.Last updated28MIT
Related MCP Connectors
Global weather API: forecasts, historical data, marine, ski, astronomy and timezone.
Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.
Weather data, forecast API, climate data, historical weather, alerts, agricultural & travel weather.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/junaidrahim/weatherunion-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server