Skip to main content
Glama

MCP Weather Server

by SandroSD

MCP Weather Server (Node.js)

This repository contains a fully-featured MCP (Model Context Protocol) server built with Node.js and TypeScript that exposes weather-related tools using the US National Weather Service API.


Table of Contents


Overview

This MCP server provides two main tools:

  • get_alerts - Retrieve current weather alerts for any US state (by two-letter state code)

  • get_forecast - Get detailed weather forecast by geographic coordinates

It follows the Model Context Protocol standards to be compatible with clients such as Claude for Desktop and allows seamless LLM-driven interactions.


Features

  • Typed requests and responses using zod schemas for argument validation

  • Asynchronous API requests with error handling

  • Modular tool definitions for scalable code architecture

  • Environment variable configuration for flexible deployments

  • Integration-ready with popular MCP client tools and MCP Inspector for debugging


Tech Stack

  • Node.js (v18+)

  • TypeScript

  • Zod for schema validations

  • httpx or node-fetch for HTTP requests

  • dotenv for environment configuration

  • MCP SDK (JavaScript/TypeScript)

  • Optional: ts-node or build with tsc


Getting Started

Prerequisites

  • Node.js 18 or higher

  • npm or yarn

Deploy Server
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables users to retrieve current weather alerts for US states and detailed weather forecasts by geographic coordinates using the US National Weather Service API. Built with Node.js and TypeScript following Model Context Protocol standards for seamless LLM integration.

  1. Table of Contents
    1. Overview
      1. Features
        1. Tech Stack
          1. Getting Started
            1. Prerequisites

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/SandroSD/MCP'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server