Weather-MCP-Server

AbeTavarez/Weather-MCP-Server

3.2

If you are the rightful owner of Weather-MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This is a weather MCP Server created with the Python MCP SDK.

Tools
2
Resources
0
Prompts
0

MCP 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:

  1. uv venv
  2. .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:

  1. Open the configuration file with an text editor: Mac/Linux: code ~/Library/Application\ Support/Claude/claude_desktop_config.json Windows: code $env:AppData\Claude\claude_desktop_config.json

  2. 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.