Skip to main content
Glama

AEMET-MCP

MIT License
2
  • Apple
  • Linux

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 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"
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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 中的气象和气候数据。

  1. 分布
    1. 锻造工艺
    2. 格拉玛
    3. 姆塞普
  2. 描述
    1. 主要特点
      1. 安装
        1. 通过 Smithery 安装
        2. 使用 uv 安装
        3. 先决条件
        4. 安装 uv
      2. 与 Claude Desktop 等客户端集成
        1. 使用示例

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            An MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.
            Last updated -
            1
            Python
            MIT License
            • Linux
            • Apple
          • -
            security
            F
            license
            -
            quality
            An 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
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            An 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 -
            12
            TypeScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            An 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

          View all related MCP servers

          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/AnCode666/aemet-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server