Weather Prediction MCP Server
Click on "Install 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 ServerWill it rain in Austin over the next 3 days?"
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 + Databricks Agent
Assignment 3 for the DataExpert.io Databricks AI Boot Camp.
This project exposes weather capabilities through a FastMCP Streamable-HTTP server backed by Open-Meteo, then connects a Databricks Agent Bricks agent to those tools.
Architecture
User
|
v
Databricks Agent Bricks
|
| MCP tool calls
v
Weather Prediction MCP Server (Databricks App)
|-- get_current_weather
|-- get_forecast
`-- get_travel_recommendation
|
v
weather_adapter.py
|
| HTTPS
v
Open-Meteo Geocoding + Forecast APIsThe MCP layer is deliberately thin. All HTTP calls, geocoding, response parsing, WMO weather-code mapping, validation, and recommendation logic live in weather_adapter.py.
Related MCP server: weather-mcp
Weather API and authentication
Open-Meteo is used for geocoding and weather forecasts. This lab requires no API key, so there are no API secrets to store or commit.
MCP tools
get_current_weather(location)
Returns current temperature, feels-like temperature, conditions, humidity, precipitation, cloud cover, and wind.
get_forecast(location, days=5)
Returns 1-16 daily forecasts with high/low temperatures, conditions, maximum precipitation probability, precipitation total, and maximum wind.
get_travel_recommendation(location, date)
A derived prediction/recommendation rather than an API passthrough:
umbrella when precipitation probability >= 40% or precipitation > 0.02 in
jacket when daily low < 55°F
heat caution when daily high >= 90°F
wind caution when max wind >= 25 mph
The tool returns forecast values, booleans, exact threshold logic, reasons, and a human-readable recommendation.
Error handling
Blank/unresolvable locations return a clean
status: errorresult.Invalid coordinates, invalid forecast days, and invalid/out-of-range dates return clean errors.
HTTP failures and invalid upstream JSON are translated into user-safe errors.
Unexpected MCP failures are logged server-side but return a generic message instead of a stack trace.
Project structure
weather-prediction-mcp-agent/
├── weather_mcp_server.py
├── weather_adapter.py
├── app.yaml
├── requirements.txt
├── agent/
│ ├── system_prompt.md
│ ├── agent_config.json
│ └── demo_questions.md
└── tests/
├── test_weather_adapter.py
└── test_server_contract.pyRun locally
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install pytest
pytest -q
python weather_mcp_server.pyFastMCP serves the MCP endpoint at:
http://localhost:8000/mcpDeploy MCP server as a Databricks App
Push this repository to GitHub and open it as a Databricks Git folder.
In Compute -> Apps, create a Custom app such as
weather-prediction-mcp.Point the app source to the repository root containing
app.yaml.Deploy it.
Copy the Databricks App URL. The MCP endpoint is the app URL plus
/mcp, for example:https://<your-app>.aws.databricksapps.com/mcp
app.yaml runs:
command: ["python", "weather_mcp_server.py"]The server binds to DATABRICKS_APP_PORT automatically.
Register the MCP and build Agent Bricks agent
In Databricks, register the deployed app's
/mcpURL as the MCP service/tool source.Confirm Databricks discovers:
get_current_weatherget_forecastget_travel_recommendation
Create an Agent Bricks agent.
Add the registered weather MCP server under Tools.
Paste
agent/system_prompt.mdas the system prompt.Run the three prompts in
agent/demo_questions.md.Capture screenshots showing each natural-language prompt, its tool call, and the grounded answer.
System prompt / guardrails
The supplied system prompt requires the agent to use tools for weather facts, never fabricate readings, explain tool errors rather than guess, clarify ambiguous locations, and explain the threshold behind derived recommendations.
Required demonstration prompts
What is the weather in Chicago right now?Will it rain in Austin over the next 3 days?Should I bring an umbrella and jacket to New York on <a date within the next 16 days>?
S
Notes
Open-Meteo forecasts are forecasts, not guarantees. The agent is instructed to avoid presenting predictions as certain and to use only values returned by tools.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityBmaintenanceProvides real-time weather data via 12 tools (current weather, forecasts, air quality, umbrella advice, etc.) using Open-Meteo and FastMCP, enabling LLMs to answer weather-related queries.1
- Flicense-qualityBmaintenanceMCP server exposing weather tools (current conditions, forecasts, umbrella prediction, travel advice, city comparisons) via Open-Meteo, designed for integration with Databricks Agent Bricks.
- Alicense-qualityBmaintenanceA FastMCP server that provides current weather, forecasts, and rule-based umbrella/jacket recommendations via Open-Meteo, deployable to Databricks Agent Bricks.Apache 2.0
- Flicense-qualityBmaintenanceMCP server that provides weather forecasting tools for Databricks Agent Bricks, including current conditions, forecasts, and umbrella recommendations using OpenMeteo.
Related MCP Connectors
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SaiNikhil02/weather-prediction-mcp-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server