CO

cmer81/open-meteo-mcp

开发工具

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

74 stars 29 forks 质量 82 趋势 20MIT

cmer81/open-meteo-mcp 是从 https://github.com/cmer81/open-meteo-mcp. 导入的 MCP 服务器候选。

概览

cmer81/open-meteo-mcp 是从 https://github.com/cmer81/open-meteo-mcp. 导入的 MCP 服务器候选。

概述(AI 翻译)

提供任何LLM的准确天气数据:预报、1940年以来的历史、空气质量、海洋状况、洪水和气候预测。

功能 • 入门指南 • 工具 • 远程部署 • 配置 • 开发

一个用于免费Open-Meteo API的模型上下文协议服务器。将其插入Claude Desktop、Claude Code或任何MCP客户端,然后用清晰的语言询问:

无需API密钥:Open-Meteo对非商业用途免费。

特色

  • 17个工具,涵盖预报、ERA5历史、空气质量、海洋、洪水、季节性、集合和CMIP6气候数据,以及地理编码和海拔
  • **来自DWD ICON、NOAA GFS、MÉTÉO-France、ecmwf、jma、Met Norway和加拿大环境部GEM的模型特定预报
  • 为大型语言模型构建:严格的输入模式,服务器指令告诉模型哪个工具回答哪个问题,精简的JSON响应,字符限制在25,000字符
  • 两种传输:本地客户端使用stdio,远程部署时使用无状态可流式HTTP,支持API密钥认证、速率限制和源检测
  • 内存响应缓存,带有每端点的TTL,这样重复的问题不会再次进入Open-Meteo

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

README

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

A Model Context Protocol server for the free Open-Meteo APIs. Plug it into Claude Desktop, Claude Code or any MCP client, then ask in plain language:

What were the temperatures in London during January 2023?
Compare the ICON and GFS ensemble forecasts for Berlin over the next 5 days.
Give me the current European AQI, UV index and pollen levels in Paris.

No API key is needed: Open-Meteo is free for non-commercial use.

Features

  • 17 tools covering forecasts, ERA5 history, air quality, marine, flood, seasonal, ensemble and CMIP6 climate data, plus geocoding and elevation
  • Model-specific forecasts from DWD ICON, NOAA GFS, Météo-France, ECMWF, JMA, MET Norway and Environment Canada GEM
  • Built for LLMs: strict input schemas, server instructions that tell the model which tool answers which question, compact JSON responses capped at 25,000 characters
  • Two transports: stdio for local clients, stateless Streamable HTTP for remote deployments, with API key auth, rate limiting and origin checks
  • In-memory response cache with per-endpoint TTLs, so repeated questions don’t hit Open-Meteo again
  • Self-hosting friendly: every Open-Meteo endpoint can point at your own instance

Getting started

You need Node.js 22 or later. Nothing to install beforehand: npx fetches the server on first run.

Claude Desktop

Add the server to your claude_desktop_config.json:

{
  "mcpServers": {
    "open-meteo": {
      "command": "npx",
      "args": ["-y", "-p", "open-meteo-mcp-server", "open-meteo-mcp-server"]
    }
  }
}

Claude Code

claude mcp add open-meteo -- npx -y -p open-meteo-mcp-server open-meteo-mcp-server

Other MCP clients

在 GitHub 查看完整 README

安装

npx -y -p open-meteo-mcp-server open-meteo-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "open-meteo": { "command": "npx", "args": ["-y", "-p", "open-meteo-mcp-server", "open-meteo-mcp-server"] } } }