Weather data service
## OpenWeather MCP Server: Weather Data Integration The **OpenWeather MCP Server** integrates OpenWeatherMap API directly into Google Antigravity, enabling AI assistants to access current weather, forecasts, and historical data programmatically. This integration brings comprehensive weather data to your development workflow. ### Why OpenWeather MCP? - **Current Conditions**: Real-time weather data for any location worldwide - **Forecasts**: Hourly, daily, and extended weather predictions - **Historical Data**: Access past weather data for analysis and trends - **Weather Alerts**: Severe weather warnings and alerts - **Air Quality**: Pollution and air quality index data ### Key Features #### 1. Current Weather ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get current weather conditions for San Francisco" }], tools=[{ "name": "openweather_current", "description": "Current weather" }] ) ``` #### 2. Weather Forecast ```python # Get forecast response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get the 5-day weather forecast for New York City" }], tools=[{"name": "openweather_forecast", "description": "Weather forecast"}] ) ``` #### 3. Weather Alerts ```python # Check weather alerts response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Check for any severe weather alerts in the Florida region" }], tools=[{"name": "openweather_alerts", "description": "Weather alerts"}] ) ``` #### 4. Air Quality ```python # Get air quality data response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get the current air quality index for Los Angeles" }], tools=[{"name": "openweather_air", "description": "Air quality"}] ) ``` ### Configuration ```json { "mcpServers": { "openweather": { "command": "npx", "args": ["-y", "@anthropic/mcp-openweather"], "env": { "OPENWEATHER_API_KEY": "your-openweather-api-key" } } } } ``` ### Use Cases **Travel Applications**: Provide weather information for trip planning. **Outdoor Activities**: Help users plan activities based on weather conditions. **Agriculture**: Support farming decisions with weather data and forecasts. **Event Planning**: Factor weather into outdoor event scheduling. The OpenWeather MCP Server brings comprehensive weather data directly into your development workflow, enabling weather-aware applications.
{
"mcpServers": {
"openweather": {
"mcpServers": {
"openweather": {
"env": {
"OPENWEATHER_API_KEY": "your-api-key"
},
"args": [
"-y",
"openweather-mcp-server"
],
"command": "npx"
}
}
}
}
}