Skip to main content
Glama
Azure-Samples

Node.js MCP Weather Server

Node.js MCP Weather Server with Azure Deployment

A Model Context Protocol (MCP) server built with Express.js and Node.js that provides weather information using the National Weather Service API. Ready for deployment to Azure App Service with Azure Developer CLI (azd).

🌟 Features

  • Express.js Framework: Fast, unopinionated web framework for Node.js

  • MCP Protocol Compliance: Full support for JSON-RPC 2.0 MCP protocol

  • HTTP Transport: HTTP-based communication for web connectivity

  • Weather Tools:

    • get_alerts: Get weather alerts for any US state

    • get_forecast: Get detailed weather forecast for any location

  • Azure Ready: Pre-configured for Azure App Service deployment

  • Web Test Interface: Built-in HTML interface for testing

  • National Weather Service API: Real-time weather data from official US government source

Related MCP server: WeatherMCP

💻 Local Development

Prerequisites

  • Node.js 22+ (or Node.js 18+)

  • npm (Node Package Manager)

Setup & Run

  1. Clone and install dependencies:

    git clone <your-repo-url>
    cd remote-mcp-webapp-node
    npm install
  2. Start the development server:

    npm run dev
  3. Access the server:

🔌 Connect to the Local MCP Server

Using VS Code - Copilot Agent Mode

  1. Add MCP Server from command palette and add the URL to your running server's HTTP endpoint:

    http://localhost:8000
  2. List MCP Servers from command palette and start the server

  3. In Copilot chat agent mode, enter a prompt to trigger the tool:

    What's the weather forecast for San Francisco?
  4. When prompted to run the tool, consent by clicking Continue

Using MCP Inspector

  1. In a new terminal window, install and run MCP Inspector:

    npx @modelcontextprotocol/inspector
  2. CTRL+click the URL displayed by the app (e.g. http://localhost:5173/#resources)

  3. Set the transport type to HTTP

  4. Set the URL to your running server's HTTP endpoint and Connect:

    http://localhost:8000
  5. List Tools, click on a tool, and Run Tool

🚀 Quick Deploy to Azure

Prerequisites

Deploy in 3 Commands

# 1. Login to Azure
azd auth login

# 2. Initialize the project
azd init

# 3. Deploy to Azure
azd up

After deployment, your MCP server will be available at:

  • Health Check: https://<your-app>.azurewebsites.net/health

  • MCP Capabilities: https://<your-app>.azurewebsites.net/mcp/capabilities

  • Test Interface: https://<your-app>.azurewebsites.net/test

🔌 Connect to the Remote MCP Server

Follow the same guidance as above, but use your App Service URL instead.

🧪 Testing

Visit /test endpoint for an interactive testing interface.

🌦️ Data Source

This server uses the National Weather Service (NWS) API:

  • Real-time weather alerts and warnings

  • Detailed weather forecasts

  • Official US government weather data

  • No API key required

  • High reliability and accuracy

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    B
    quality
    D
    maintenance
    An MCP server that provides weather information and alerts for US locations using the National Weather Service API, enabling retrieval of weather forecasts and active weather alerts.
    Last updated
    2
  • F
    license
    B
    quality
    D
    maintenance
    An MCP server providing US National Weather Service data with tools to fetch weather alerts by state and forecasts by coordinates.
    Last updated
    2
  • F
    license
    C
    quality
    D
    maintenance
    An MCP server that provides weather alerts and forecasts using the National Weather Service API, with additional system tools for shell commands and process information.
    Last updated
    3

View all related MCP servers

Related MCP Connectors

  • OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)

  • WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)

  • This MCP server provides seamless access to Malaysia's government open data, including datasets, w…

View all MCP Connectors

Latest Blog Posts

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/Azure-Samples/remote-mcp-webapp-node'

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