AEMET-MCP

by AnCode666
Verified

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.

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 天气数据服务器:

npx -y @smithery/cli install @AnCode666/aemet-mcp --client claude

从 uv 安装

先决条件

  • Python 3.10 或更高版本。
  • uv包管理器。

安装 uv

第一步是安装uv ,一个 Python 的包管理器。
它可以从命令行安装

在 macOS 和 Linux 上:

curl -LsSf https://astral.sh/uv/install.sh | sh

在 Windows 上:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

您也可以使用 pip 安装它:

pip install uv

有关安装 uv 的更多信息,请访问uv 文档

与 Claude for Desktop 等客户端集成

安装uv后,您可以从任何兼容客户端(例如 Claude for Desktop)使用 MCP 服务器,在这种情况下,请按照以下步骤操作:

  1. 转到Claude > 设置 > 开发人员 > 编辑配置 > claude_desktop_config.json
  2. "mcpServers"中添加以下块:
"aemet_mcp_": { "command": "uvx", "args": [ "aemet_mcp" ], "env": { "AEMET_API_KEY": "YOUR_AEMET_API_KEY" } }
  1. 从 AEMET 获取免费 API 密钥:https: //opendata.aemet.es/centrodedescargas/altaUsuario
  2. YOUR_AEMET_API_KEY替换为您的实际 API 密钥(保留引号)。
  3. 如果您已经配置了另一个 MCP 服务器,请用逗号,分隔每个服务器。

一般来说,要将其集成到任何其他与 MCP 兼容的客户端(例如 Cursor、CODEGPT 或 Roo Code)中,只需转到客户端的 MCP 服务器配置并添加相同的代码块。

使用示例

一旦正确配置,您可以询问以下问题:

- "What's the weather like in Seville?" - "Tell me the radiation levels at Maspalomas beach for tomorrow" - "Give me the historical rainfall data for Albacete between January 1st, 2020 and February 1st, 2020"

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

MCP 服务器允许直接从 Claude AI 和其他 MCP 兼容客户端检索西班牙国家气象局 (AEMET) API 中的气象和气候数据。

  1. Key Features
    1. Installation
      1. Installing via Smithery
      2. Install from uv
      3. Prerequisites
      4. Installing uv
    2. Integration with clients like Claude for Desktop
      1. Usage Examples
        ID: kiicmi0fc3