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 ServerWhat should I pack for a trip to Paris next week?"
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
A Model Context Protocol (MCP) server that exposes weather-forecast tools, designed for consumption by a Databricks Agent Bricks agent. Deployed as a Databricks App.
Architecture
┌───────────────────────────────────────────────────────────────────┐
│ User (natural language) │
│ │ │
│ v │
│ Agent Bricks Agent (system_prompt.txt) │
│ │ MCP tool calls (streamable-HTTP) │
│ v │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ weather_mcp_server.py (FastMCP, Databricks App) │ │
│ │ ├─ get_current_weather(location) │ │
│ │ ├─ get_forecast(location, days) │ │
│ │ ├─ get_travel_recommendation(location, days) │ │
│ │ └─ compare_weather(locations, days) │ │
│ └───────────────────────────────────────────────────────────┘ │
│ │ │
│ v │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ weather_adapter.py (HTTP layer) │ │
│ │ ├─ geocode(location) → lat/lon │ │
│ │ ├─ get_current_weather(lat, lon) │ │
│ │ ├─ get_forecast(lat, lon, days) │ │
│ │ └─ build_recommendations(forecast) │ │
│ └───────────────────────────────────────────────────────────┘ │
│ │ │
│ v │
│ Open-Meteo API (free, no key required) │
│ ├─ geocoding-api.open-meteo.com/v1/search │
│ └─ api.open-meteo.com/v1/forecast │
└───────────────────────────────────────────────────────────────────┘Related MCP server: weather-mcp-server
Weather API
Open-Meteo — chosen because:
Zero signup, zero API keys, zero cost
~10,000 calls/day (non-commercial)
Global coverage (not US-only)
Provides geocoding, current weather, and 16-day forecasts in one API family
Tools
Tool | Purpose | Key Inputs |
| Live conditions (temp, wind, humidity) |
|
| Multi-day daily forecast |
|
| Packing/planning advice with thresholds |
|
| Side-by-side city comparison |
|
Recommendation Thresholds
Condition | Threshold | Advice |
Rain | Precip probability > 40% | Bring umbrella/rain jacket |
Cold | Temp < 15°C | Light jacket |
Very cold | Temp < 5°C | Heavy coat + thermals |
Windy | Wind > 30 km/h | Windbreaker |
High UV | UV index ≥ 5 | Sunscreen + sunglasses |
Heat | Temp > 35°C | Hydration alert |
Variable | Day swing > 10°C | Dress in layers |
Project Structure
WeatherMCPserver/
├── weather_adapter.py # HTTP layer: Open-Meteo API calls + geocoding + logic
├── weather_mcp_server.py # FastMCP server with @mcp.tool decorators
├── pyproject.toml # UV package management
├── app.yaml # Databricks App deployment config
├── system_prompt.txt # Agent Bricks system prompt
└── README.md # This fileSetup & Deployment
Prerequisites
Databricks workspace with Apps enabled
UV installed (
pip install uvorcurl -LsSf https://astral.sh/uv/install.sh | sh)No API keys needed (Open-Meteo is key-free)
Local Development
# Install dependencies
uv sync
# Run the MCP server locally
uv run weather_mcp_server.py
# Server starts on http://localhost:8000
# MCP endpoint: http://localhost:8000/mcpDeploy as Databricks App
# From the workspace, deploy the app
databricks apps create weather-mcp-server \
--source-code-path /Workspace/Users/<your-email>/WeatherMCPserver
# Or deploy via the Apps UI:
# 1. Go to Compute > Apps > Create App
# 2. Point source to this folder
# 3. The app.yaml handles the restRegister as External MCP Tool in Agent Bricks
Navigate to your Agent Bricks agent configuration
Add an External MCP connection:
URL:
https://<your-app-url>/mcpTransport: Streamable HTTP
Paste the contents of
system_prompt.txtas the agent's system promptTest with: "What's the weather in Tokyo right now?"
Example Queries
Current conditions:
"What's the temperature in Berlin right now?"
Forecast:
"Will it rain in Chicago this week?"
Travel advice:
"I'm traveling to Austin, Texas for 3 days. What should I pack?"
Comparison:
"Which has better weather this weekend: Miami, LA, or Denver?"
Edge cases (handled gracefully):
"What's the weather in Xyzzyville?" → Error: location not found, suggests being more specific.
Authentication & Secrets
None required. Open-Meteo needs no API key. If you later add a keyed API (e.g. WeatherAPI.com), store the key as a Databricks secret:
from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
api_key = w.secrets.get_secret(scope="weather", key="api_key").valueNever hardcode keys in source files.
Lakebase Integration (Optional)
Query history can be stored in the provisioned Lakebase Postgres instance for dashboard/analytics:
Host: ep-gentle-paper-e1xaec1l.database.eastus2.azuredatabricks.net
Database: databricks_postgres
User: WeatherMCPserverLicense
Internal project — Databricks learning challenge submission.
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-qualityCmaintenanceAn MCP server that provides current weather conditions and forecasts via OpenWeatherMap API to AI agents.
- Alicense-qualityCmaintenanceA no-API-key-required MCP server that wraps Open-Meteo APIs to provide geocoding and weather forecast data, enabling city lookups and multi-day forecasts through tools, resources, and prompts.MIT
- Alicense-qualityCmaintenanceThis MCP server provides access to Open-Meteo weather APIs including forecast, historical reanalysis, geocoding, air quality, marine weather, and flood risk data, enabling AI agents to retrieve weather information using natural language.41MIT
- 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.
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
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/dantas-tiago/WeatherMCPserver'
If you have feedback or need assistance with the MCP directory API, please join our Discord server