MCP.so
ログイン

MCP Weather Application (Client-Server)

@RoystonDAlmeida

基本情報

カテゴリ

メディアとデザイン

トランスポート

stdio

作者

RoystonDAlmeida

MCP Weather Application について

This repository contains files for building an MCP server for weather tasks.

MCP Weather Application の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-weather-server-roystondalmeida": {
      "command": "uv",
      "args": [
        "run",
        "client.py",
        "../weather/weather.py"
      ]
    }
  }
}

MCP Weather Application のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP Weather Application (Client-Server)?

The MCP Weather Application is a client-server system built with the MCP framework. The server fetches weather data from the National Weather Service (NWS) API via two tools (get_alerts, get_forecast), while the client uses LangChain with the Groq API (Llama 3 model) to process natural language queries and invoke those tools as needed.

How to use MCP Weather Application (Client-Server)?

Detailed setup instructions, including dependency installation and API key configuration, are in each component’s README (weather/README.md, mcp-client/README.md). To run the client and automatically start the server, execute uv run client.py ../weather/weather.py from the mcp-client/ directory. The client connects to the server via stdio.

Key features of MCP Weather Application (Client-Server)

  • Two MCP tools: get_alerts and get_forecast
  • Fetches live data from the National Weather Service API
  • Client uses LangChain and Groq for natural language understanding
  • Full client-server architecture with stdio MCP transport
  • Automatically selects and invokes the correct weather tool

Use cases of MCP Weather Application (Client-Server)

  • Ask for current weather alerts for a given US state
  • Request a detailed forecast for a specific latitude/longitude
  • Use natural language to get weather information without coding
  • Demonstrate MCP client-server interaction with an LLM orchestrator

よくある質問

1

What tools does the server provide?

The server exposes two tools: `get_alerts` (for weather alerts by state) and `get_forecast` (for a forecast at given coordinates).

2

Which API does the server use?

It uses the National Weather Service (NWS) API to fetch weather alerts and forecasts.

3

What LLM powers the client’s natural language understanding?

The client uses Groq’s Llama 3 model via LangChain to interpret user queries and decide when to call a server tool.

コメント

「メディアとデザイン」の他のコンテンツ