Skip to main content
Glama
WorldWeatherOnline

World Weather Online MCP

Official

World Weather Online — MCP 服务器 (Railway)

用于 World Weather Online 的 MCP 服务器。允许 Claude、Cursor 等 AI 助手直接调用 WWO 天气数据作为工具。

部署到 Railway

第 1 步 — 推送到 GitHub

  1. 在 github.com 上创建一个新的仓库(命名为 wwo-mcp-server

  2. 在此文件夹中打开终端并运行:

git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/YOUR_USERNAME/wwo-mcp-server.git
git push -u origin main

第 2 步 — 在 Railway 上部署

  1. 前往 https://railway.app 并使用 GitHub 注册/登录

  2. 点击 New ProjectDeploy from GitHub repo

  3. 选择你的 wwo-mcp-server 仓库

  4. Railway 会自动检测 Node.js 并进行部署

你的服务器将通过类似以下的 URL 上线:

https://wwo-mcp-server-production.up.railway.app

第 3 步 — 添加自定义域名

  1. 在 Railway 仪表板 → 你的项目 → SettingsNetworkingCustom Domain

  2. 输入 mcp.worldweatheronline.com 并点击 Add

  3. Railway 会显示一个 CNAME 值,例如:

wwo-mcp-server-production.up.railway.app
  1. 前往你的 DNS 提供商并添加:

类型

名称

CNAME

mcp

wwo-mcp-server-production.up.railway.app

  1. SSL 证书会在几分钟内自动配置完成

第 4 步 — 测试

访问你的健康检查端点:

https://mcp.worldweatheronline.com/health

在 MCP Inspector 中进行测试:

https://mcp.worldweatheronline.com/mcp?key=YOUR_WWO_API_KEY

Related MCP server: OpenWeather-OneCall3-MCP

连接 AI 客户端

Claude Desktop

添加到 ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "world-weather-online": {
      "url": "https://mcp.worldweatheronline.com/mcp?key=YOUR_API_KEY"
    }
  }
}

Cursor / Windsurf

添加到 .cursor/mcp.json

{
  "mcpServers": {
    "world-weather-online": {
      "url": "https://mcp.worldweatheronline.com/mcp?key=YOUR_API_KEY"
    }
  }
}

可用工具

工具

描述

get_weather

当前天气状况 + 14 天预报

get_historical_weather

2008 年以来的历史天气

get_marine_weather

海浪、潮汐、水温

get_ski_weather

顶部/中部/底部海拔预报

search_location

地点自动补全

get_astronomy

日出、日落、月相

get_timezone

本地时间 + UTC 偏移量

get_climate_averages

12 年月度气候平均值


本地开发

npm install
npm run dev

服务器运行在 http://localhost:3000

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides weather data from WeatherAPI.com through MCP, enabling AI agents to query current conditions and forecasts via natural language.
    2 npm
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server that provides weather data using the OpenWeather One Call API 3.0. This server allows AI agents to access current weather, forecasts, and historical weather data for any location.
    3
    5 npm
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    This MCP server provides access to Open-Meteo weather APIs including forecast, historical reanalysis, geocoding, air quality, marine weather, and flood risk data, enabling AI agents to retrieve weather information using natural language.
    7 npm
    MIT