Skip to main content
Glama

Weather MCP

by kaisumi

Weather MCP

Model Context Protocol (MCP)を使用した天気予報アプリケーション

概要

このアプリケーションは、Open-Meteo APIを使用して天気予報データを取得・表示するMCPサーバーです。MCPプロトコルを通じて、LLMアプリケーションから天気情報にアクセスすることができます。

機能

  • 現在の天気情報の表示
  • 3日間の天気予報の表示
  • 位置情報に基づく天気情報の取得
  • MCPプロトコルを通じたアクセス

セットアップ

  1. 依存関係のインストール:
pip install -e .
  1. 環境変数の設定: .envファイルを作成し、必要な環境変数を設定してください。
MCP_API_KEY=your_api_key_here MCP_BASE_URL=http://localhost:8000
  1. MCPサーバーの起動:
python -m app.server
  1. クライアントの実行:
python -m app.client

MCPツール

get_weather

指定した都市の現在の天気情報と3日間の予報を取得します。

パラメータ:

  • city: 天気情報を取得する都市名(例: 東京、New York)

レスポンス例:

{ "location": { "name": "東京", "country": "日本", "latitude": 35.6895, "longitude": 139.6917, "timezone": "Asia/Tokyo" }, "current": { "temperature": 22.5, "feels_like": 23.1, "humidity": 65, "wind_speed": 3.2, "wind_direction": 180, "precipitation": 0, "condition": "晴れ", "weather_code": 1 }, "forecast": [ { "date": "2023-04-10", "max_temp": 24.5, "min_temp": 15.2, "precipitation": 0, "condition": "晴れ", "sunrise": "05:30", "sunset": "18:15" }, ... ] }

ライセンス

MIT

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A Model Context Protocol server that provides current weather information and 3-day forecasts for specified cities using the Open-Meteo API.

  1. 概要
    1. 機能
      1. セットアップ
        1. MCPツール
          1. get_weather
        2. ライセンス

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that retrieves current weather information for specified cities using the Open-Meteo API, requiring no API key.
            Last updated 25 days ago
            3
            4
            Python
            Apache 2.0
            • Linux
            • Apple
          • -
            security
            F
            license
            -
            quality
            A production-ready Model Context Protocol server that provides weather data from OpenWeatherMap API, allowing users to query current weather by city name or coordinates with support for different temperature units.
            Last updated 2 months ago
            Python
            • Apple
            • Linux
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that provides comprehensive weather data and forecasts through the OpenWeatherMap API, enabling AI assistants to access real-time weather information, forecasts, air quality data, and location services.
            Last updated a month ago
            11
            159
            JavaScript
            MIT License
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that provides weather information and forecasts based on user location or address input.
            Last updated 19 days ago
            14
            TypeScript
            MIT License
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/kaisumi/weather-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server