Weather Prediction MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weather Prediction MCP ServerShould I bring an umbrella to Tokyo tomorrow?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Weather Prediction MCP Server + Agent
Overview
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.
Related MCP server: Weather MCP Server
Weather API
API: Open-Meteo
Authentication: No API key required
MCP Tools
get_current_weather(location)
Returns the current weather conditions for a specified location.
get_forecast(location, days)
Returns a multi-day weather forecast.
predict_umbrella_needed(location)
Provides an umbrella recommendation based on the forecast precipitation probability.
System Prompt
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.Setup
Install dependencies:
pip install -r requirements.txtRun the server:
python weather_mcp_server.pyProject Files
weather_mcp_server.py
weather_adapter.py
requirements.txt
app.yaml
README.mdExample Questions
What is the current weather in Johannesburg?
Give me a 7-day weather forecast for Hendrina.
Should I bring an umbrella to Durban tomorrow?
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides weather data including current conditions, forecasts, and summaries via Open-Meteo with no API key required, enabling natural language queries through an MCP interface.MIT
- FlicenseNot gradedqualityCmaintenanceProvides real-time weather forecasts, current conditions, and smart umbrella recommendations through MCP tools, backed by the Open-Meteo API.-
- FlicenseNot gradedqualityBmaintenanceProvides current weather, multi-day forecasts, and umbrella recommendations through natural language queries, backed by the Open-Meteo API.-
- FlicenseNot gradedqualityCmaintenanceThis MCP server provides real-time weather data, multi-day forecasts, and umbrella recommendations using the Open-Meteo API. It enables natural-language queries about current conditions, future forecasts, and precipitation-based advice.-