Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Weather Js

FreeNot checked

Simple Weather MCP Server Example

GitHubEmbed

About

Simple Weather MCP Server Example

README

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
{
  "mcpServers": {
    "weather": {
      "command": "npx",
        "args": [
            "-y",
            "@h1deya/mcp-server-weather"
        ],
    }
  }
}

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 location
      • longitude (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 (c) 2025 Model Context Protocol). So I've chosen the MIT license for this repo.

from github.com/hideya/mcp-server-weather-js

Installing Weather Js

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/hideya/mcp-server-weather-js

FAQ

Is Weather Js MCP free?

Yes, Weather Js MCP is free — one-click install via Unyly at no cost.

Does Weather Js need an API key?

No, Weather Js runs without API keys or environment variables.

Is Weather Js hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Weather Js in Claude Desktop, Claude Code or Cursor?

Open Weather Js on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Weather Js with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs