Skip to main content
Glama
isdaniel

Weather MCP Server

by isdaniel

鍛冶屋のバッジ PyPI - ダウンロード PyPI - バージョン

天気MCPサーバー

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

特徴

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

Related MCP server: MCP Weather Server

インストール

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

pip install mcp_weather_server

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

  1. cline_mcp_settings.jsonファイルのmcpServersオブジェクトに次のエントリを追加します。

{
  "mcpServers": {
    "weather": {
      "command": "python",
      "args": [
        "-m",
        "mcp_weather_server"
      ],
      "disabled": false,
      "autoApprove": []
    }
  }
}
  1. cline_mcp_settings.jsonファイルを保存します。

構成

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

使用法

このサーバーは、 get_weatherget_weather_by_datetime_rangeget_current_datetimeなどのツールを提供します。

get_weather

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

パラメータ:

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

例:

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

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

get_weather_by_datetime_range

開始日から終了日までの間の指定された都市の天気情報を取得します。

パラメータ:

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

  • start_date (文字列、必須): YYYY-MM-DD (ISO 8601) 形式での開始日。

  • end_date (文字列、必須): YYYY-MM-DD (ISO 8601) 形式の終了日。

例:

2024 年 1 月 1 日から 2024 年 1 月 7 日までのロンドンの天気を取得するには、次のようなツールを使用します。

<use_mcp_tool>
<server_name>weather</server_name>
<tool_name>get_weather_by_datetime_range</tool_name>
<arguments>
{
  "city": "London",
  "start_date": "2024-01-01",
  "end_date": "2024-01-07"
}
</arguments>
</use_mcp_tool>

get_current_datetime

指定されたタイムゾーンの現在の時刻を取得します。

パラメータ:

  • timezone_name (文字列、必須): IANAタイムゾーン名(例: 'America/New_York'、'Europe/London')。ユーザーがタイムゾーンを指定しない場合は、UTCタイムゾーンを使用します。

例:

ニューヨークの現在の時刻を取得するには、次のようなツールを使用します。

<use_mcp_tool>
<server_name>weather</server_name>
<tool_name>get_current_datetime</tool_name>
<arguments>
{
  "timezone_name": "America/New_York"
}
</arguments>
</use_mcp_tool>

開発者向け

Python を実行する前に作業ディレクトリを変更する

python -m mcp_weather_server

または、どこから実行しても Python がパッケージを見つけられるようにしたい場合は、PYTHONPATH を設定できます。

set PYTHONPATH=C:\xxx\mcp_weather_server\src
python -m mcp_weather_server
Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
1wRelease cycle
5Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    A Model Context Protocol server that provides current weather information and 3-day forecasts for specified cities using the Open-Meteo API.
    1
  • F
    license
    -
    quality
    D
    maintenance
    A Model Context Protocol server that enables natural language weather queries for global cities, integrating with OpenWeather API to provide real-time weather information in an easy-to-read format.
    1
  • A
    license
    B
    quality
    D
    maintenance
    A simple Model Context Protocol server that provides real-time weather data to AI agents like GitHub Copilot, allowing users to get current weather information for any city through natural language queries.
    2
    31
    97
    MIT

View all related MCP servers

Related MCP Connectors

  • Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • A Model Context Protocol server for Wix AI tools

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/isdaniel/mcp_weather_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server