Weather 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 MCP ServerDo I need an umbrella in Portland today?"
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 Forecast MCP Server & Agent
A complete implementation of a weather forecast MCP (Model Context Protocol) server with a Databricks Agent Bricks agent integration.
Overview
This project demonstrates how to build and deploy:
Weather MCP Server - FastMCP server exposing weather forecast tools
Agent Bricks Integration - An intelligent agent that uses the MCP server to answer weather questions
The weather data comes from Open-Meteo, a free weather API requiring no signup or API key.
Related MCP server: Weather Prediction MCP Server
Architecture
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ User Question │─────▶│ Agent Bricks │─────▶│ Weather MCP │
│ "Will it │ │ Agent │ │ Server │
│ rain in SF?" │ │ │ │ │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│ │
│ ▼
│ ┌─────────────────┐
│ │ weather_broker │
│ │ │
▼ └─────────────────┘
┌─────────────────┐ │
│ Natural Lan- │ ▼
│ guage Response │ ┌─────────────────┐
└─────────────────┘ │ Open-Meteo │
│ API │
└─────────────────┘Files
Weather MCP Server
weather_broker.py- Weather API adapter (HTTP calls to Open-Meteo)weather_mcp_server.py- FastMCP server with 3 toolsapp.yaml- Databricks App deployment configrequirements.txt- Python dependencies
Agent Configuration
weather_agent.py- Agent Bricks agent configuration
MCP Tools
The server exposes 3 tools:
1. get_current_weather(location: str)
Get current weather conditions for any location.
Example:
get_current_weather("Chicago")
# Returns: temperature, feels_like, humidity, wind, conditions, etc.2. get_forecast(location: str, days: int = 7)
Get multi-day weather forecast (1-16 days).
Example:
get_forecast("Austin", days=5)
# Returns: daily forecasts with high/low temps, precipitation, conditions3. predict_umbrella_needed(location: str, date: Optional[str] = None)
Make a recommendation about needing an umbrella.
Example:
predict_umbrella_needed("Seattle", "2026-08-15")
# Returns: YES/NO/MAYBE recommendation with reasoningDeployment
Step 1: Deploy the MCP Server
# From the workspace CLI or notebook
databricks apps create weather_mcp \
--source-path /Workspace/Users/your-email@example.com/weather_mcpStep 2: Get the App URL
databricks apps get weather_mcp
# Note the URL, e.g., https://dbc-xxxxx.cloud.databricks.com/apps/weather_mcpStep 3: Configure the Agent
Edit weather_agent.py and set WEATHER_MCP_URL to your deployed app URL:
MCP_SERVER_URL = "https://dbc-xxxxx.cloud.databricks.com/apps/weather_mcp"Step 4: Deploy the Agent
The agent can be deployed as another Databricks App or used directly in notebooks.
Testing
Test the MCP Server Locally
# In a notebook
import weather_broker
# Test current weather
weather_broker.get_current_weather("San Francisco")
# Test forecast
weather_broker.get_forecast("New York", days=3)Test the Agent
from weather_agent import create_weather_agent
agent = create_weather_agent()
# Ask weather questions
response = agent.chat("What's the weather like in Chicago right now?")
print(response)
response = agent.chat("Will it rain in Austin this weekend?")
print(response)
response = agent.chat("Should I bring a jacket to Seattle tomorrow?")
print(response)Example Queries
The agent can handle natural language questions like:
"What's the temperature in Los Angeles?"
"Will it rain in Seattle tomorrow?"
"Should I bring an umbrella to Chicago this weekend?"
"Give me a 5-day forecast for New York"
"What's the weather like in Austin compared to Dallas?"
"Is it going to be hot in Phoenix next week?"
Weather Data Source
This implementation uses Open-Meteo:
✓ Free, no API key required
✓ ~10,000 calls/day for non-commercial use
✓ Current conditions + 16-day forecasts
✓ Global coverage
✓ Temperature, precipitation, wind, humidity, sunrise/sunset
Extending
Add More Tools
To add new weather-related tools:
Add a function to
weather_broker.pyto fetch the dataDecorate a new tool function in
weather_mcp_server.pywith@mcp.toolUpdate the agent instructions to describe when to use the new tool
Switch to a Different Weather API
To use a different weather API:
Replace the API calls in
weather_broker.pyIf the API requires authentication, add secret management
Update
app.yamlwith any needed environment variablesKeep the same function signatures so the MCP tools don't change
License
This is a learning project for educational purposes.
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-qualityCmaintenanceProvides real-time weather forecasts, current conditions, and smart umbrella recommendations through MCP tools, backed by the Open-Meteo API.
- Flicense-qualityBmaintenanceProvides current weather, multi-day forecasts, and umbrella recommendations through natural language queries, backed by the Open-Meteo API.
- Flicense-qualityCmaintenanceProvides real-time weather data, forecasts, and explainable predictions (umbrella, travel, city comparisons) via natural language, powered by Open-Meteo.
- Flicense-qualityCmaintenanceProvides current weather, multi-day forecasts, and umbrella recommendations through natural language queries, using the Open-Meteo API with no API key required.
Related MCP Connectors
Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.
US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
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/Guilherme-Garcia/MCP-weather'
If you have feedback or need assistance with the MCP directory API, please join our Discord server