IM

isdaniel/mcp_weather_server

开发工具

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

61 stars 35 forks 质量 80 趋势 22Apache-2.0

isdaniel/mcp_weather_server 是一个从 https://github.com/isdaniel/mcp_weather_server. 导入的 MCP 服务器候选

概览

isdaniel/mcp_weather_server 是一个从 https://github.com/isdaniel/mcp_weather_server. 导入的 MCP 服务器候选

概述(AI 翻译)

MCP名称:io.github.isdaniel/mcp_weather_server

一个模型上下文协议(MCP)服务器,利用Open-Meteo API提供天气信息。该服务器支持多种传输模式:标准stdio、HTTP服务器发送事件(SSE)以及用于基于网页集成的新可流式HTTP协议。

特色

天气与空气质量

  • 获取最新天气信息及综合指标:
  • 温度、湿度、露点
  • 风速、风向和阵风
  • 降水(降雨/降雪)与概率
  • 大气压和云层覆盖
  • 紫外线指数与可见度
  • “感觉像”温度
  • 日出和日落时间(当地时间)
  • 获取日期范围的天气数据,包含小时详情及每日日出/日落时间
  • 获取包括以下在内的空气质量信息:
  • PM2.5和PM10颗粒物
  • 臭氧、二氧化氮、一氧化碳
  • 二氧化硫、氨、尘埃
  • 气溶胶光学深度
  • 健康建议与建议

时间与时区

  • 获取任何时区的当前日期/时间
  • 换算时区间时间
  • 获取时区信息

交通方式

  • 多种交通方式:

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

README

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

Weather MCP Server

mcp-name: io.github.isdaniel/mcp_weather_server

A Model Context Protocol (MCP) server that provides weather information using the Open-Meteo API. This server supports multiple transport modes: standard stdio, HTTP Server-Sent Events (SSE), and the new Streamable HTTP protocol for web-based integration.

Features

Weather & Air Quality

  • Get current weather information with comprehensive metrics:
    • Temperature, humidity, dew point
    • Wind speed, direction, and gusts
    • Precipitation (rain/snow) and probability
    • Atmospheric pressure and cloud cover
    • UV index and visibility
    • “Feels like” temperature
    • Sunrise and sunset times (local time at the location)
  • Get weather data for a date range with hourly details and daily sunrise/sunset times
  • Get air quality information including:
    • PM2.5 and PM10 particulate matter
    • Ozone, nitrogen dioxide, carbon monoxide
    • Sulfur dioxide, ammonia, dust
    • Aerosol optical depth
    • Health advisories and recommendations

Time & Timezone

  • Get current date/time in any timezone
  • Convert time between timezones
  • Get timezone information

Transport Modes

  • Multiple transport modes:
    • stdio - Standard MCP for desktop clients (Claude Desktop, etc.)
    • SSE - Server-Sent Events for web applications
    • streamable-http - Modern MCP Streamable HTTP protocol with stateful/stateless options
  • RESTful API endpoints via Starlette integration

Installation

Installing via Smithery

To install Weather MCP Server automatically via Smithery:

npx -y @smithery/cli install @isdaniel/mcp_weather_server

Standard Installation (for MCP clients like Claude Desktop)

This package can be installed using pip:

pip install mcp_weather_server

Manual Configuration for MCP Clients

This server is designed to be installed manually by adding its configuration to the cline_mcp_settings.json file.

在 GitHub 查看完整 README

安装

npx -y @smithery/cli install @isdaniel/mcp_weather_server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "weather": { "command": "python", "args": [ "-m", "mcp_weather_server" ], "disabled": false, "autoApprove": [] } } }