Skip to main content
Glama

Weather MCP Server

by penguyen72

Weather MCP Server

A Model Context Protocol (MCP) server that provides weather forecast and alert information for US locations. Referenced these docs.

Features

  • Weather Forecasts: Get detailed weather forecasts for any location using latitude/longitude coordinates

  • Weather Alerts: Retrieve active weather alerts for US states

  • Real-time data from the National Weather Service

Installation

Prerequisites

  • Python 3.10 or higher

Setup

  1. Clone this repository:

git clone https://github.com/penguyen72/python-mcp cd python-mcp

Usage

Configuration

Add the server to your MCP client configuration. For Claude Desktop, add this to your config file:

MacOS:

code ~/Library/Application\ Support/Claude/claude_desktop_config.json

Windows:

code $env:AppData\Claude\claude_desktop_config.json

Config:

{ "mcpServers": { "weather": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather", "run", "weather.py" ] } } }

Available Tools

weather:get_forecast

Get weather forecast for a specific location.

Parameters:

  • latitude (number, required): Latitude of the location

  • longitude (number, required): Longitude of the location

Example:

{ "latitude": 38.5816, "longitude": -121.4944 }

weather:get_alerts

Get active weather alerts for a US state.

Parameters:

  • state (string, required): Two-letter US state code (e.g., "CA", "NY", "TX")

Example:

{ "state": "CA" }

API Data Source

This server uses the National Weather Service API to retrieve weather data for US locations.

Deploy Server
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Provides weather forecast and alert information for US locations using the National Weather Service API. Enables users to get detailed weather forecasts by coordinates and retrieve active weather alerts by state.

  1. Features
    1. Installation
      1. Prerequisites
      2. Setup
    2. Usage
      1. Configuration
    3. Available Tools
      1. weather:get_forecast
      2. weather:get_alerts
    4. API Data Source

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/penguyen72/python-mcp'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server