Connector guide1-minute read6 MCP toolsEN · DE · IT

如何通过 MCP 将 OpenWeather 连接到 ChatGPT

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

HCBy HelpCode teamUpdated 1 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

MCP connector

OpenWeather

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

Tools

6

Region

INTL

Category

Data & Analytics

Authentication

Query Param Auth

Required env vars

OPENWEATHER_API_KEY
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the OpenWeather in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

从任何 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 + ChatGPT

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

先决条件

请查看连接器中包含的完整设置说明(在你选择连接器时可在应用内商店中查看)。此连接器所需的环境变量为:

OPENWEATHER_API_KEY

第一步 — 获取凭据

此连接器封装了 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} 作为查询字符串。适配器会自动注入 — 永远不要将其包含在工具参数中。

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

第二步 — 安装适配器

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

第三步 — 在 ChatGPT 中添加连接器

ChatGPT 通过 Connectors 功能支持 MCP 服务器(Plus / Pro / Team / Enterprise 计划)。免费套餐不支持自定义连接器。

  1. 打开 ChatGPT → 设置 → Connectors(或点击创作器中的 🔧 图标 → 管理连接器)。
  2. 点击 "添加自定义连接器"
  3. 填写:
    • 名称: OpenWeather
    • MCP 服务器 URL: https://cloud.anythingmcp.com/mcp
    • 认证: Bearer token → 粘贴你的 MCP API 密钥(来自 AnythingMCP → 个人资料 → MCP API 密钥 → 新密钥
  4. 点击 连接 以授权。

可用工具

工具功能
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 天的每小时空气污染预报

常见问题

ChatGPT 免费套餐是否支持自定义 MCP 连接器? 不支持 — 需要 Plus、Pro、Team 或 Enterprise 计划。

下一步

这份指南对你有帮助吗?

Ready to ship

Your OpenWeather agent is one click away.

Install the connector, paste the key, prompt ChatGPT. Free for 7 days, no credit card.

相关指南