MCP
bittush8789/MCPUpdated 25 days ago00

Remote#weather data#National Weather Service#MCP serverLicense: NoneLanguage: Python

Weather MCP Server

This MCP server fetches weather data from the National Weather Service API. It provides two tools:

  • get_alerts(state: str)
    Returns active weather alerts for a given US state (using its two-letter code).

  • get_forecast(latitude: float, longitude: float)
    Returns a short-term weather forecast for a specified location.

Requirements

  • Python 3.7+
  • httpx
  • MCP Framework mcp[cli]

so install, run:

uv add mcp[cli] httpx requests

Usage

Run the server with:

uv run weather.py

The server uses standard I/O for communication.

MCP Client Configuration

configuration snippet for your MCP client (config.json):

{
  "mcpServers": {
    "weather": {
      "command": "C:/path/to/your/uv",
      "args": [
        "--directory",
        "C:/path/to/your/project",
        "run",
        "weather.py"
      ]
    }
  }
}

Installation

Claude
Claude
Cursor
Cursor
Windsurf
Windsurf
Cline
Cline
Witsy
Witsy
Spin AI
Spin AI
Run locally with the following command:
Terminal
Add the following config to your client:
JSON
{
  "mcpServers": {
    "weather": {
      "env": {},
      "args": [
        "--directory",
        "C:/path/to/your/project",
        "run",
        "weather.py"
      ],
      "command": "uv"
    }
  }
}

MCPLink

Seamless access to top MCP servers powering the future of AI integration.

© 2025 MCPLink. All rights reserved.
discordgithubdiscord