AEMET-MCP
AEMET-MCP。通过 MCP 与 AEMET API 集成
分布
锻造工艺
格拉玛
姆塞普
Related MCP server: Weather MCP
描述
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 服务器,在这种情况下,请按照以下步骤操作:
转到Claude > 设置 > 开发人员 > 编辑配置 >
claude_desktop_config.json在
"mcpServers"中添加以下块:
"aemet_mcp_": {
"command": "uvx",
"args": [
"aemet_mcp"
],
"env": {
"AEMET_API_KEY": "YOUR_AEMET_API_KEY"
}
}从 AEMET 获取免费 API 密钥:https: //opendata.aemet.es/centrodedescargas/altaUsuario
将
YOUR_AEMET_API_KEY替换为您的实际 API 密钥(保留引号)。如果您已经配置了另一个 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"Available Tools
9 toolsfind_nearby_stationsB
Find weather stations within a given radius (in km) from a given geographic coordinate.
Args: lat: Latitude in decimal degrees (e.g., 43.36) lon: Longitude in decimal degrees (e.g., -8.41) radio_km: Search radius in kilometers
Inputs: lat (required), lon (required), radio_km.
get_beach_data_uvA
Query information on beaches or UV index from AEMET.
Args: name_or_code: Partial or full name of the beach, or its BEACH_ID. Also accepts 'list' or 'list:'. dias_frc: Number of forecast days, starting form 0, which means 0 days from today, to 4, which means 4 days from today. query_type: 'beach' for forecast, 'UV_index' for UV index, must be in english.
Returns: Requested information or list of matches.
Inputs: nombre_o_codigo (required), dias_frc (required), tipo_consulta.
get_daily_forecastB
Get the daily weather forecast for a Spanish municipality.
Args: municipality_code: AEMET municipality code (e.g., "28079" for Madrid)
Inputs: municipality_code (required).
get_historical_dataA
Obtain historical meteorological data for a specific station.
Args: station_id: Identifier of the station (e.g. "3195" for Madrid Retiro) start_date: Start date in format YYYYY-MM-DD end_date: End date in format YYYYY-MM-DD
Inputs: station_id (required), start_date (required), end_date (required).
get_station_dataB
Obtain specific weather data for a weather station.
Args: station_id: Station identifier (e.g., "8416Y" for Valencia))
Inputs: station_id (required).
get_station_listA
Get a list of all available weather stations or filter by one or more search terms, including approximate matches.
Args: search_terms: Optional terms (space or comma separated) to filter stations by name or province.
Inputs: search_terms.
monthly_climate_dataC
Retrieve monthly climatological data for a specific weather station.
Args: station_id: Weather station identifier (e.g., "3195" for Madrid Retiro). year: Year (YYYY). month: Month (1-12).
Returns: A JSON with the monthly climate summary.
Inputs: station_id (required), year (required), month (required).
search_municipality_codeA
Search Spanish municipalities by name or province (accent-insensitive, typo-tolerant).
Args: nombre: Partial or approximate name of a municipality or province.
Returns: A list of matching municipalities with their codes and provinces.
Inputs: nombre (required).
solve_beach_codeC
Search beaches by name, province, or municipality.
Args: nombre: Search string (accent-insensitive) tipo: One of 'playa', 'provincia', or 'municipio'
Inputs: nombre (required), tipo.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Every tool targets a distinct resource or operation: stations (find, list, get data, historical, monthly), beaches (search, get data), daily forecast, and municipality search. No overlapping purposes.
Naming conventions are mixed: some use 'get_', others 'find_', 'search_', 'solve_', and one is adjective_noun ('monthly_climate_data'). While all are descriptive, the pattern is inconsistent.
Nine tools is well-scoped for a weather data API covering stations, beaches, forecasts, historical data, and municipality lookup. Each tool serves a clear purpose without unnecessary duplication.
The tool set covers core weather queries: station listings, current data, daily forecasts, historical and monthly climate, beach info, and UV index. Missing are alerts or radar, but the surface is largely complete for common use cases.
Related MCP Connectors
An MCP server for weather information by @kulybaba
An MCP server for weather information by @kulybaba
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
An MCP server that provides agents access to the KeldynAI platform
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server built with the mcp-framework to provide weather-related tools and data to AI clients. It enables integration of weather capabilities and custom tools into the MCP ecosystem for use with platforms like Claude Desktop.-
- AlicenseNot gradedqualityDmaintenanceA MCP server for querying real-time weather information for any city worldwide using the free Open-Meteo API, supporting CLI and integration with AI clients like Claude and Cursor.MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides current weather conditions and forecasts via OpenWeatherMap API to AI agents.-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to answer Mexico weather questions using official government data, resolving municipality names via INEGI and fetching forecasts from CONAGUA/SMN.-