Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weather MCP ServerWhat's the weather forecast for San Francisco?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Weather MCP Server - Usage Guide
A Model Context Protocol (MCP) server that provides weather information using the National Weather Service API. Supports both local (stdio) and remote (HTTP/SSE) access.
Features
Dual Transport Support: Run locally via stdio or remotely via HTTP/SSE
Weather Alerts: Get active weather alerts by state
Weather Forecasts: Get detailed forecasts by coordinates (US locations only)
Session Management: Automatic session handling for remote connections
Installation
Usage
Local Mode (Stdio Transport)
For local use with MCP clients like Claude Desktop:
Configuration for Claude Desktop (claude_desktop_config.json):
Remote Mode (HTTP/SSE Transport)
For remote access via HTTP:
The server will start on http://localhost:3000/mcp (or your specified port).
Remote Access Examples
1. Initialize Session
Response: Returns session ID in mcp-session-id header. Save this for subsequent requests.
2. Get Weather Forecast
3. Get Weather Alerts
4. Open SSE Stream (Optional)
For receiving server-initiated messages:
5. Terminate Session
Available Tools
get_forecast
Get weather forecast for a location.
Parameters:
latitude(number): Latitude of the location (-90 to 90)longitude(number): Longitude of the location (-180 to 180)
Note: Only US locations are supported by the National Weather Service API.
get_alerts
Get active weather alerts for a US state.
Parameters:
state(string): Two-letter state code (e.g., "CA", "NY")
Environment Variables
Variable | Description | Default | Example |
| Transport mode: |
|
|
| HTTP server port (HTTP mode only) |
|
|
Architecture
Stdio Mode
Single server instance
Communicates via stdin/stdout
Ideal for local MCP clients
HTTP Mode
Express-based HTTP server
Session-based architecture
Multiple concurrent sessions supported
Automatic session cleanup on disconnect
SSE streaming for real-time updates
Deployment
Local Development
Production (with PM2)
Docker
Troubleshooting
"Failed to retrieve grid point data"
Ensure coordinates are within the United States
NWS API only supports US locations
"Invalid or missing session ID"
Initialize a session first using the
initializemethodInclude the
mcp-session-idheader in all subsequent requests
Server not starting in HTTP mode
Check if port is already in use
Verify
TRANSPORT=httpenvironment variable is set
License
ISC