MCP Weather Server
About
# MCP Weather Server A TypeScript server implementation for the Model Context Protocol (MCP) using Server-Sent Events (SSE) transport to provide weather information tools. ## Overview This server implements the Model Context Protocol and exposes weather forecast and alert tools through Server-Sent Events (SSE)…
Explore
- Implements MCP over SSE transport
- Provides two weather tools:
- get-forecast: Get weather forecasts for specific coordinates
- get-alerts: Get active weather alerts for US states
- Connects to the US National Weather Service API
- Supports multiple client connections
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MCP Weather ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
- Node.js (v16 or newer)
- npm or yarn
npm install
To change the port, modify the PORT constant in the code:
const PORT = 3001; // Change to your desired port
latitude
(number): Latitude of the location (-90 to 90)
longitude
(number): Longitude of the location (-180 to 180)
state
(string): Two-letter US state code (e.g., CA, NY)
The server exposes two tools:
1. get-forecast
- Description: 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 NWS API
2. get-alerts
- Description: Get weather alerts for a state
- Parameters:
- state (string): Two-letter US state code (e.g., CA, NY)
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp weather server": {
"mcp-server-tyfeng1997": {
"command": "node",
"args": [
"build/index.js"
]
}
}
}
}
McpServers
{
"mcp-server-tyfeng1997": {
"command": "node",
"args": [
"build/index.js"
]
}
}
A TypeScript server implementation for the Model Context Protocol (MCP) using Server-Sent Events (SSE) transport to provide weather information tools.
Overview
This server implements the Model Context Protocol and exposes weather forecast and alert tools through Server-Sent Events (SSE) transport. Unlike standard examples that typically use stdio for local communication, this server demonstrates how to implement remote connections via HTTP, allowing clients to connect over a network.
Features
- Implements MCP over SSE transport
- Provides two weather tools:
- get-forecast: Get weather forecasts for specific coordinates
- get-alerts: Get active weather alerts for US states
- Connects to the US National Weather Service API
- Supports multiple client connections
Prerequisites
- Node.js (v16 or newer)
- npm or yarn
Installation
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



