Weather MCP Server
天気 MCP サーバー
get_weather ツールを公開する Model Context Protocol (MCP) サーバーの例です。MCP対応のAIクライアントであれば、都市名から現在の気温を取得できます。
仕組み
Open-Meteo ジオコーディング API を介して都市名を座標に変換します
Open-Meteo 予報 API から現在の気温を取得します
APIキーは不要です。どちらのAPIも無料かつオープンです。
Related MCP server: MCP Weather Server
ツール
ツール | 説明 | 入力 |
| 都市の現在の気温を取得する |
|
レスポンス例: San Francisco: 14.2°C
セットアップ
npm installサーバーの実行
node weather-server.jsサーバーはMCPプロトコルを使用して stdio 経由で通信します。
Claude Code への接続
このリポジトリには、Claude Code が自動的に読み込む .mcp.json ファイルが含まれています。このディレクトリを Claude Code で開くと、weather-server MCP サーバーが登録され、get_weather ツールが利用可能になります。
手動で接続するには、MCPクライアントの設定に以下を追加してください:
{
"mcpServers": {
"weather-server": {
"command": "node",
"args": ["./weather-server.js"]
}
}
}要件
Node.js 18以上 (ネイティブの
fetchが必要)外部APIキーは不要
This server cannot be deployed
Maintenance
Related MCP Connectors
Current temperature for a city via Open-Meteo. Query discarded after the call.
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…
Weather MCP — wraps Open-Meteo API (free, no auth)
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides weather information using Open-Meteo API without requiring an API key. Supports weather queries by city name or coordinates with customizable temperature units.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents like GitHub Copilot to retrieve real-time weather data for any city using the Open-Meteo API, no API key required.9-
- FlicenseNot gradedqualityDmaintenanceEnables 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.16 npm-
- AlicenseAqualityCmaintenanceEnables real-time weather forecasts for any city using the Open-Meteo API, with automatic geocoding and no API keys required.19 npmMIT