Weather MCP Server
🌦️ MCP Weather Assistant
Groq がホストする LLM をカスタム Weather MCP Server に接続する Model Context Protocol (MCP) プロジェクトです。天気に関する自然言語の質問をすると、National Weather Service (NWS) API から取得したリアルタイムのツール基盤型回答を得られます。
仕組み
User
↓
"Are there any weather alerts for CA?"
↓
Groq LLM
↓
Decides to call get_alerts_tool
↓
MCP Client
↓
MCP Weather Server
↓
National Weather Service API
↓
Real-time weather alerts
↓
Groq LLM
↓
Natural-language answerユーザーが平易な英語で質問します。
Groq LLM が質問を解釈し、呼び出すツール(例:
get_alerts_tool、get_forecast_tool)を決定します。MCP Client が Model Context Protocol を介して、そのツール呼び出しを MCP Weather Server に送信します。
サーバーが National Weather Service API に問い合わせてライブデータを取得します。
結果がクライアントを通じて LLM に返されます。
LLM が生データを、ユーザーにとってわかりやすい自然言語の回答に変換します。
Related MCP server: mcp-weather
特徴
🌦️ 米国の州別のリアルタイム気象警報
📍 場所(緯度・経度)による天気予報
🔌 Model Context Protocol (MCP) 上に構築 — ツールは、MCP 互換のクライアントならどれでも利用できる標準化された方法で公開されます
⚡ 高速な LLM 推論を実現する Groq 搭載
🧩 LLM クライアントと天気ツールサーバーの明確な分離
プロジェクト構成
.
├── client/ # MCP client — connects to Groq LLM and the MCP server
├── server/ # MCP weather server — exposes get_alerts_tool, get_forecast_tool, etc.
├── requirements.txt # or package.json, depending on stack
└── README.md(実際のフォルダ構成に合わせてこのツリーを調整してください。)
前提条件
Python 3.10+(または実装に応じて Node.js)
インターネット接続(サーバーは公開 NWS API を呼び出します — NWS に API キーは不要です)
インストール
git clone https://github.com/Krishna-Dhawangale/MCP.git
cd MCP
pip install -r requirements.txt設定
プロジェクトのルートに .env ファイルを作成します:
GROQ_API_KEY=your_groq_api_key_here使い方
MCP 天気サーバーを起動します:
python server/weather_server.pyクライアントを実行します:
python client/main.py質問をします:
> Are there any weather alerts for CA?クライアントはクエリを LLM にルーティングし、LLM が MCP サーバー上の適切なツールを呼び出して、自然言語の回答を返します。
利用可能なツール
ツール | 説明 |
| 指定された米国の州のアクティブな気象警報を取得します |
| 指定された緯度・経度の天気予報を取得します |
ロードマップ
より多くの場所(海外)への対応を追加
繰り返しのクエリに対するキャッシュを追加
ツールハンドラーの単体テストを追加
Groq 以外の追加の MCP クライアントをサポート
コントリビューション
コントリビューションを歓迎します!お気軽に issue を開くか、プルリクエストを送信してください。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceProvides weather forecast data from the US National Weather Service API through MCP tools. Enables users to get detailed weather forecasts by ZIP code or coordinates using natural language queries.
- FlicenseNot gradedqualityDmaintenanceProvides real-time weather alerts and forecasts from the National Weather Service for US locations, integrating with AI assistants via the Model Control Protocol.
- FlicenseBqualityDmaintenanceProvides weather forecasts and alerts for US locations using the National Weather Service API. Enables users to retrieve active alerts by state and detailed forecasts by coordinates via MCP tools.2
- FlicenseNot gradedqualityDmaintenanceProvides weather alerts for US states and forecasts for given coordinates via MCP tools.
Related MCP Connectors
US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.
Get US weather forecasts, active alerts, and current observations.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Krishna-Dhawangale/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server