weather-mcp
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-mcpWill I need an umbrella in Paris 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
Overview
A FastMCP server exposing weather tools backed by Open-Meteo and connected to a Databricks Agent Bricks agent.
Related MCP server: weather-mcp
Architecture
User -> Agent Bricks -> Databricks App MCP Server -> weather_adapter.py -> Open-Meteo APIs
Weather API
Open-Meteo Forecast API and Geocoding API.
Authentication: none required for this non-commercial project.
Tools
get_current_weather
Returns current temperature, apparent temperature, humidity, precipitation, wind, and conditions.
get_forecast
Returns daily high/low temperature, precipitation, precipitation probability, wind, and conditions for 1 to 16 days.
predict_umbrella_needed
Applies rule-based recommendations:
Umbrella at precipitation probability >= 40%.
Umbrella at expected precipitation >= 1 mm.
Umbrella for thunderstorms.
Jacket when the high temperature is below 15 C.
Warm layer when the low temperature is below 8 C.
Local setup
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python weather_mcp_server.pyDatabricks Deployment
Deployed MCP Server App
App Name: mcp-weather-server
App URL: https://mcp-weather-server-7474660615522196.aws.databricksapps.com
MCP Endpoint: https://mcp-weather-server-7474660615522196.aws.databricksapps.com/mcp
Status: ✅ Running
Source Code Path: /Workspace/Users/bchandra.ry@gmail.com/weather-mcp
Note: The app name MUST start with "mcp-" to be visible in Agent Bricks Custom MCP Server dropdown.
Agent Bricks Configuration
System Prompt: See agent_system_prompt.txt
Tools Registered:
get_current_weatherget_forecastpredict_umbrella_needed
The agent is configured in AI Playground under Tools > MCP Servers > Custom MCP Server.
Agent Demonstration
The following examples demonstrate the WeatherGuide agent successfully calling the MCP server tools:
Example 1: Current Weather Query
User Question: "What's the weather like in Chicago right now?"
Tools Called:
get_current_weather(location="Chicago")
Agent Response: The agent retrieved current conditions from Open-Meteo showing:
Temperature: 24.2°C (feels like 26.3°C)
Conditions: Clear sky
Humidity: 75%
Wind: 9.9 km/h
Example 2: Multi-Day Forecast
User Question: "Will it rain in Austin this weekend?"
Tools Called:
get_forecast(location="Austin", days=5)
Agent Response: The agent analyzed the 5-day forecast and reported:
Weekend forecast shows overcast and partly cloudy conditions
Precipitation probability: 1-3% (very low)
Temperatures: Highs of 36-40°C, lows of 24-26°C
Conclusion: No rain expected in Austin this weekend
Example 3: Recommendation/Prediction
User Question: "Should I bring a jacket to San Francisco tomorrow?"
Tools Called:
predict_umbrella_needed(location="San Francisco", forecast_date="2026-08-09")
Agent Response: The agent applied the rule-based decision logic:
Date: August 9, 2026
Temperature: 26.3°C / 13.7°C
Conditions: Fog
Precipitation: 0.0mm (2% chance)
Umbrella needed: No
Jacket recommendation: Not needed (high temp above 15°C threshold)
All three examples show the agent:
✅ Correctly calling the appropriate MCP tool
✅ Parsing the tool response
✅ Providing natural language answers based on real weather data
✅ Following the system prompt rules (no guessing, always using tools)
Error handling
Invalid locations, invalid dates, API errors, and unsupported forecast ranges return structured errors. The agent is instructed not to guess when a tool fails.
Implementation Highlights
Code Structure
weather_mcp_server.py: FastMCP server with 3 @mcp.tool decorated functionsweather_adapter.py: Clean HTTP adapter handling all Open-Meteo API callsapp.yaml: Databricks App configurationrequirements.txt: Dependencies (fastmcp>=2.0, requests>=2.32)agent_system_prompt.txt: Complete agent behavior instructions
Key Features
✅ Clean separation of concerns: MCP tool functions are thin wrappers; all HTTP logic lives in the adapter
✅ Structured error handling: WeatherAPIError exceptions return clean error dicts with guidance
✅ No secrets required: Uses free Open-Meteo API (no API keys)
✅ Rule-based predictions: The predict_umbrella_needed tool applies documented thresholds:
Umbrella if precipitation ≥ 1mm OR probability ≥ 40% OR thunderstorms
Jacket if high temp < 15°C
Warm layer if low temp < 8°C
✅ Location resolution: Geocoding API resolves city names to coordinates automatically
✅ Detailed docstrings: Every tool has Args/Returns documentation
GitHub Repository
Repository: https://github.com/bidhan017/weather-mcp
The app is deployed from this Git repository with automatic updates on push.
Limitations
Forecast values can change as new model runs are published.
Recommendations are simple threshold-based judgments, not official warnings.
Open-Meteo attribution should be retained in the application and README.
App name must start with "mcp-" to be discoverable in Agent Bricks Custom MCP Server list.
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
- 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
- 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-qualityCmaintenanceThis MCP server provides current weather, 1-16 day forecasts, travel recommendations, and city comparisons using Open-Meteo. It requires no API key and includes a transparent agent-friendly interface.MIT
- Flicense-qualityBmaintenanceA Streamable HTTP MCP server backed by Open-Meteo, plus the prompt and registration metadata for a Databricks Agent Bricks weather agent.
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for AI dialogue using various LLM models via AceDataCloud
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/bidhan017/weather-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server