MCP.so
ログイン

Weather Server (MCP)

@Kavinduprabasara

Weather Server (MCP) について

概要はまだありません

基本情報

カテゴリ

メディアとデザイン

ランタイム

python

トランスポート

stdio

公開者

Kavinduprabasara

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

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

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

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.

コメント

「メディアとデザイン」の他のコンテンツ