OpenWeather API
Provides access to current weather data, forecasts, and historical weather data for any location worldwide.
Verdict
Common use cases
- Check weather before scheduling outdoor events
- Monitor air quality for health advisories
- Pull UV index for sun safety alerts
- Compare forecasts across multiple cities
- Archive historical climate data for reports
Integration
- Vendor
- OpenWeather API
- Category
- developer-tools
- Auth
- API_KEY
- Tools
- 17
- Composio slug
openweather_api
Tools
- Add Weather Station
Tool to add a new weather station to your account. use when you need to register a station before sending custom data.
- Delete Weather Stationdestructive
Tool to delete a registered weather station. use after identifying a station to remove. returns confirmation message upon success.
- Get 5 Day Forecast
Tool to get a 5-day forecast every 3 hours. use after specifying location.
- Get Air Pollution Forecast
Tool to get forecasted air pollution data for a specific location. use after confirming latitude and longitude.
- Get Air Pollution History
Tool to retrieve historical air pollution data. use when you need past air quality levels for a specific latitude/longitude and time range.
- Get Circle City Weather
Tool to search for current weather data in cities around a geographic point. use when you need to fetch weather within a radius circle after confirming latitude and longitude.
- Get Current Air Pollution Data
Tool to fetch current air pollution data for a location. use when you need real-time air quality details by latitude and longitude.
- Get Current UV Index
Tool to retrieve current uv index for a location. use when you need up-to-the-minute uv index by latitude and longitude.
- Get Current Weather
Tool to retrieve current weather data for a location. use when you need up-to-the-minute weather info.
- Get Direct Geocoding
Tool to convert a location name into geographic coordinates. use when you need latitude and longitude for a given location after confirming the precise name.
- Get Reverse Geocoding
Tool to convert geographic coordinates into a location name. use when you need city, state, and country info from latitude and longitude.
- Get UV Index Forecast
Tool to retrieve uv index forecast for a specific location. use when you need upcoming uv index values after confirming latitude and longitude. returns up to 8 days of data.
- Get UV Index History
Tool to retrieve historical uv index data for a specified location and time range. use when you need to analyze past uv exposure trends after confirming coordinates and time period.
- Get Weather Map Tile (2.0)
Tool to fetch weather maps 2.0 tile images. use when you need dynamic weather layers at specific zoom and coordinates with advanced styling options.
- Get Weather Stations
Tool to list all weather stations added to your account. use after setting up your openweather api key.
- Get Weather Triggers
Tool to retrieve weather triggers for specific conditions. use after defining trigger criteria.
- Update Weather Station
Tool to update weather station details. use when you need to modify the name, location, or external id of an existing station.
Setup
Setup guide
- 11. Open your Switchy workspace and navigate to Settings > Integrations. 2. Search for OpenWeather API and click Connect. 3. Visit openweathermap.org, sign in or create an account, then go to API Keys in your profile. 4. Copy your default API key or generate a new one. 5. Paste the key into Switchy's connection dialog and click Authorize. 6. Switchy confirms the connection and shows which tools are now available. 7. Open any Space and type '@OpenWeather get current weather for Seattle' to test — the MCP should return temperature, humidity, and conditions. 8. If the response fails, verify your API key is active and your OpenWeather plan supports the requested data type. 9. For historical queries or station management, ensure your OpenWeather subscription tier includes those features.
What teammates see: by default, memories from OpenWeather API are scoped to the Space (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Spaces have used this MCP together with a given model.
How Switchy teams use it
Starter prompts
Weekly Forecast Brief
@OpenWeather get the 5-day forecast for Portland, Oregon and summarize the high and low temperatures plus any rain expected each day.Open in a Space →
Air Quality Check
@OpenWeather get current air pollution data for latitude 40.7128 longitude -74.0060 and tell me if the air quality is safe for outdoor exercise.Open in a Space →
UV Index Alert
@OpenWeather get the current UV index for Miami, Florida and advise whether I need sunscreen for a midday walk.Open in a Space →
Regional Weather Scan
@OpenWeather get weather for cities within 50 km of latitude 51.5074 longitude -0.1278 and list which ones have rain right now.Open in a Space →
Historical Pollution Trend
@OpenWeather get air pollution history for latitude 34.0522 longitude -118.2437 from January 1 to January 31 2024 and identify the days with the worst AQI.Open in a Space →
Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
@OpenWeather get the 5-day forecast for Seattle, WA and summarize which days are best for outdoor activities
Based on the 5-day forecast for Seattle (47.6062°N, 122.3321°W), here's what to expect: Day 1 shows partly cloudy skies with temps around 58°F and 20% precipitation chance. Day 2 brings rain (80% chance) with highs of 54°F. Days 3-4 remain overcast with intermittent showers. Day 5 clears to mostly sunny, 62°F, 10% rain chance. Best outdoor days: Day 1 (morning) and Day 5 (all day). Pack layers—temps fluctuate 8-10°F between morning and afternoon across the period.
This example shows how the MCP pairs forecast data with AI reasoning to answer planning questions. The 5-day forecast updates every 3 hours, so timing matters—morning vs. evening queries may show different precipitation windows. Requires a valid API key with forecast access enabled.
@OpenWeather add a weather station named 'Rooftop Garden Monitor' at my office coordinates 40.7128°N, 74.0060°W
Weather station 'Rooftop Garden Monitor' successfully registered with OpenWeather. Station ID: RGM_74006_40712. You can now send custom observations (temperature, humidity, wind speed, precipitation) from your sensor array to this station. Data will appear in your account dashboard within 5 minutes of first transmission. Remember to use this station ID when posting measurements via the API.
This demonstrates the write capability for users running their own weather sensors. Adding a station is a prerequisite for submitting custom data—you can't post observations without a registered station ID. Useful for IoT projects, agricultural monitoring, or hyperlocal weather tracking where official stations are sparse.
@OpenWeather compare current air pollution levels in Los Angeles, Beijing, and New Delhi—which city has the healthiest air quality right now?
Current Air Quality Index readings: Los Angeles (34.0522°N, 118.2437°W) shows AQI 68 (Moderate) with PM2.5 at 22 µg/m³. Beijing (39.9042°N, 116.4074°E) reports AQI 152 (Unhealthy) with PM2.5 at 89 µg/m³ and elevated NO₂ levels. New Delhi (28.7041°N, 77.1025°E) registers AQI 187 (Unhealthy) with PM2.5 at 112 µg/m³. Los Angeles has the healthiest air today—safe for outdoor activities. Beijing and New Delhi residents should limit prolonged outdoor exertion, especially sensitive groups.
This showcases the MCP's ability to fetch real-time air pollution data across multiple locations for comparative analysis. Air quality readings update hourly but can lag 30-60 minutes behind actual conditions. The AI translates raw pollutant concentrations (PM2.5, NO₂, O₃) into actionable health guidance using standard AQI thresholds.
Use-case deep-dives
When weather data belongs in your dispatch workflow
A 12-person HVAC company routes techs across a metro area every morning. The dispatcher checks the 5-day forecast and air quality data to prioritize outdoor installs when conditions are safe and reschedule rooftop work when UV index spikes or air pollution hits hazardous levels. This MCP wins here because the team already uses Switchy for dispatch notes and customer context—pulling OpenWeather's forecast and pollution tools into the same workspace means one fewer tab and faster routing decisions. The API key auth is straightforward for the ops manager to set up once. If your field work doesn't hinge on same-day weather (like indoor-only service calls), skip this and stick with a weather app. But if conditions change your schedule daily, this MCP turns weather from a distraction into a routing input your whole team can reference in one place.
Why this MCP matters for outdoor event coordinators
A 3-person event planning shop runs 8-12 outdoor weddings and corporate picnics per month. Two weeks before each event, they pull the 5-day forecast for the venue's lat/long to brief clients on contingency plans. Three days out, they check hourly forecasts and UV index to finalize tent placement and sunscreen station needs. This MCP fits because the team already tracks client communications and vendor checklists in Switchy—adding weather lookups to the same thread means the planner, the client liaison, and the day-of coordinator all see the same forecast without forwarding screenshots. The 17 tools cover edge cases like air pollution for asthma-sensitive guests. If you only run 1-2 events a quarter, a free weather site is fine. But at 8+ events a month, this MCP saves the repetitive copy-paste and keeps weather context attached to the event record.
When custom weather stations justify the setup cost
A 2-person organic farm tracks microclimates across 40 acres using three custom weather stations. They log soil moisture, temperature, and air quality daily to time irrigation and pest treatments. This MCP's Add Weather Station and Get Air Pollution History tools let them register their stations and pull historical data into Switchy alongside crop notes and harvest schedules. The payoff is real if you're already managing station data—centralizing it with your farm ops means the grower and the farmhand see the same readings when deciding whether to spray or wait. The threshold: if you're not running custom stations, this MCP is overkill. A simpler forecast tool will do. But if you've invested in station hardware and need to correlate weather history with yield data, this MCP turns raw readings into a shared decision layer your team can act on without switching apps.
Frequently asked
What does the OpenWeather MCP do in Switchy?
It pulls live weather data, forecasts, air quality readings, and UV index information into your AI workspace. Your team can query current conditions for any location, get 5-day forecasts, check historical pollution levels, or search weather within a radius—all without leaving Switchy. You can also register and manage custom weather stations if you're sending your own sensor data to OpenWeather.
Do I need an OpenWeather API key to use this MCP?
Yes. You authenticate with an API key from your OpenWeather account. Free-tier keys work for basic current weather and forecasts, but features like air pollution history and UV index require a paid subscription. Whoever connects the MCP in Switchy needs access to the key—typically a developer or ops lead who manages your OpenWeather account.
Can this MCP send weather alerts or push notifications?
No. The OpenWeather MCP is read-only for weather data; it doesn't subscribe to alerts or trigger push notifications. If you need proactive warnings, you'll have to poll the forecast or air quality tools on a schedule and build your own alerting logic outside Switchy. For simple checks, just ask the AI to fetch the latest conditions when you need them.
How is this different from calling the OpenWeather API directly?
The MCP wraps OpenWeather's REST endpoints so your AI can fetch data conversationally—no curl commands or JSON parsing. You trade some flexibility (you can't customise every query parameter) for speed: ask "What's the air quality in Berlin?" and get an answer in seconds. If you need bulk downloads or custom aggregations, hit the API directly instead.
Who on my team should connect the OpenWeather MCP?
Whoever holds your OpenWeather API key and understands your rate limits. That's usually a backend engineer or data analyst. Once connected, anyone in the Switchy workspace can query weather data through the AI—they won't see the key itself. If your OpenWeather plan has tight request quotas, monitor usage to avoid hitting the cap mid-month.