mcp-server

Lakindu199854/mcp-server

3.1

If you are the rightful owner of 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.

The Weather MCP Server provides weather alerts and forecasts using the National Weather Service API.

🌦️ Weather MCP Server

A simple Model Context Protocol (MCP) server that provides weather alerts and forecasts using the National Weather Service API.


🚀 Quickstart

Follow the official MCP Quickstart guide for background details.


1️⃣ Install uv

uv is a fast Python package and environment manager by Astral.

pip install uv

### 2️⃣ Create and set up the project

# Create a new directory for the project
uv init weather
cd weather

# Create a virtual environment
uv venv

# Activate the virtual environment (PowerShell)
.\.venv\Scripts\Activate.ps1

### 3️⃣ Install dependencies

uv add mcp[cli] httpx

### 4️⃣ Create the server file
# Create the main Python file
New-Item weather.py

### 5️⃣ Add the server to Claude Desktop config
%APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "weather": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\weather",
        "run",
        "weather.py"
      ],
      "env": {
        "PYTHONIOENCODING": "utf-8",
        "PYTHONUNBUFFERED": "1"
      }
    }
  }
}

### 6️⃣ Use it in Claude Desktop
get_alerts(state="CA")
get_forecast(latitude=37.7749, longitude=-122.4194)