MCP Weather Server
@tyfeng1997
MCP Weather Server について
概要はまだありません
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-server-tyfeng1997": {
"command": "node",
"args": [
"build/index.js"
]
}
}
}ツール
5Get weather forecast for a location
`latitude` (number): Latitude of the location (-90 to 90)
Only US locations are supported by the NWS API
Get weather alerts for a state
`state` (string): Two-letter US state code (e.g., CA, NY)
概要
What is MCP Weather Server?
MCP Weather Server is a TypeScript implementation of the Model Context Protocol (MCP) using Server-Sent Events (SSE) transport. It provides weather forecast and alert tools by connecting to the US National Weather Service API, designed for remote client connections over HTTP.
How to use MCP Weather Server?
Clone the repository, install dependencies with npm install, build with npm run build, then start the server with node build/index.js. It listens on port 3001 by default; clients connect to http://localhost:3001/sse.
Key features of MCP Weather Server
- Implements MCP over Server-Sent Events (SSE) transport
- Provides two weather tools:
get-forecastandget-alerts - Connects to the US National Weather Service API
- Supports multiple concurrent client connections
- Written in TypeScript with Zod parameter validation
Use cases of MCP Weather Server
- AI assistants fetching weather forecasts for US coordinates via natural language
- AI assistants retrieving active weather alerts for any US state
- Demonstrating a remote MCP server over HTTP instead of stdio
FAQ from MCP Weather Server
What tools does MCP Weather Server expose?
It exposes get-forecast (requires latitude/longitude) and get-alerts (requires a two-letter US state code).
What are the runtime requirements?
Node.js version 16 or newer, and npm or yarn.
Does the server support locations outside the US?
No, the underlying NWS API only supports US locations.
What transport does MCP Weather Server use?
It uses Server-Sent Events (SSE) over HTTP, not standard input/output (stdio).
Where can I find a companion client?
A companion client is available at tyfeng1997/mcp-client on GitHub.
「メディアとデザイン」の他のコンテンツ
Spotify MCP Server
marcelmaraisLightweight MCP server for Spotify
Figma MCP Server
TimHoldenModel Context Protocol server implementation for Figma API
YouTube Transcript MCP Server
jkawamotoMCP server retrieving transcripts of YouTube videos
百度地图 MCP Server
baidu-mapsBaidu Map MCP Server
MCP Figma to React Converter
StudentOfJSMCP server for converting Figma designs to React components
コメント