AEMET-MCP. Integration via MCP with the AEMET API
AEMET is the State Meteorological Agency of Spain.
Aemet-mcp allows you to retrieve historical climate data and meteorological information from the AEMET API directly from Claude AI and other MCP compatible clients, using the Model Context Protocol (MCP).
Aemet-mcp is an MCP server that exposes tools enabling LLMs to query data from weather stations across Spain.
It includes secure handling of API keys and resource JSON files for using supporting data.
Key Features
- Query for historical daily values (temperature, wind, precipitation, etc.)
- Access to monthly climate summaries by station.
- Filtering by year, month, and AEMET station code.
- Query beach conditions, including ultraviolet radiation indices.
- Responses ready for use in JSON format.
Installation
Installing via Smithery
To install AEMET Weather Data Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @AnCode666/aemet-mcp --client claude
Instalar desde uv
Prerequisites
- Python 3.10 or higher.
- uv package manager.
Installing uv
The first step is to install uv, a package manager for Python.
It can be installed from the command line.
On macOS and Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
On Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
You can also install it with pip:
pip install uv
For more information about installing uv, visit the uv documentation.
Integration with clients like Claude for Desktop
Once uv is installed, you can use the MCP server from any compatible client such as Claude for Desktop, in which case the steps to follow are:
- Go to Claude > Settings > Developer > Edit Config >
claude_desktop_config.json - Add the following block inside
"mcpServers":
"aemet_mcp_": {
"command": "uvx",
"args": [
"aemet_mcp"
],
"env": {
"AEMET_API_KEY": "YOUR_AEMET_API_KEY"
}
}
- Get a free API key from AEMET at: https://opendata.aemet.es/centrodedescargas/altaUsuario
- Replace
YOUR_AEMET_API_KEYwith your actual API key (leave the quotes). - If you already have another MCP server configured, separate each with a comma
,.
In general, to integrate it into any other MCP-compatible client such as Cursor, CODEGPT, or Roo Code, simply go to the MCP server configuration of your client and add the same code block.
Usage Examples
Once properly configured, you can ask things like:
- "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"
AEMET Weather Data Server
Project Details
- AnCode666/aemet-mcp
- MIT License
- Last Updated: 4/20/2025
Recomended MCP Servers
A Model Context Protocol server providing LLM Agents with system utilities and tools, including IP geolocation, network diagnostics,...
The fabric-mcp-server is an MCP server that integrates Fabric patterns with Cline, exposing them as tools for AI-driven...
A Model Context Protocol (MCP) server for the Discord integration with MCP-compatible applications like Claude Desktop.
A Model Context Protocol server for Linear.
MCP Server to interact with Google Cloud Tasks
MCP server to provide Jira Tickets information to AI coding agents like Cursor
A simple TypeScript library for creating MCP servers.
An mcp server for searching against google custom search api





