RW

rossshannon/weekly-weather-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

10 stars 7 forks 质量 61 趋势 8MIT

Weather MCP server which returns 7 days of detailed weather forecasts anywhere in the world

概览

A weather forecast MCP (Model Context Protocol) server providing and current weather conditions using the OpenWeatherMap One Call API 3.0. This project builds upon an earlier project by Zippland, with modifications to support full week forecasts and additional time-of-day data points. Animation showing Claude Desktop processing the weather data from the MCP Server Claude Desktop showing a detailed weather forecast with lawn mowing recommendations - 🌍 Support for querying weather conditions anywhere in the world - 🌤️ Hourly forecasts for the next 48 hours - 📅 Provides detailed 8-day forecasts (today + following 7 days), with morning, afternoon, and evening data points - 🌧️ Weather summaries and precipitation probabilities - 🌡️ Detailed weather information including temperature, humidity, wind speed, etc.

README

以下为原文 README 节选,完整内容请查看原文。

🌦️ Weekly Weather MCP Server

A weather forecast MCP (Model Context Protocol) server providing 8-day global weather forecasts and current weather conditions using the OpenWeatherMap One Call API 3.0.

This project builds upon an earlier project by Zippland, with modifications to support full week forecasts and additional time-of-day data points.

Features

  • 🌍 Support for querying weather conditions anywhere in the world
  • 🌤️ Hourly forecasts for the next 48 hours
  • 📅 Provides detailed 8-day forecasts (today + following 7 days), with morning, afternoon, and evening data points
  • 🌧️ Weather summaries and precipitation probabilities
  • 🌡️ Detailed weather information including temperature, humidity, wind speed, etc.
  • 📍 Support for reporting results in different time zones
  • 🗂️ No separate configuration file needed; API key can be passed directly through environment variables or parameters

Usage

1. Get an OpenWeatherMap API Key with One Call API 3.0 Access (free)

  1. Visit OpenWeatherMap and register an account
  2. Subscribe to the “One Call API 3.0” plan (offers 1,000 API calls per day for free)
  3. Wait for API key activation (this can take up to an hour)

About the One Call API 3.0

The One Call API 3.0 provides comprehensive weather data:

  • Current weather conditions
  • Minute forecast for 1 hour
  • Hourly forecast for 48 hours
  • Daily forecast for 8 days (including today)
  • National weather alerts
  • Historical weather data

API Usage and Limits

  • Free tier: 1,000 API calls per day
  • Default limit: 2,000 API calls per day (can be adjusted in your account)
  • Billing: Any calls beyond the free 1,000/day will be charged according to OpenWeatherMap pricing
  • Usage cap: You can set a call limit in your account to prevent exceeding your budget (including capping your usage at the free tier limit so no costs can be incurred)
  • If you reach your limit, you’ll receive a HTTP 429 error response

Note: API key activation can take several minutes up to an hour. If you receive authentication errors shortly after subscribing or generating a new key, wait a bit and try again later.

2. Clone the Repository and Install Dependencies

# Clone the repository
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →