mcp-meteoblue
mcp-meteoblue
一个用 JavaScript 编写的 MCP 服务器,用于访问 meteoblue Weather API。它让 MCP 客户端可以搜索地点、使用 Free Weather API 中可用的包获取天气预报,并请求预报 meteogram 图像。
工具
search_locations使用 meteoblue Location Search 解析城市、邮政编码以及 IATA/ICAO 机场代码。get_forecast接受地点名称或坐标,返回预报 JSON;默认返回当前天气、逐小时天气和每日天气。get_forecast_image接受地点名称或坐标,并将预报图像直接返回给 MCP 客户端。
传给 预报或图像工具的地点名称始终通过官方 meteoblue Location Search API 解析。预报包(package)的输入被限制为 Free Weather API 文档中列出的包。
[!NOTE] meteoblue 当前的 Free Weather API 文档指出,图像需要更高级别的访问权限。图像工具符载于具有 Image API 权限的 API 密钥,反之会返回明确的授权错误。
Related MCP server: mcp-weather-server
要求
Node.js 20 或更高版本
请保持该密钥私有。此服务器从 METEOBLUE_API_KEY 读取密钥;它绝不会出现在包或 MCP 工具参数中。
通过 npm 运行
将此 stdio 服务器添加到你的 MCP 客户端配置中:
{
"mcpServers": {
"meteoblue": {
"command": "npx",
"args": ["-y", "mcp-meteoblue"],
"env": {
"METEOBLUE_API_KEY": "your_api_key_here"
}
}
}
}或者直接运行:
METEOBLUE_API_KEY=your_api_key_here npx -y mcp-meteoblue该服务器使用 stdio,因此它在等待 MCP 客户端期间不会产生任何终端常规输出。
Docker
在本地构建镜像:
docker build -t mcp-meteoblue .在你的 MCP 客户端中配置基于 Docker 的 stdio 服务器:
{
"mcpServers": {
"meteoblue": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--env",
"METEOBLUE_API_KEY",
"mcp-meteoblue"
],
"env": {
"METEOBLUE_API_KEY": "your_api_key_here"
}
}
}
}容器以非特权 node 用户身份运行。由于 MCP 通信使用 stdio,请使用 -i 保持 stdin 打开。
本地开发
npm install
npm test
METEOBLUE_API_KEY=your_api_key_here npm start将 MCP 客户端指向 node /absolute/path/to/mcp-meteoblue/src/index.js,并在该客户端的配置中设置环境变量。
发布
GitHub Actions 会在每次 push 和 pull requests 时运行测试套件,并在 Node.js 20、22、24 和 26 上验证 npm tarball。Dependabot 每周检查 npm 依赖和 GitHub Actions 依赖。
推送一个 vnode* git 标签会触发 .github/workflows/publish.yml。该工作流使用 npm trusted publishing(OIDC)并自动附加 provenance。按以下内容配置 npm trusted publisher:
GitHub 所有者:
unixfox仓库:
mcp-meteoblue工作流:
publish.yml环境:
npm
配置 trusted publishing 后,GitHub 中不需要存储任何 npm token。
API 范围
该服务器仅调用以下接口:
https://www.meteoblue.com/{language}/server/search/query3https://my.meteoblue.com/packages/{packages}https://my.meteoblue.com/images/{forecast-image-type}
它不暴露 meteoblue History、Dataset、Maps、Measurements 或其他任何 API。
许可证
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExposes weather forecast APIs as MCP tools, allowing LLMs to retrieve current weather conditions and multi-day forecasts for any location using latitude and longitude coordinates.17MIT
- FlicenseNot gradedqualityDmaintenanceEnables MCP clients like Kiro and Claude to access current weather conditions and forecasts for any location using the OpenWeatherMap API.
- AlicenseNot gradedqualityDmaintenanceIntegrates OpenWeatherMap API with MCP to provide weather data, forecasts, air quality, maps, alerts, and geocoding via natural language.10MIT
- AlicenseNot gradedqualityCmaintenanceEnables to interact with comprehensive weather data through the MCP protocol, including current conditions, multi-day forecasts, hourly forecasts, and geocoding.17MIT
Related MCP Connectors
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
NOAA and ECMWF weather forecast MCP for discovery, validation, and GribStream OAuth queries.
WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/unixfox/mcp-meteoblue'
If you have feedback or need assistance with the MCP directory API, please join our Discord server