Weather and astronomy data
## WeatherAPI MCP Server: Comprehensive Weather Service The **WeatherAPI MCP Server** integrates the powerful WeatherAPI service directly into Google Antigravity, enabling AI assistants to access real-time weather, forecasts, historical data, and astronomy information programmatically. This integration brings feature-rich weather capabilities to your development workflow. ### Why WeatherAPI MCP? - **Global Coverage**: Weather data for millions of locations worldwide - **Rich Data**: Current conditions, forecasts, history, and astronomy data - **Sports Weather**: Weather data optimized for sports and outdoor activities - **Marine Weather**: Sea conditions and marine forecasts - **Time Zone Data**: Location-based time zone information included ### Key Features #### 1. Current Conditions ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get detailed current weather conditions for London including feels-like temperature" }], tools=[{ "name": "weatherapi_current", "description": "Current weather" }] ) ``` #### 2. Forecast Data ```python # Get detailed forecast response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get hourly weather forecast for Tokyo for the next 3 days" }], tools=[{"name": "weatherapi_forecast", "description": "Weather forecast"}] ) ``` #### 3. Historical Weather ```python # Access historical data response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get weather history for Paris on this date last year" }], tools=[{"name": "weatherapi_history", "description": "Historical weather"}] ) ``` #### 4. Astronomy Data ```python # Get astronomy information response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get sunrise, sunset, and moon phase for Sydney today" }], tools=[{"name": "weatherapi_astronomy", "description": "Astronomy data"}] ) ``` ### Configuration ```json { "mcpServers": { "weatherapi": { "command": "npx", "args": ["-y", "@anthropic/mcp-weatherapi"], "env": { "WEATHERAPI_KEY": "your-weatherapi-key" } } } } ``` ### Use Cases **Weather Applications**: Build comprehensive weather apps with rich data. **Sports Planning**: Optimize outdoor sports scheduling with detailed conditions. **Photography Apps**: Plan shoots around golden hour and weather conditions. **Travel Planning**: Provide detailed destination weather for trip planning. The WeatherAPI MCP Server brings comprehensive weather services directly into your development workflow, enabling rich weather-powered applications.
{
"mcpServers": {
"weatherapi": {
"mcpServers": {
"weatherapi": {
"env": {
"WEATHERAPI_KEY": "your-api-key"
},
"args": [
"-y",
"weatherapi-mcp-server"
],
"command": "npx"
}
}
}
}
}