Skip to main content
Glama
Weather MCP Server

Weather MCP Server

by Yaseen-md

Weather MCP Server

CI License: MIT

Open-Meteo API を使用して都市名に基づくリアルタイムの天気予報を提供する、標準の Model Context Protocol (MCP) サーバーです。

特徴

  • ジオコーディング: 都市名を地理座標(緯度・経度)に自動変換します

  • リアルタイム天気: 現在の気温、風速、天気コードを取得します

  • MCP 統合: Claude Desktop などの MCP クライアントと完全互換です

  • API キー不要: 無料のオープンソースである Open-Meteo API を使用するため、登録は不要です!

Related MCP server: weather_mcp_server

前提条件

  • Node.js 18.x 以上

  • npm または yarn

インストール

  1. リポジトリをクローンします:

git clone https://github.com/Yaseen-md/weather-mcp-server.git
cd weather-mcp-server
  1. 依存関係をインストールします:

npm install
  1. サーバーをビルドします:

npm run build

開発

ビルドせずにサーバーを直接実行します:

npm run dev

Claude Desktop との統合

この天気サーバーを Claude Desktop で使用するには、claude_desktop_config.json ファイルを設定する必要があります。

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

次の設定を追加します:

{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": [
        "C:/path/to/your/weather-mcp-server/build/index.js"
      ]
    }
  }
}

(パスは、ビルドした index.js ファイルへの実際の絶対パスに置き換えてください。)

利用可能なツール

get_weather

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

入力パラメータ:

  • city (文字列): 都市名(例:「Delhi」「Tokyo」「London」「San Francisco」)

戻り値: 摂氏での気温、風速、天気コード。

ライセンス

このプロジェクトは MIT ライセンス の下で提供されています。

Available Tools

1 tool
get_weatherA

Get current weather for a given city

Inputs: city (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion between tools. The tool's purpose is clear and distinct by default.

    Naming Consistency5/5

    The tool name follows a consistent verb_noun pattern (get_weather). With a single tool, there are no naming inconsistencies to evaluate.

    Tool Count3/5

    One tool feels thin for a weather server, which typically offers multiple data types like forecasts and alerts. However, it is borderline given the narrow 'current weather' scope.

    Completeness2/5

    The server only covers current conditions, missing obvious weather domain features such as forecasts, historical data, or alerts. This significantly limits its usefulness for common weather queries.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers