Overview
What is MCP Weather Server?
MCP Weather Server is a weather server built with the Python MCP SDK. It exposes two tools—get_alerts and get_forecast—that integrate with weather data and can be used with MCP hosts such as Claude Desktop.
How to use MCP Weather Server?
Install uv and set up a Python virtual environment. Add the dependencies (mcp[cli] and httpx), then run uv run weather.py. To connect with Claude Desktop, add the server configuration (with the absolute path to the weather folder) to the claude_desktop_config.json file and restart the app.
Key features of MCP Weather Server
- Exposes
get_alertstool for weather alerts - Exposes
get_forecasttool for weather forecasts - Built with the Python MCP SDK
- Uses UV for project and dependency management
- Configurable for connection with Claude Desktop
Use cases of MCP Weather Server
- Retrieve weather alerts for a specified region
- Obtain weather forecasts for a given location
- Integrate real-time weather data into MCP‑compatible AI assistants
FAQ from MCP Weather Server
What tools does MCP Weather Server provide?
It provides the get_alerts and get_forecast tools.
How do I run the MCP Weather Server?
Run uv run weather.py after setting up the Python environment and installing dependencies.
How do I connect MCP Weather Server to Claude Desktop?
Add the server configuration under the mcpServers key in claude_desktop_config.json, using uv --directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/weather run weather.py, then restart Claude Desktop.
What dependencies does the server require?
The server requires mcp[cli] and httpx.
What runtime environment is needed?
Python with the uv package manager is required.