MCP.so
ログイン

Weather MCP Server

@matrupriya2048

Weather MCP Server について

概要はまだありません

基本情報

カテゴリ

メディアとデザイン

ライセンス

MIT license

ランタイム

python

トランスポート

stdio

公開者

matrupriya2048

設定

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

{
  "mcpServers": {
    "mcp-server-weather-matrupriya2048": {
      "command": "uv",
      "args": [
        "run",
        "weather.py"
      ]
    }
  }
}

ツール

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

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

概要

What is Weather MCP Server?

This MCP server fetches weather data from the National Weather Service API. It provides two tools for getting weather alerts and short-term forecasts for US locations.

How to use Weather MCP Server?

Install dependencies (Python 3.7+, httpx, mcp[cli], requests), then run the server with uv run weather.py. Configure your MCP client with the provided JSON snippet pointing to the script.

Key features of Weather MCP Server

  • Fetches active weather alerts by US state code.
  • Returns short-term forecasts by latitude/longitude.
  • Uses the National Weather Service API.
  • Simple two‑tool interface over standard I/O.
  • Lightweight Python implementation with httpx.

Use cases of Weather MCP Server

  • Get current weather alerts for a specific US state.
  • Retrieve a short‑term forecast for a given GPS coordinate.
  • Integrate real‑time NWS weather data into an MCP‑enabled assistant or tool.

FAQ from Weather MCP Server

What tools does Weather MCP Server provide?

It provides get_alerts(state) for active weather alerts and get_forecast(latitude, longitude) for short‑term forecasts.

What data source does Weather MCP Server use?

It fetches data from the National Weather Service API.

What are the dependencies for Weather MCP Server?

Python 3.7+, the httpx library, and the MCP framework with CLI support (mcp[cli]).

How do I run Weather MCP Server?

Run the server using the command uv run weather.py; it communicates via standard I/O.

How do I configure an MCP client for Weather MCP Server?

Add a JSON entry to your client’s configuration with the path to uv and the script directory, as shown in the README’s example.

コメント

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