World Weather Online MCP
OfficialWorld Weather Online — MCP 服务器 (Railway)
用于 World Weather Online 的 MCP 服务器。允许 Claude、Cursor 等 AI 助手直接调用 WWO 天气数据作为工具。
部署到 Railway
第 1 步 — 推送到 GitHub
在 github.com 上创建一个新的仓库(命名为
wwo-mcp-server)在此文件夹中打开终端并运行:
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 上部署
前往 https://railway.app 并使用 GitHub 注册/登录
点击 New Project → Deploy from GitHub repo
选择你的
wwo-mcp-server仓库Railway 会自动检测 Node.js 并进行部署
你的服务器将通过类似以下的 URL 上线:
https://wwo-mcp-server-production.up.railway.app第 3 步 — 添加自定义域名
在 Railway 仪表板 → 你的项目 → Settings → Networking → Custom Domain
输入
mcp.worldweatheronline.com并点击 AddRailway 会显示一个 CNAME 值,例如:
wwo-mcp-server-production.up.railway.app前往你的 DNS 提供商并添加:
类型 | 名称 | 值 |
CNAME | mcp | wwo-mcp-server-production.up.railway.app |
SSL 证书会在几分钟内自动配置完成
第 4 步 — 测试
访问你的健康检查端点:
https://mcp.worldweatheronline.com/health在 MCP Inspector 中进行测试:
https://mcp.worldweatheronline.com/mcp?key=YOUR_WWO_API_KEY连接 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"
}
}
}可用工具
工具 | 描述 |
| 当前天气状况 + 14 天预报 |
| 2008 年以来的历史天气 |
| 海浪、潮汐、水温 |
| 顶部/中部/底部海拔预报 |
| 地点自动补全 |
| 日出、日落、月相 |
| 本地时间 + UTC 偏移量 |
| 12 年月度气候平均值 |
本地开发
npm install
npm run dev服务器运行在 http://localhost:3000
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/WorldWeatherOnline/wwo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server