weather-mcp
Allows the weather MCP server to be deployed as a Databricks App and registered with Databricks Agent Bricks, enabling Databricks agents to access weather tools via MCP.
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-mcpWill it rain in Chicago 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 MCP Server & Databricks Agent
A Model Context Protocol (MCP) server built with FastMCP exposing weather intelligence tools backed by the Open-Meteo API, integrated with Databricks Agent Bricks.
๐ Repository Structure
weather-mcp/
โโโ src/
โ โโโ weather_mcp/
โ โโโ __init__.py # Package exports
โ โโโ weather_broker.py # Adapter module & WeatherClient / WeatherRuleEngine
โ โโโ mcp_server.py # FastMCP server & tool definitions
โโโ tests/
โ โโโ test_weather.py # Unit & integration test suite
โโโ AGENT_PROMPT.md # Databricks Agent system prompt & registration guide
โโโ CONTEXT.md # Domain model glossary
โโโ README.md # Project documentation
โโโ app.yaml # Databricks Apps manifest
โโโ pyproject.toml # Python package configuration
โโโ requirements.txt # Production dependenciesRelated MCP server: Weather Prediction MCP Server
๐๏ธ Architecture Overview
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Databricks Agent Bricks Agent โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Model Context Protocol (MCP / HTTP)
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ FastMCP Server (src/weather_mcp/mcp_server.py) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Thin wrapper calls
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Broker Adapter (src/weather_mcp/weather_broker.py) โ
โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโ
โ Geocoding API โ Forecast API
โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ
โ Open-Meteo Geocoding โ โ Open-Meteo Forecast โ
โโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ๐ ๏ธ MCP Tools Reference
Tool Signature | Description | Key Arguments |
| Returns real-time temperature, humidity, wind speed, and conditions. |
|
| Multi-day daily forecast (high/low temps, precipitation %, conditions). |
|
| Evaluates if an umbrella is needed based on precip probability (>=40%) and volume. |
|
| Generates clothing packing advice and outdoor activity ratings. |
|
| Compares current weather conditions across multiple cities. |
|
๐ Setup & Local Execution
1. Install Dependencies
uv sync2. Run Test Suite
PYTHONPATH=src uv run python tests/test_weather.py3. Start FastMCP Server Locally
uv run fastmcp run src/weather_mcp/mcp_server.py --transport http --port 8000The server will listen at http://127.0.0.1:8000/mcp.
โ๏ธ Databricks Apps Deployment & Agent Bricks Registration
Deploy App: Deploy this repository to Databricks Apps using
app.yaml:command: - "fastmcp" - "run" - "src/weather_mcp/mcp_server.py" - "--transport" - "http" - "--host" - "0.0.0.0" - "--port" - "8000"Register External MCP Tool:
In Databricks Workspace -> AI Playground / Agent Bricks.
Click Add Tool -> External MCP Server.
Enter App URL:
https://<databricks-app-url>/mcp.
Configure System Prompt:
Copy system prompt from AGENT_PROMPT.md.
๐งช Demonstrated Agent Queries & Responses
Query 1: Rain & Umbrella Prediction
User: "Will it rain in Chicago tomorrow?"
Tool Call:
predict_umbrella_needed(location="Chicago", date="tomorrow")Agent Response:
"No, it is very unlikely to rain in Chicago tomorrow (2026-08-09). The precipitation probability is only 2% with clear skies. High: 79.0ยฐF (26.1ยฐC), Low: 64.5ยฐF (18.1ยฐC). You won't need an umbrella!"

Query 2: Travel Packing Advice
User: "Should I bring a jacket to Austin this weekend?"
Tool Call:
get_travel_recommendation(location="Austin, TX", days=3)Agent Response:
"You will not need a heavy jacket in Austin this weekend! Temperatures will be very warm with highs reaching 99.6ยฐF (37.5ยฐC) and lows around 76.1ยฐF (24.5ยฐC). I recommend packing light summer clothing and staying hydrated."

Query 3: Multi-City Weather Comparison
User: "Is it warmer right now in Chicago, Austin, or Tokyo?"
Tool Call:
compare_city_weather(cities="Chicago, Austin, Tokyo")Agent Response:
"Currently, Austin, Texas is the warmest at 96.6ยฐF (35.9ยฐC). Comparison:
Austin, TX: 96.6ยฐF (35.9ยฐC)
Chicago, IL: 79.0ยฐF (26.1ยฐC)
Tokyo, Japan: 73.9ยฐF (23.3ยฐC)"

Query 4: Edge Case Error Handling
User: "What's the weather in NonExistentCityXYZ?"
Tool Call:
get_current_weather(location="NonExistentCityXYZ")Agent Response:
"I couldn't find a location matching 'NonExistentCityXYZ'. Could you please check the spelling or provide the city name alongside its state or country?"
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
MCP server for weather with reasoning โ umbrella advice, outdoor checks, city comparisons.
The official Model Context Protocol server for Ambee. It gives any MCP-compatible AI assistant โ Claude, ChatGPT, Cursor, VS Code, Ollama, and more direct access to live air quality, pollen, and weather data. To get started, including information on signing up and obtaining your Ambee key, check out the Ambee documentation on https://docs.ambeedata.com
- UnifAPIOAuthcom.unifapi
Hosted MCP server for live public-data APIs and Skills for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceA Streamable HTTP MCP server backed by Open-Meteo, plus the prompt and registration metadata for a Databricks Agent Bricks weather agent.-
- FlicenseNot gradedqualityBmaintenanceAn MCP server that provides weather forecast tools (current weather, forecast, travel recommendations, and city comparison) powered by Open-Meteo, designed for Databricks Agent Bricks.-
- FlicenseAqualityCmaintenanceMCP server that exposes real-time weather, forecasts, air quality, and multi-city comparison tools via the OpenWeather API for LLM agents.4-
- AlicenseNot gradedqualityBmaintenanceA FastMCP server that provides current weather, forecasts, and rule-based umbrella/jacket recommendations via Open-Meteo, deployable to Databricks Agent Bricks.Apache 2.0