Weather MCP Server
天気MCPサーバー
米国国立気象局(NWS)APIを使用して、米国各地の気象情報と警報を提供するモデルコンテキストプロトコル(MCP)サーバーです。このサーバーは、モデルコンテキストプロトコルを介してAIエージェントが使用できるように設計されています。
特徴
米国のどの州の天気警報も受信できるツール
座標を使用して米国の任意の場所の詳細な天気予報を取得するためのツール
気温、風の状況、短い予報の説明をサポート
国立気象局からのリアルタイムデータ
Related MCP server: Weather MCP Server
前提条件
Node.js (v16 以上)
npm または yarn パッケージマネージャー
インストール
リポジトリをクローンします。
git clone https://github.com/akaramanapp/weather-mcp-server.git
cd weather-mcp-server依存関係をインストールします:
npm installアプリケーションをビルドします。
npm run buildMCPツール
サーバーは、AI エージェントが使用できる 2 つの MCP ツールを提供します。
アラートを取得する
特定の米国の州の天気警報を取得します。
パラメータ:
state: 2文字の州コード(例:CA、NY)
応答例:
{
"content": [
{
"type": "text",
"text": "Active alerts for CA: ..."
}
]
}予測を取得する
座標を使用して特定の場所の天気予報を取得します。
パラメータ:
latitude: 場所の緯度 (-90 ~ 90)longitude: 場所の経度 (-180 ~ 180)
応答例:
{
"content": [
{
"type": "text",
"text": "Morning: Temperature: 72°F, Wind: 5mph NW, Partly cloudy..."
}
]
}プロジェクト構造
weather/
├── src/
│ └── index.ts # Main server code with MCP tool implementations
├── build/ # Compiled JavaScript files
├── package.json # Project dependencies and scripts
└── tsconfig.json # TypeScript configuration技術的な詳細
TypeScriptで構築
モデルコンテキストプロトコル(MCP)サーバーを実装します
MCP サーバーの実装には @modelcontextprotocol/sdk を使用します
国立気象局 (NWS) API とのインターフェース
Node16モジュール解決によるES2022ターゲット
発達
サーバーを変更または拡張するには:
src/index.tsファイルに変更を加えるアプリケーションを再構築します。
npm run build依存関係
@modelcontextprotocol/sdk: MCP サーバー実装フレームワーク
zod: ツールパラメータのランタイム型チェックと検証
TypeScript: 型安全性のための開発依存性
ライセンス
ISC
注記
このサーバーは国立気象サービスAPIを使用しているため、米国の場所でのみ機能します。
APIリクエストはレート制限があり、User-Agentヘッダーが必要です。
すべての座標は10進度形式で入力する必要があります
これはスタンドアロンのCLIアプリケーションではなく、モデルコンテキストプロトコルを通じてAIエージェントにツールを提供するサーバーです。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides tools to fetch weather alerts for US states and forecasts based on latitude/longitude coordinates using the US National Weather Service API.2581MIT
- Alicense-qualityDmaintenanceA Model Context Protocol server that enables AI models to fetch weather alerts and detailed forecasts for US locations using the National Weather Service API.58GPL 3.0
- FlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that provides US weather forecasts and active alerts using the National Weather Service API.2
- Flicense-qualityDmaintenanceA Model Context Protocol server that provides real-time weather alerts and forecasts using the National Weather Service API.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
MCP server exposing the Backtest360 engine API as tools for AI agents.
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/akaramanapp/weather-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server