home / mcp / weather mcp server

Weather MCP Server

Provides weather data, forecasts, and alerts from the National Weather Service via MCP endpoints.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "akarnik23-mcp-weather": {
      "url": "https://weather-mcp.onrender.com/mcp"
    }
  }
}

You can access current weather, forecasts, and real-time alerts through a lightweight Weather MCP Server that pulls data from the National Weather Service. This server keeps location-based weather information up to date for integrations with Poke and other clients, without requiring an API key.

How to use

Connect your MCP client to the Weather MCP Server using its MCP URL and invoke the available tools to retrieve current conditions, forecasts, or alerts. The server exposes three tools you can call from your MCP client: get_current_weather, get_forecast, and get_weather_alerts. Use these to drive in-app weather displays, alerts, or decision logic for location-based features.

How to install

Prerequisites: You need Python installed on your system. You also need pip to install dependencies.

# Install dependencies
pip install -r requirements.txt

# Run the server
python src/server.py

Deployment and access

The Weather MCP Server is available publicly via Render at the URL shown below. You can configure your MCP client to connect to this URL to start using weather data in your projects.

Poke integration notes

To enable weather-based integrations in Poke, point your MCP client to the Weather MCP URL shown in deployment and name the connection something like “Weather”. Then issue the tools to obtain current conditions, forecasts, or alerts for your target location.

Security and data access

No API key is required. The server fetches weather data directly from the National Weather Service API. Ensure your MCP client enforces appropriate rate limits and caching to avoid excessive requests.

Available tools

get_current_weather

Fetches current weather conditions for a specified location using the nearest forecast period from the National Weather Service data.

get_forecast

Returns a multi-day forecast (day and night periods) for a location, with configurable days and units.

get_weather_alerts

Retrieves real-time weather alerts, watches, and warnings for the specified location from the National Weather Service.