- Explore MCP Servers
- mcp-server-weather-js
Mcp Server Weather Js
What is Mcp Server Weather Js
mcp-server-weather-js is a Node.js server that implements the Model Context Protocol (MCP) to provide weather information for locations in the United States. It serves as a simple example of how to access weather data using MCP.
Use cases
Use cases for mcp-server-weather-js include querying for tomorrow’s weather in a specific city, checking for weather alerts in a state, and integrating weather data into applications that require real-time weather information.
How to use
To use mcp-server-weather-js, you need to integrate it into your Claude Desktop configuration by adding a specific JSON fragment to your ‘claude_desktop_config.json’. You can run the server using the command ‘npx @h1deya/mcp-server-weather’.
Key features
Key features include the ability to get weather alerts for specific US states and to retrieve weather forecasts based on latitude and longitude coordinates.
Where to use
undefined
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Server Weather Js
mcp-server-weather-js is a Node.js server that implements the Model Context Protocol (MCP) to provide weather information for locations in the United States. It serves as a simple example of how to access weather data using MCP.
Use cases
Use cases for mcp-server-weather-js include querying for tomorrow’s weather in a specific city, checking for weather alerts in a state, and integrating weather data into applications that require real-time weather information.
How to use
To use mcp-server-weather-js, you need to integrate it into your Claude Desktop configuration by adding a specific JSON fragment to your ‘claude_desktop_config.json’. You can run the server using the command ‘npx @h1deya/mcp-server-weather’.
Key features
Key features include the ability to get weather alerts for specific US states and to retrieve weather forecasts based on latitude and longitude coordinates.
Where to use
undefined
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Simple Weather MCP Server example from Quickstart

Node.js server implementing
Model Context Protocol (MCP)
for accessing weather information in the US.
This is an example explained in MCP Quickstart.
It has been hosted as an npm package
for convenient use with npx.
Usage with Claude Desktop
Merge the following JSON fragment into your claude_desktop_config.json.
Please refer to the “Testing your server with Claude for Desktop” section of
MCP Quickstart for details.
# MacOS/Linux code ~/Library/Application\ Support/Claude/claude_desktop_config.json # Windows code $env:AppData\Claude\claude_desktop_config.json
Tools
- get-alerts
- Get weather alerts for a US state.
- Input:
state(string): Two-letter US state code (e.g. CA, NY)
- get-forecast
- Get weather forecast for a location in the US
- Inputs:
latitude(number): Latitude of the locationlongitude(number): Longitude of the location
Example Queries
- Tomorrow’s weather in Palo Alto?
- Any weather alerts in California?
Original Author and License
This example is based on the code explained in MCP Quickstart
(github),
whose license is CC-BY-4.0.
The completed code examples are also hosted in
this repo,
whose license is MIT (Copyright © 2025 Model Context Protocol).
So I’ve chosen the MIT license for this repo.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










