MCP.so
Sign In

Weather Server (MCP)

@Kavinduprabasara

About Weather Server (MCP)

No overview available yet

Basic information

Category

Media & Design

Runtime

python

Transports

stdio

Publisher

Kavinduprabasara

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "mcp-server-one": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "server.py"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Weather Server (MCP)?

Weather Server (MCP) is a minimal async Python server that provides weather alerts and forecasts for US locations using the National Weather Service (NWS) API, built with FastMCP.

How to use Weather Server (MCP)?

Clone the repository, install dependencies with pip install -e ., then run either uv run --with mcp[cli] mcp run server.py or python server.py. It exposes two tools: get_alerts(state) for active alerts by state code, and get_forecast(latitude, longitude) for the local forecast.

Key features of Weather Server (MCP)

  • Get weather alerts for any US state by two-letter code.
  • Get weather forecasts for any latitude/longitude in the US.
  • Simple, async, and easy to extend.

Use cases of Weather Server (MCP)

  • Monitor active weather alerts for a specific US state.
  • Retrieve a point forecast for a given coordinate.
  • Integrate NWS data into MCP‑compatible clients or workflows.

FAQ from Weather Server (MCP)

What does Weather Server (MCP) do?

It provides two functions: one to return active weather alerts for a US state (e.g., CA, NY) and another to return the forecast for given latitude/longitude coordinates.

What are the runtime requirements?

Python 3.13+, along with the httpx, mcp, and FastMCP packages. uv is optional but recommended for running the server.

Where does the data come from?

All weather data is sourced from the National Weather Service (NWS) API. The server only works for US locations.

How do I run the server?

Use either uv run --with mcp[cli] mcp run server.py (with uv installed) or directly with python server.py.

What tools does the server expose?

Two tools: get_alerts(state) for active weather alerts and get_forecast(latitude, longitude) for the weather forecast.

Comments

More Media & Design MCP servers