About MCP Weather Server
MCP Weather Server is a Python MCP server that provides weather tools. It is intended for MCP clients that need weather alerts and forecasts.
Key features
- 01Retrieve weather alerts
- 02Retrieve weather forecasts
Use cases
- 01Check weather alerts from an MCP client
- 02Request a weather forecast from an MCP client
MCP support
Exposes the get_alerts and get_forecast tools to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Weather Server
Description
This is a weather MCP Server created with with the Python MCP SDK.
Tools
Tools exposed:
- get_alerts
- get_forecast
Running the MCP server with UV
First, let’s install uv and set up our Python project and environment:
Mac/linux: curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Second, Create virtual environment and activate it:
uv venv.venv\Scripts\activate
if you need to add the dependencies manually: uv add mcp[cli] httpx
Running the MCP server
run: uv run weather.py
Connecting MCP server with Claude Desktop Host:
-
Open the configuration file with an text editor: Mac/Linux:
code ~/Library/Application\ Support/Claude/claude_desktop_config.jsonWindows:code $env:AppData\Claude\claude_desktop_config.json -
Add the server in the mcpServers key:
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather",
"run",
"weather.py"
]
}
}
}
Make sure to update the absolute path to your weather MCP server.
Save the file, and restart Claude for Desktop App and you should be able to see the weather tool in your tools list.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.