Weather MCP
Weather MCP
A FastMCP server that provides weather data from Open-Meteo and renders an interactive weather dashboard through MCP Apps.

Features
Search locations by city or place name
Get current conditions and up to 16 forecast days
Switch between Celsius and Fahrenheit
Display weather descriptions and condition symbols
Cache location and forecast responses for five minutes
Render the dashboard directly inside compatible MCP hosts
Requirements
Python 3.14+
An MCP host with MCP Apps support for the interactive dashboard
Setup
Install the project dependencies:
uv syncNo weather API key is required for normal non-commercial Open-Meteo usage.
Run Tests
The test suite uses mocked HTTP responses and does not call the live weather API:
uv run pytestRun The Server
Run the server over the default stdio transport:
uv run python main.pyInspect the registered tools:
uv run fastmcp list main.pyPreview The Dashboard
FastMCP includes a local browser preview for app tools:
uv run fastmcp dev apps main.pyOpen the displayed local URL and select weather_dashboard. The dashboard supports searching for another location and switching temperature units.
MCP Tools
search_locations
Find matching locations and return their coordinates, country, region, and time zone.
get_weather
Get current weather and a daily forecast for a location.
Arguments:
location: City or place nameforecast_days: Number of forecast days from 1 to 16temperature_unit:celsiusorfahrenheit
weather_dashboard
Open the interactive weather dashboard with the same weather arguments.
Project Structure
main.py MCP server entry point
src/tools.py MCP tool registration and response shaping
src/services/weather_service.py Open-Meteo client and response cache
src/formatting.py UI-friendly forecast formatting
src/dashboard.py Prefab MCP App UIData Source
Weather data is provided by Open-Meteo, which combines forecasts from multiple national weather services. Review the Open-Meteo terms and licensing before commercial deployment.
License
This project is licensed under the MIT License.
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/abhirampai/weather-mcp-app'
If you have feedback or need assistance with the MCP directory API, please join our Discord server