Skip to main content
Glama

Weather MCP Server

by panzhenyao

天気MCPサーバー

これは、OpenWeatherMapのAPIを使用して気象データを取得するMCPサーバーです。MCP.soでホストできます。

特徴

  • あらゆる場所の現在の天気データ
  • 天気予報(最大5日間)
  • メートル法とヤードポンド法のサポート
  • stdio と REST トランスポートモードの両方と互換性があります
  • 簡単に導入できるDockerコンテナ化
  • MCP.soホスティング要件と互換性あり

前提条件

  • Node.js v18+
  • OpenWeatherMap API キー ( OpenWeatherMapで無料で取得できます)

はじめる

地域開発

  1. このリポジトリをクローンする
    git clone https://github.com/yourusername/weather-mcp-server.git cd weather-mcp-server
  2. 依存関係をインストールする
    npm install
  3. TypeScriptコードをビルドする
    npm run build
  4. サーバーをstdioモードで実行する(ローカルテスト用)
    WEATHER_API_KEY=your_api_key_here npm start

RESTモードで実行中

WEATHER_API_KEY=your_api_key_here mode=rest port=9593 endpoint=/rest npm start

ドッカー

  1. Dockerイメージをビルドする
    docker build -t mcp/weather-mcp-server .
  2. コンテナを実行する
    docker run -i --rm -e WEATHER_API_KEY=your_api_key_here mcp/weather-mcp-server

使用法

利用可能なツール

current_weather

特定の場所の現在の天気データを取得します。

パラメータ:

  • location (必須): 都市名または都市名 + 国コード(例:「ロンドン」、「パリ、FR」)
  • units (オプション):測定単位。オプション:「メートル法」(摂氏)または「帝国法」(華氏)。デフォルト:「メートル法」

リクエスト例:

{ "params": { "name": "current_weather", "arguments": { "location": "Tokyo,JP", "units": "metric" } } }
weather_forecast

特定の場所の天気予報を取得します。

パラメータ:

  • location (必須): 都市名または都市名 + 国コード(例:「ロンドン」、「パリ、FR」)
  • units (オプション):測定単位。オプション:「メートル法」(摂氏)または「帝国法」(華氏)。デフォルト:「メートル法」
  • days (オプション):予測日数。最大値は5。デフォルト:5

リクエスト例:

{ "params": { "name": "weather_forecast", "arguments": { "location": "New York,US", "units": "imperial", "days": 3 } } }

MCP.soでのホスティング

このサーバーを MCP.so でホストするには:

  1. リポジトリがMIT、Apache、または同様のライセンスでGitHubに公開されていることを確認する
  2. MCP サーバーを MCP.so に提出してレビューを受ける
  3. 承認されると、サーバーはMCP Playgroundで利用可能になります。

ライセンス

マサチューセッツ工科大学

接触

ご質問やサポートについては、GitHub で問題を開いてください。

-
security - not tested
A
license - permissive license
-
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.

OpenWeatherMap の API に接続して、世界中のさまざまな場所の現在の気象データと複数日の予報をさまざまな測定単位で提供する MCP サーバーです。

  1. 特徴
    1. 前提条件
      1. はじめる
        1. 地域開発
        2. RESTモードで実行中
        3. ドッカー
      2. 使用法
        1. 利用可能なツール
      3. MCP.soでのホスティング
        1. ライセンス
          1. 接触

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              This SSE-based MCP server allows users to connect and interact with National Weather Service APIs to retrieve weather alerts and forecasts.
              Last updated -
              90
              Python
            • -
              security
              F
              license
              -
              quality
              This is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service (NWS) API. Features Get weather alerts for a US state Get weather forecast for a specific location (using latitude and longitude)
              Last updated -
              Python
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              An MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.
              Last updated -
              1
              Python
              MIT License
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              An MCP server implementation that allows users to fetch and display weather information for specified cities, including temperature, humidity, wind speed, and weather descriptions.
              Last updated -
              Python
              • Linux
              • 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/panzhenyao/mcp-server'

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