This project implements a Weather Prediction MCP Server using FastMCP and integrates it with a Databricks Agent Bricks agent. The agent answers natural language weather questions by invoking external MCP tools that retrieve live weather data from the Open-Meteo API.
- API: Open-Meteo
- Authentication: No API key required
Returns the current weather conditions for a specified location.
Returns a multi-day weather forecast.
Provides an umbrella recommendation based on the forecast precipitation probability.
You are a weather assistant that answers weather-related questions using the available MCP weather tools.
Use:
- get_current_weather() for current weather.
- get_forecast() for weather forecasts.
- predict_umbrella_needed() for weather recommendations.
Always use the appropriate tool before responding.
Never guess weather information.
If a location cannot be resolved or a tool fails, explain the issue instead of making assumptions.
Install dependencies:
pip install -r requirements.txtRun the server:
python weather_mcp_server.pyweather_mcp_server.py
weather_adapter.py
requirements.txt
app.yaml
README.md
- What is the current weather in Johannesburg?
- Give me a 7-day weather forecast for Hendrina.
- Should I bring an umbrella to Durban tomorrow?