MCP server for weather data
## OpenWeatherMap MCP Server: Global Weather Data The **OpenWeatherMap MCP Server** integrates OpenWeatherMap services into Google Antigravity, enabling AI-assisted access to current weather, forecasts, and historical weather data for locations worldwide. ### Why OpenWeatherMap MCP? - **Global Coverage**: Weather data for any location on Earth - **Free Tier**: Generous free API calls for development - **Multiple APIs**: Current, forecast, historical, and air quality data - **Weather Maps**: Access to weather map tiles - **Alerts**: Severe weather alerts and notifications ### 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 for San Francisco including humidity and wind" }] ) ``` #### 2. Forecasts ```python # Get forecasts response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Show 7-day forecast with precipitation probability" }] ) ``` #### 3. Air Quality ```python # Check air quality response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get air quality index and pollution levels for my location" }] ) ``` #### 4. Historical Data ```python # Access history response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get historical weather data for last month for analysis" }] ) ``` ### Configuration ```json { "mcpServers": { "openweathermap": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-openweathermap"], "env": { "OPENWEATHER_API_KEY": "your-api-key" } } } } ``` ### Use Cases **Weather Apps**: Build weather-aware applications. **Agriculture**: Monitor weather for farming decisions. **Travel Planning**: Check weather for destinations. **Events**: Plan outdoor activities with weather data. The OpenWeatherMap MCP Server brings weather intelligence into your workflow.
{
"mcpServers": {
"openweathermap": {
"mcpServers": {
"openweathermap": {
"env": {
"OPENWEATHER_API_KEY": "YOUR_OPENWEATHER_API_KEY"
},
"args": [
"-y",
"mcp-openweather"
],
"command": "npx"
}
}
}
}
}