Weather MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Weather Intelligence Assistant
An AI-powered weather assistant built with a standalone Python FastMCP server backed by Open-Meteo (via async HTTPX) and a Google ADK (LlmAgent + McpToolset) client application communicating over Streamable HTTP.
Key Features
Decoupled MCP Architecture:
weather_mcp_serverexposes weather capabilities independently over Streamable HTTP;weather_adk_agentconsumes them solely throughMcpToolsetand never calls Open-Meteo directly.Dynamic Geocoding & Disambiguation: Resolves city names dynamically via Open-Meteo Geocoding (no hardcoded coordinates) and surfaces multiple matching locations instead of silently guessing.
Current, Daily & Hourly Weather: Supports current conditions, 1–7 day daily forecasts, and 1–168 hour hourly forecasts using
timezone=autoand human-readable WMO weather code descriptions.Resilient Async HTTP Layer: Uses
httpx.AsyncClientwith explicit 10s timeouts, bounded exponential backoff on transient failures (429, 5xx, timeouts), 15-minute geocoding TTL cache, andNone-vs-0preservation.Safe Error Handling: Masks internal exception details (
mask_error_details=True) while returning clear, actionableToolErrormessages for invalid bounds, unknown cities, or ambiguous locations.Cross-Agent Repository Instructions: Includes
AGENTS.md,.github/copilot-instructions.md, scoped.github/instructions/, and.agents/skills/for Antigravity, GitHub Copilot, and OpenCode.
Related MCP server: MCP Weather Server
Architecture
User Question
│
▼
Google ADK LlmAgent (Gemini)
weather_adk_agent/
│
▼
McpToolset (StreamableHTTPConnectionParams)
│ Streamable HTTP (http://localhost:8080/mcp)
▼
Weather MCP Server (FastMCP)
weather_mcp_server/
├── search_location
├── get_current_weather
├── get_weather_forecast
└── get_hourly_forecast
│
▼
Async Service Layer (HTTPX + WMO mapping + TTL cache)
├── Open-Meteo Geocoding API
└── Open-Meteo Forecast APIProject Structure
weather-intelligence/
├── weather_mcp_server/
│ ├── __init__.py
│ ├── server.py # FastMCP initialization & Streamable HTTP entrypoint
│ ├── tools/
│ │ ├── _common.py # Shared error translation & read-only annotations
│ │ ├── location.py # search_location tool
│ │ ├── current_weather.py # get_current_weather tool
│ │ └── forecast.py # get_weather_forecast & get_hourly_forecast tools
│ ├── services/
│ │ ├── errors.py # Domain exception hierarchy
│ │ ├── http_client.py # Async HTTPX client with timeout & bounded retries
│ │ ├── geocoding.py # Open-Meteo Geocoding client, cache & disambiguation
│ │ └── weather_api.py # Current, daily & hourly normalization
│ └── utils/
│ └── weather_codes.py # WMO weather code -> readable condition mapping
├── weather_adk_agent/
│ ├── __init__.py # Exports agent module for ADK CLI/Web discovery
│ ├── agent.py # LlmAgent + McpToolset (StreamableHTTPConnectionParams)
│ └── prompts.py # System instructions separated from agent wiring
├── tests/
│ ├── test_location.py # Geocoding, disambiguation & WMO code unit tests
│ ├── test_current_weather.py # Current weather normalization & null-vs-zero tests
│ ├── test_forecast.py # Daily/hourly forecast & bounds validation tests
│ ├── test_mcp_server.py # FastMCP in-memory Client tool & error tests
│ └── test_adk_agent.py # ADK root_agent & McpToolset wiring tests
├── .agents/skills/ # Installed skills.sh & project-local Agent Skills
├── .github/ # VS Code Copilot instructions & scoped rules
├── AGENTS.md # Universal instructions for Antigravity, Copilot & OpenCode
├── .env.example # Environment variable template (no real secrets)
├── pyproject.toml # uv project manifest & pytest config
├── uv.lock # Locked dependencies
└── LICENSE # MIT LicenseFor the full design roadmap, see weather_mcp_google_adk_integration_plan.md.
MCP Tools Reference
All four tools are annotated as read-only (readOnlyHint=True, destructiveHint=False, idempotentHint=True, openWorldHint=True).
Tool | Parameters | Validation / Bounds | Returns |
|
| Non-empty |
|
|
| Non-empty |
|
|
|
|
|
|
|
|
|
{
"location": "Bengaluru",
"country": "India",
"temperature": 27.4,
"feels_like": 27.5,
"humidity": 45,
"wind_speed": 8.8,
"precipitation": 0.0,
"weather_condition": "Clear sky",
"timezone": "Asia/Kolkata",
"observed_at": "2026-11-28T16:30",
"admin1": "Karnataka",
"units": {
"temperature": "°C",
"feels_like": "°C",
"humidity": "%",
"wind_speed": "km/h",
"precipitation": "mm"
}
}Prerequisites & Installation
Python
>= 3.14uv package manager
A Gemini API key (
GOOGLE_API_KEY) for running the Google ADK agent (Open-Meteo public endpoints require no API key)
Clone and install dependencies:
git clone https://github.com/suryatc547/weather-mcp-google-adk.git cd weather-mcp-google-adk uv syncConfigure environment variables:
cp .env.example .envEdit
.envand set yourGOOGLE_API_KEY.
Environment Variables
Variable | Default | Purpose |
| — | Required by Gemini / Google ADK |
|
| Gemini model ID used by |
|
| Streamable HTTP URL consumed by |
|
| Open-Meteo Forecast API endpoint |
|
| Open-Meteo Geocoding API endpoint |
|
| Host interface bound by the FastMCP server |
|
| Port bound by the FastMCP server ( |
|
| Streamable HTTP mount path |
Running the Application
1. Start the Weather MCP Server
uv run python -m weather_mcp_server.serverThe server starts on http://localhost:8080/mcp using Streamable HTTP transport.
2. Test the MCP Server Independently (FastMCP CLI)
In a second terminal:
# List all registered tools
uv run python -m fastmcp.cli list http://localhost:8080/mcp --auth none
# Call tools directly
uv run python -m fastmcp.cli call http://localhost:8080/mcp search_location city=Bengaluru country=India --auth none
uv run python -m fastmcp.cli call http://localhost:8080/mcp get_current_weather city=Bengaluru country=India --auth none
uv run python -m fastmcp.cli call http://localhost:8080/mcp get_weather_forecast city=Chennai country=India days=5 --auth none
uv run python -m fastmcp.cli call http://localhost:8080/mcp get_hourly_forecast city=Mumbai country=India hours=12 --auth none3. Run the Google ADK Agent
With the MCP server still running in Terminal 1, launch the ADK CLI or Web UI in Terminal 2:
# Interactive terminal session
uv run python -m google.adk.cli run weather_adk_agent
# Browser developer UI
uv run python -m google.adk.cli web .Example prompts to try:
"What's the weather in Bengaluru right now?"
"Give me a 5-day forecast for Chennai."
"Will it rain in Mumbai over the next 12 hours?"
"Compare the current weather in Bengaluru and Hyderabad, India."
Windows note: If Windows Application Control (
os error 4551) blocks.venv\Scripts\*.exewrappers (adk,fastmcp,pytest), invoke them viauv run python -m ...as shown above.
Testing
Run the offline unit and in-memory FastMCP integration suite (uses mocked HTTPX transports so tests run deterministically without network calls):
uv run python -m pytest -vRun with coverage reporting:
uv run --with pytest-cov python -m pytest --cov=weather_mcp_server --cov=weather_adk_agent --cov-report=term-missing -vAI Coding Agent Support
This repository includes shared instructions and portable Agent Skills so Antigravity, VS Code Copilot, and OpenCode follow the same architecture and engineering rules automatically:
AGENTS.md — Universal instructions for Antigravity, OpenCode, and Copilot.
.github/copilot-instructions.md & .github/instructions/ — Repository-wide and path-scoped Copilot rules.
.agents/skills/ (tracked in skills-lock.json) —
adk-agent-builder,adk-debug,fastmcp-server,fastmcp-client-cli,mcp-builder,uv, and the project-specificweather-open-meteoskill.
License
This project is licensed under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
Global weather via MET Norway, pay-per-call in USDC on Base via x402.
1
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to fetch current weather conditions and forecasts for any city using the Open-Meteo API. Provides temperature, precipitation, and hourly forecast data through natural language queries.ISC
- AlicenseNot gradedqualityDmaintenanceProvides real-time weather information and multi-day forecasts using the Open-Meteo API through a robust, enterprise-grade architecture. It enables AI assistants to retrieve current conditions, 7-day forecasts, and contextual weather data for any location.MIT
- AlicenseAqualityBmaintenanceEnables AI agents to resolve place names into coordinates and fetch current conditions and multi-day or hourly forecasts, with units, local timezones, and WMO weather descriptions, without requiring an API key.3MIT
- AlicenseAqualityBmaintenanceEnables LLM clients to look up place coordinates, current conditions, daily and hourly forecasts, air quality indices, and archived historical weather through six narrowly scoped, schema-validated tools backed by the keyless Open-Meteo API. Responses are compactly shaped with unit annotations, WMO sky descriptions expanded inline, and TTL caching that keeps calls fast and well within free-tier limits.6MIT