Weather MCP server for Claude
面向 Claude 的天气 MCP 服务器
一个使用官方 TypeScript/JavaScript MCP SDK 和 Open-Meteo 构建的极简远程 MCP 服务器(无需 API 密钥)。它提供:
get_weather:根据地名获取当前天气状况和 1–7 天预报POST /mcp:Streamable HTTP MCP 端点GET /health:Render 健康检查
本地运行
需要 Node.js 20 或更高版本。
corepack enable
pnpm install
pnpm startMCP 端点为 http://localhost:3000/mcp。
Related MCP server: weather-mcp
在 Render 上部署
将此目录放入 GitHub 或 GitLab 仓库中。
在 Render 中,选择 New > Blueprint 并连接该仓库。
Render 会读取
render.yaml并创建 Web 服务。部署完成后,将
https://YOUR-SERVICE.onrender.com/mcp用作 MCP URL。
无需天气 API 密钥。Render 的免费套餐在空闲时可能会休眠,因此闲置一段时间后的第一个请求可能需要更长时间。
连接 Claude
对于支持远程自定义连接器的 Claude 客户端,请添加一个自定义连接器,其 URL 为:
https://YOUR-SERVICE.onrender.com/mcp为简单起见,该服务器特意不设身份验证。任何知道该 URL 的人都可以调用它;在使用私有或付费数据源之前,请先添加身份验证。
示例提示词
使用 get_weather 以英制单位告诉我弗吉尼亚州里士满未来三天的天气预报。
数据来源
天气和地理编码数据由 Open-Meteo 提供。在将该服务器用于生产产品之前,请查看其署名要求和商业使用条款。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Weather MCP — wraps Open-Meteo API (free, no auth)
Current weather and forecast lookup as an agent tool.
Current weather and 7-day forecast for any place (MET Norway). $0.006/call via x402.
Related MCP Servers
- FlicenseBqualityDmaintenanceProvides current weather conditions and forecasts for any location using the Open-Meteo API.2-
- FlicenseNot gradedqualityDmaintenanceEnables querying current weather, 7-day forecast, UV index, and air quality for any city using the free Open-Meteo API, without requiring an API key.28 npm-
- FlicenseNot gradedqualityDmaintenanceProvides current weather, multi-day forecasts, and umbrella recommendations through natural language queries, using the Open-Meteo API with no API key required.-
- AlicenseAqualityDmaintenanceEnables real-time weather forecasts for any city using the Open-Meteo API, with automatic geocoding and no API keys required.1MIT