Skip to main content
Glama

Weather MCP

Open-Meteo の気象データを提供し、MCP Apps を通じてインタラクティブな天気ダッシュボードを描画する FastMCP サーバーです。

Weather MCP ダッシュボード

特徴

  • 都市名または地名による場所の検索

  • 現在の天気と最大16日分の予報の取得

  • 摂氏と華氏の切り替え

  • 天気の説明と気象記号の表示

  • 場所と予報のレスポンスを5分間キャッシュ

  • 対応する MCP ホスト内でダッシュボードを直接描画

Related MCP server: bridgemcp-server-weather

必要条件

  • Python 3.14+

  • uv

  • インタラクティブダッシュボードに対応した MCP Apps 対応の MCP ホスト

セットアップ

プロジェクトの依存関係をインストールします:

uv sync

通常の非商用の Open-Meteo 利用には天気 API キーは不要です。

サーバーの実行

デフォルトの stdio トランスポートでサーバーを実行します:

uv run python main.py

登録済みツールを確認します:

uv run fastmcp list main.py

ダッシュボードのプレビュー

FastMCP にはアプリツール用のローカルブラウザプレビューが含まれています:

uv run fastmcp dev apps main.py

表示されたローカル URL を開き、weather_dashboard を選択します。ダッシュボードでは別の場所の検索と温度単位の切り替えが可能です。

MCP ツール

search_locations

一致する場所を検索し、その座標、国、地域、タイムゾーンを返します。

get_weather

場所の現在の天気と日別予報を取得します。

引数:

  • location: 都市名または地名

  • forecast_days: 1〜16の予報日数

  • temperature_unit: celsius または fahrenheit

weather_dashboard

同じ天気引数でインタラクティブな天気ダッシュボードを開きます。

プロジェクト構成

main.py                         MCP server entry point
src/tools.py                    MCP tool registration and response shaping
src/services/weather_service.py Open-Meteo client and response cache
src/formatting.py               UI-friendly forecast formatting
src/dashboard.py                Prefab MCP App UI

データソース

天気データは Open-Meteo によって提供されており、複数の各国気象サービスの予報を統合しています。商用展開の前に Open-Meteo の利用規約とライセンス を確認してください。

Available Tools

3 tools
get_weatherC

Get current conditions and a daily forecast.

Inputs: location (required), forecast_days, temperature_unit. Returns: object

search_locationsC

Find weather locations matching a place name.

Inputs: query (required). Returns: result

weather_dashboardC

Show an interactive weather dashboard with location and unit controls.

Inputs: location (required), forecast_days, temperature_unit.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct purpose: location search, weather data retrieval, and an interactive dashboard. No overlap or ambiguity in their functions.

    Naming Consistency4/5

    Two tools follow the verb_noun pattern (search_locations, get_weather), but weather_dashboard breaks the pattern by leading with a noun. This is a minor deviation that doesn't cause confusion.

    Tool Count4/5

    Three tools is lean but appropriately scoped for a weather server. It covers the essential workflows without unnecessary bloat.

    Completeness4/5

    The core workflow of searching locations and getting weather is covered. Missing advanced features like alerts or historical data, but these are not critical for a basic weather service.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time weather updates and city geocoding by integrating the Nominatim and Open-Meteo APIs. It enables users to retrieve current weather conditions for any location through natural language queries in MCP-compatible clients.
      ISC
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides weather data including current conditions, forecasts, and summaries via Open-Meteo with no API key required, enabling natural language queries through an MCP interface.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for worldwide weather data, using high-resolution GeoSphere Austria data for the Alpine region and Open-Meteo elsewhere. Provides current conditions, hourly forecasts, and daily outlooks with compact emoji-markdown output.
      4
      200 PyPI
      1
      MIT