Weather MCP Server

by isdaniel
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides weather information through the Open-Meteo API, allowing users to get current weather conditions for specified cities.

天気MCPサーバー

Open-Meteo API を使用して天気情報を提供するモデルコンテキストプロトコル (MCP) サーバー。

特徴

  • 指定された都市の現在の天気情報を取得します。

インストール

このサーバーは、 cline_mcp_settings.jsonファイルに構成を追加することで手動でインストールできるように設計されています。

  1. cline_mcp_settings.jsonファイルのmcpServersオブジェクトに次のエントリを追加します。
{ "mcpServers": { "weather": { "command": "python", "args": [ "mcp_weather_server.py" ], "disabled": false, "autoApprove": [] } } }
  1. cline_mcp_settings.jsonファイルを保存します。

構成

このサーバーはAPIキーを必要としません。無料のオープンソースであるOpen-Meteo APIを使用しています。

使用法

このサーバーは、 get_weatherという単一のツールを提供します。

get_weather

指定された都市の現在の天気情報を取得します。

パラメータ:

  • city (文字列、必須): 都市の名前。

例:

台北の天気を取得するには、次のようなツールを使用します。

<use_mcp_tool> <server_name>weather</server_name> <tool_name>get_weather</tool_name> <arguments> { "city": "Taipei" } </arguments> </use_mcp_tool>

Pipのインストールと使用方法

このパッケージは pip を使用してインストールできます。

pip install mcp_weather_server

インストール後、 mcp_weather_serverコマンドライン ツールを使用できます。

mcp_weather_server --city "Your City"

"Your City"を、天気情報を取得したい都市に置き換えます。

-
security - not tested
A
license - permissive license
-
quality - not tested

API キーを必要とせず、Open-Meteo API を使用して指定された都市の現在の天気情報を取得するモデル コンテキスト プロトコル サーバー。

  1. Features
    1. Installation
      1. Configuration
        1. Usage
          1. get_weather
        2. Pip Installation and Usage
          ID: d2mbytzdsh