AEMET-MCP。通过 MCP 与 AEMET API 集成
分布
锻造工艺
格拉玛
姆塞普
描述
AEMET 是西班牙国家气象局。
Aemet-mcp允许您使用**模型上下文协议 (MCP)**直接从 Claude AI 和其他 MCP 兼容客户端的 AEMET API 检索历史气候数据和气象信息。
Aemet-mcp 是一个 MCP 服务器,它提供的工具可使 LLM 查询来自西班牙各地气象站的数据。
它包括对 API 密钥和资源 JSON 文件的安全处理,以便使用支持数据。
主要特点
- 查询历史每日值(温度、风、降水等)
- 查看各站每月的气候摘要。
- 按年份、月份和 AEMET 站点代码进行过滤。
- 查询海滩状况,包括紫外线辐射指数。
- 响应已准备好以 JSON 格式使用。
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 AEMET 天气数据服务器:
使用 uv 安装
先决条件
- Python 3.10 或更高版本。
- uv包管理器。
安装 uv
第一步是安装uv
,一个 Python 的包管理器。
它可以从命令行安装。
在 macOS 和 Linux 上:
在 Windows 上:
您也可以使用 pip 安装它:
有关安装 uv 的更多信息,请访问uv 文档。
与 Claude Desktop 等客户端集成
安装uv后,您可以从任何兼容客户端(例如 Claude for Desktop)使用 MCP 服务器,在这种情况下,请按照以下步骤操作:
- 转到Claude > 设置 > 开发人员 > 编辑配置 >
claude_desktop_config.json
- 在
"mcpServers"
中添加以下块:
- 从 AEMET 获取免费 API 密钥:https: //opendata.aemet.es/centrodedescargas/altaUsuario
- 将
YOUR_AEMET_API_KEY
替换为您的实际 API 密钥(保留引号)。 - 如果您已经配置了另一个 MCP 服务器,请用逗号
,
分隔每个服务器。
一般来说,要将其集成到任何其他与 MCP 兼容的客户端(例如 Cursor、CODEGPT 或 Roo Code)中,只需转到客户端的 MCP 服务器配置并添加相同的代码块。
使用示例
一旦正确配置,您可以询问以下问题:
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
MCP 服务器允许直接从 Claude AI 和其他 MCP 兼容客户端检索西班牙国家气象局 (AEMET) API 中的气象和气候数据。
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.Last updated -1PythonMIT License
- -securityFlicense-qualityAn MCP server implementation that allows users to fetch and display weather information for specified cities, including temperature, humidity, wind speed, and weather descriptions.Last updated -Python
- -securityAlicense-qualityAn MCP server that connects to OpenWeatherMap's API to provide current weather data and multi-day forecasts for locations worldwide in different measurement units.Last updated -12TypeScriptMIT License
- -securityFlicense-qualityAn India-focused MCP server that provides real-time weather conditions, forecasts, air quality data, and location search capabilities using the OpenWeatherMap API.Last updated -Python