Weather MCP Server
Weather MCP Server
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
インストール
リポジトリをクローンします:
git clone https://github.com/Yaseen-md/weather-mcp-server.git
cd weather-mcp-server依存関係をインストールします:
npm installサーバーをビルドします:
npm run build開発
ビルドせずにサーバーを直接実行します:
npm run devClaude 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 toolget_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
Scored across 1 tool
With only one tool, there is no possibility of confusion between tools. The tool's purpose is clear and distinct by default.
The tool name follows a consistent verb_noun pattern (get_weather). With a single tool, there are no naming inconsistencies to evaluate.
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.
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
Related MCP Connectors
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Get current weather for any city and create images from your prompts. Streamline planning, reports…
Free, keyless real-time weather and 7-day forecasts for any city worldwide.
Weather forecast for any city, UV index, sunrise and sunset, pollen and air quality. Free, no key.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents like GitHub Copilot to retrieve real-time weather data for any city using the Open-Meteo API, no API key required.10ISC
- FlicenseNot gradedqualityDmaintenanceProvides real-time and historical weather data for any city worldwide, including forecasts, air quality, and marine conditions, using the free Open-Meteo API.-
- FlicenseAqualityCmaintenanceEnables querying current weather, 7-day forecast, UV index, and air quality for any city using the free Open-Meteo API, without requiring an API key.3-
- AlicenseNot gradedqualityDmaintenanceProvides live weather data (current conditions, forecasts) and city geocoding through Open-Meteo API, enabling AI assistants to answer weather queries without an API key.MIT