MCP Weather Server

by tyfeng1997

279 downloads
Not rated
GitHub

Description

# 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…

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)…

Details

Author
tyfeng1997
Downloads
279
Categories
Media

- Implements MCP over Server-Sent Events (SSE) transport
- Provides two weather tools: get-forecast and get-alerts
- Connects to the US National Weather Service API
- Supports multiple concurrent client connections
- Written in TypeScript with Zod parameter validation

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:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Weather Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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.

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"
        ]
    }
}

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) 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

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.