连接器指南阅读约 1 分钟6 个 MCP 工具7 种语言

OpenWeather 到 MCP — 从任何 AI 代理驱动 OpenWeather

从任何 AI 代理查询 OpenWeather(当前天气、天气预报、空气质量、地理编码)。6 个工具,API 密钥认证。

HC作者:HelpCode 团队更新于 1 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

OpenWeather

OpenWeather

Query OpenWeather (current weather, forecasts, air quality, geocoding) from any AI agent. 6 tools, API-key auth.

个工具

6

区域

INTL

类别

公共数据

身份验证

Query Param Auth

所需环境变量

OPENWEATHER_API_KEY
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

跳过安装。2 分钟内即可运行。

在 cloud.anythingmcp.com 开始免费试用,一键添加 OpenWeather,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。

开始免费试用

摘要

从任何 AI 代理查询 OpenWeather(当前天气、天气预报、空气质量、地理编码)。6 个工具,API 密钥认证。

试试这样问

OpenWeather 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

OpenWeather · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 不需要安装?直接使用 cloud.anythingmcp.com。 登录,点击 Connectors → OpenWeather,粘贴你的凭据,生成一个 MCP API 密钥 — 完成。无需 Docker,无需 git clone,无需本地服务器。

OpenWeather

从任何 AI 代理查询 OpenWeather(当前天气、天气预报、空气质量、地理编码)。6 个工具,API 密钥认证。

设置

此连接器封装了 OpenWeather REST API (api.openweathermap.org)。

设置:

  1. 在 https://openweathermap.org/users/sign_up 注册(免费套餐:60 次调用/分钟,1M/月)。
  2. 转到 https://home.openweathermap.org/api_keys → 复制默认密钥或创建一个新的,标记为例如 mcp。
  3. 等待 ~10 分钟 — 新密钥在免费套餐上激活需要时间。
  4. 设置 OPENWEATHER_API_KEY。

认证:每个请求都需要 appid=${OPENWEATHER_API_KEY} 作为查询字符串。适配器会自动注入 — 永远不要将其包含在工具参数中。

…(在应用内连接器说明中继续)

先决条件:OPENWEATHER_API_KEY

本地安装连接器

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

打开 http://localhost:3000/connectors/store,选择 OpenWeather 并粘贴在先决条件下列出的环境变量。

可用工具

工具功能
openweather_geocode_city将城市名称(可选地包含州和国家代码)转换为纬度/经度
openweather_reverse_geocode将纬度/经度转换回附近地点名称的列表
openweather_current_weather给定坐标的当前天气:温度、湿度、风、天气状况、日出/日落
openweather_forecast_5day3 小时间隔的 5 天天气预报
openweather_air_pollution当前空气质量指数(AQI 1-5)+ CO、NO、NO2、O3、SO2、PM2 的浓度
openweather_air_pollution_forecast给定坐标的未来 ~4 天的每小时空气污染预报

下一步

这份指南对你有帮助吗?

你的 OpenWeather 智能体只差一次点击。

安装连接器,粘贴密钥,向你的 AI 客户端提问。免费试用 7 天,无需信用卡。

相关指南