Create a weather forecasting agent using the Open Meteo MCP to provide detailed weather information and forecasts.
Copy
Ask AI
import asynciofrom dedalus_labs import AsyncDedalus, DedalusRunnerfrom dotenv import load_dotenvfrom dedalus_labs.utils.streaming import stream_asyncload_dotenv()async def main(): client = AsyncDedalus() runner = DedalusRunner(client) result = await runner.run( input="""I'm planning a outdoor wedding in San Francisco next weekend. Can you provide: 1. Current weather conditions 2. 7-day forecast with hourly details 3. Probability of precipitation 4. Temperature highs and lows 5. Wind conditions and UV index 6. Recommendations for outdoor event planning based on the forecast""", model="openai/gpt-4.1", mcp_servers=["joerup/open-meteo-mcp"] ) print(f"Weather Forecast Results:\n{result.final_output}")if __name__ == "__main__": asyncio.run(main())
This example uses the Open Meteo MCP (joerup/open-meteo-mcp) which provides: