MCP.so
Sign In
Servers

Weather MCP Server

@encoreshao

A Weather MCP server providing weather alerts and forecasts via the Model Context Protocol.

Overview

What is Weather MCP Server?

Weather MCP Server is a Model Context Protocol server that provides weather alerts and forecasts for US locations using the National Weather Service API. It is designed for developers who want to add weather data to MCP-compatible applications such as Claude for Desktop.

How to use Weather MCP Server?

Install Node.js v16 or higher, clone the repository, run npm install and npm run build, then add the server to your MCP host’s configuration (e.g., claude_desktop_config.json) with the absolute path to build/index.js. Once connected, use the tools get-alerts (input: two-letter US state code) or get-forecast (input: latitude and longitude).

Key features of Weather MCP Server

  • Get active weather alerts for any US state by two-letter code.
  • Get a multi-period weather forecast for a specific latitude/longitude.
  • Built on the free National Weather Service API (no API key required).
  • Simple Node.js project using TypeScript and stdio transport.

Use cases of Weather MCP Server

  • Check current weather alerts for a US state via a conversational AI assistant.
  • Retrieve a forecast for a specific location during a travel planning conversation.
  • Integrate real-time US weather data into a custom MCP host or automation workflow.

FAQ from Weather MCP Server

What data source does Weather MCP Server use?

It uses the National Weather Service (NWS) API, which is free and covers the United States and its territories.

What are the runtime requirements?

Node.js version 16 or higher is required. The server communicates via standard input/output (stdio), the default MCP transport.

How do I get weather alerts?

Use the get-alerts tool and pass a two-letter US state code (e.g., "CA" for California). The server returns a list of active alerts.

Can I get a forecast for any location in the world?

No. The forecast tool works only for locations within the United States, as data is sourced from the National Weather Service API.

Is authentication or an API key needed?

No. The National Weather Service API is public and free to use; no key or authentication is required for this server.

Tags

More from Media & Design