MCP.so
ログイン

Weather MCP Server

@matrupriya2048

基本情報

カテゴリ

メディアとデザイン

ライセンス

MIT license

トランスポート

stdio

作者

matrupriya2048

Weather MCP Server について

概要はまだありません

Weather MCP Server の設定

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

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

Weather MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは 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.

よくある質問

1

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.

2

What data source does Weather MCP Server use?

It fetches data from the National Weather Service API.

3

What are the dependencies for Weather MCP Server?

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

4

How do I run Weather MCP Server?

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

5

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.

コメント

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