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 Serverget the weather forecast for New York City"
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
A Node.js Model Context Protocol (MCP) server that provides weather information tools using Streamable HTTP Transport.
Features
get-alerts: Get weather alerts for a US state
get-forecast: Get weather forecast for a location using latitude/longitude coordinates
HTTP Transport: Uses streamable HTTP instead of stdio for better scalability
Session Management: Supports multiple concurrent client sessions
Health Check: Built-in health monitoring endpoint
Setup
Install dependencies:
Build the TypeScript code:
Start the HTTP server:
The server will start on port 3000 by default.
Usage
This server implements the Model Context Protocol using HTTP transport. It provides:
MCP Endpoint:
http://localhost:3000/mcpHealth Check:
http://localhost:3000/health
get-alerts
Get weather alerts for a US state.
Parameters:
state(string): Two-letter state code (e.g., "CA", "NY")
HTTP Example:
get-forecast
Get weather forecast for a location using coordinates.
Parameters:
latitude(number): Latitude (-90 to 90)longitude(number): Longitude (-180 to 180)
HTTP Example:
MCP Client Configuration
Use this configuration in your MCP client:
Development
Run in development mode:
Test the server:
Health check:
Transport Features
Session Management: Each client gets a unique session ID
Concurrent Connections: Multiple clients can connect simultaneously
Server-Sent Events: Real-time notifications via GET requests
Session Termination: Clean session cleanup via DELETE requests
DNS Rebinding Protection: Disabled for local development (enable in production)
Security Note
For production deployments, enable DNS rebinding protection:
Environment Variables
PORT: Server port (default: 3000)
API Endpoints
POST /mcp: Main MCP communication endpointGET /mcp: Server-to-client notifications (SSE)DELETE /mcp: Session terminationGET /health: Health check endpoint
Requirements
Node.js 18 or higher
TypeScript 5.5 or higher
Internet connection for weather API access
Directory Structure
Requirements
Node.js 18 or higher
TypeScript 5.5 or higher
Internet connection for weather API access