mcp-meteoblue
mcp-meteoblue
JavaScript で書かれた meteoblue Weather API 用の MCP サーバーです。MCP クライアントから、場所の検索、Free Weather API で利用可能なパッケージを使った予報の取得、予報メテオグラム画像の要求を行うことができます。
ツール
search_locationsは、meteoblue Location Search を使用して都市、郵便番号、IATA/ICAO 空港コードを解決します。get_forecastは、地名または座標を受け取り、予報 JSON を返します。デフォルトでは現在、1 時間ごと、1 日ごとの天気を取得します。get_forecast_imageは、地名または座標を受け取り、予報画像を MCP クライアントへ直接返します。
予報ツールや画像ツールに渡す地名は、常に公式の meteoblue Location Search API を通じて解決されます。予報パッケージの入力は、Free Weather API ドキュメントに記載されているパッケージに限定されます。
[!NOTE] 現在の meteoblue Free Weather API ドキュメントによると、画像には上位のアクセスレベルが必要です。画像ツールは Image API の権限を保有するキー向けに含まれており、それ以外の場合は明確な認可エラーを返します。
Related MCP server: mcp-weather
要件
Node.js 20 以降
キーは非公開にしてください。このサーバーは METEOBLUE_API_KEY からキーを読み取ります。キーがパッケージや MCP ツールの引数に含まれることはありません。
npm から実行する
この stdio サーバーを MCP クライアント設定に追加します。
{
"mcpServers": {
"meteoblue": {
"command": "npx",
"args": ["-y", "mcp-meteoblue"],
"env": {
"METEOBLUE_API_KEY": "your_api_key_here"
}
}
}
}または、直接実行します。
METEOBLUE_API_KEY=your_api_key_here npx -y mcp-meteoblueこのサーバーは stdio を使用するため、MCP クライアントを待機している間は意図的に通常のターミナル出力を行いません。
Docker
イメージをローカルでビルドします。
docker build -t mcp-meteoblue .MCP クライアントに Docker ベースの stdio サーバーを設定します。
{
"mcpServers": {
"meteoblue": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--env",
"METEOBLUE_API_KEY",
"mcp-meteoblue"
],
"env": {
"METEOBLUE_API_KEY": "your_api_key_here"
}
}
}
}コンテナは権限のない node ユーザーとして実行されます。MCP 通信は stdio を使用するため、-i で標準入力を開いたままにしてください。
ローカル開発
npm install
npm test
METEOBLUE_API_KEY=your_api_key_here npm startMCP クライアントを node /absolute/path/to/mcp-meteoblue/src/index.js に向け、そのクライアントの設定で環境変数を設定してください。
リリース
GitHub Actions は、すべてのプッシュとプルリクエストについて、Node.js 20、22、24、26 でテストスイートを実行し、npm の tarball を検証します。Dependabot は毎週、npm と GitHub Actions の依存関係をチェックします。
v* 形式の Git タグをプッシュすると .github/workflows/publish.yml が実行されます。このワークフローは npm のトラステッドパブリッシング(OIDC)を使用し、provenance を自動的に添付します。トラステッドパブリッシャーの設定は次のとおりです。
GitHub 所有者:
unixfoxリポジトリ:
mcp-meteoblueワークフロー:
publish.yml環境:
npm
トラステッドパブリッシングを設定している場合、npm トークンは GitHub に保存されません。
API スコープ
このサーバーが呼び出すのは次のものだけです。
https://www.meteoblue.com/{language}/server/search/query3https://my.meteoblue.com/packages/{packages}https://my.meteoblue.com/images/{forecast-image-type}
meteoblue の History、Dataset、Maps、Measurements、その他の API は公開しません。
ライセンス
MIT
Available Tools
3 toolsget_forecastGet meteoblue weather forecastA
Get meteoblue forecast JSON by place name or coordinates. Place names are resolved through the Location Search API. Only packages documented for the Free Weather API are accepted.
Inputs: language, latitude, location, packages, +9 more.
get_forecast_imageGet meteoblue forecast imageA
Generate a meteoblue forecast meteogram by place name or coordinates. Returns the PNG directly. Image access depends on the API key's meteoblue entitlement.
Inputs: type, options, language, latitude, +4 more.
search_locationsSearch meteoblue locationsB
Resolve a city, place, postal code, IATA code, or ICAO code to coordinates and elevation using the meteoblue Location Search API.
Inputs: query (required), page, limit, language, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: location resolution, raw forecast data, and forecast image generation. The two forecast tools are differentiated by output format (JSON vs PNG), so there is no practical ambiguity.
All tool names follow a consistent verb_noun pattern: search_locations, get_forecast, get_forecast_image. The naming clearly communicates both the action and the target.
Three tools is well-scoped for a small weather API server: one for geocoding, one for data, one for imagery. Each tool serves a distinct step in the core location-to-forecast workflow.
The surface covers the essential meteorology workflow: resolve a location, retrieve forecast data, and generate a forecast image. A minor gap is the lack of separate current-conditions or historical-weather tools, but forecasts likely include current data and the core purpose is well covered.
Maintenance
Related MCP Connectors
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
Unofficial OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
NOAA and ECMWF weather forecast MCP for discovery, validation, and GribStream OAuth queries.
WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables MCP clients like Kiro and Claude to access current weather conditions and forecasts for any location using the OpenWeatherMap API.-
- AlicenseNot gradedqualityDmaintenanceEnables to interact with comprehensive weather data through the MCP protocol, including current conditions, multi-day forecasts, hourly forecasts, and geocoding.MIT
- AlicenseNot gradedqualityDmaintenanceConnects MCP clients to Weathersight weather data APIs, enabling queries about historical observations, typical climate, extremes, degree days, and long-term trends for locations worldwide.MIT
- FlicenseAqualityCmaintenanceEnables MCP clients to retrieve current conditions, multi-day forecasts, and historical weather data for any city using plain city names.3-