MCP.so
Sign In

Overview

What is Weather Forecast MCP Server?

A Model Context Protocol (MCP) server that provides weather information and alerts for US states and UK cities/towns using the National Weather Service (NWS) and OpenWeather APIs. It enables AI assistants to fetch current weather forecasts and alerts through a standardized interface.

How to use Weather Forecast MCP Server?

Install from source via git clone, npm install, and npm run build. Configure by adding the server to your MCP client (e.g., Claude Desktop or Cursor) with an API key set in the API_KEY environment variable. Once configured, ask your AI assistant weather-related questions like alerts for a US state or forecast for coordinates.

Key features of Weather Forecast MCP Server

  • Get active weather alerts for any US state.
  • Retrieve detailed weather forecasts using latitude/longitude coordinates.
  • Fetch current weather for UK cities and towns.
  • Requires an API key for accessing weather services.
  • Real-time data from official government and OpenWeather sources.
  • Compatible with any MCP-compatible AI assistant or client.

Use cases of Weather Forecast MCP Server

  • Ask an AI assistant for weather alerts in a specific US state (e.g., California).
  • Request a detailed weather forecast for a given latitude and longitude.
  • Check current weather conditions in a UK city or town.

FAQ from Weather Forecast MCP Server

What data sources does the server use?

It uses the National Weather Service API for US weather alerts and forecasts, and OpenWeather API for UK weather information.

Is an API key required?

Yes, an API key is required for accessing weather services. You can obtain one from OpenWeather.

How do I configure the server for Claude Desktop?

Add the server to your claude_desktop_config.json with the command npx mcp-server-weather-forecast and set the API_KEY environment variable.

What parameters do the tools require?

get-alerts needs a two-letter US state code. get-forecast requires latitude and longitude. current-weather-uk requires a UK city or town name.

What are the runtime requirements?

The server requires Node.js 18+ and npm or yarn for installation and execution.

Tags

More from Media & Design