About MCP Clima
MCP Clima is an MCP server for retrieving current weather by city. It reports temperature, precipitation, wind speed, conditions, and local time, and suggests similar cities when a match is not found.
Key features
- 01Retrieve current weather by city
- 02Show temperature, precipitation, and wind speed
- 03Report conditions and local time
- 04Suggest similar cities for unmatched queries
- 05Support Spanish and English
Use cases
- 01Check current weather in a specified city
- 02Review a city's precipitation and wind
- 03Handle queries with an unmatched city name
MCP support
The MCP server provides city weather lookup to MCP clients through the `get_weather` tool. Its required parameter is `city`.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Clima
Este es un MCP (Modelo de Comportamiento Programado) que proporciona información sobre el clima de diferentes ciudades.
Características
- Obtiene el clima actual de cualquier ciudad
- Soporte para múltiples idiomas (español e inglés)
- Sugerencias de ciudades similares cuando no se encuentra la ciudad exacta
- Información detallada del clima:
- Temperatura
- Precipitación
- Velocidad del viento
- Estado del clima
- Hora actual en la ciudad
Estructura del Proyecto
src/
├── config/
│ ├── constants.ts # Constantes y configuraciones
│ └── translations.ts # Traducciones
├── tools/
│ └── weather.ts # Herramienta de clima
├── types/
│ └── index.ts # Definiciones de tipos
├── utils/
│ ├── i18n.ts # Utilidades de internacionalización
│ └── weather.ts # Utilidades de clima
└── index.ts # Punto de entrada
Uso
import { tools, handleRequest } from './index';
// Ejemplo de solicitud
const request = {
tool_calls: [
{
name: 'get_weather',
parameters: {
city: 'Madrid',
},
},
],
language: 'es', // opcional, por defecto es 'es'
};
const response = await handleRequest(request);
console.log(response.content);
API
Herramientas Disponibles
get_weather
Obtiene el clima actual de una ciudad.
Parámetros:
city: Nombre de la ciudad (requerido)
Respuestas
La respuesta incluye:
content: Mensaje con la información del climatool_calls: Array vacío (no se requieren más llamadas)
Desarrollo
- Clona el repositorio
- Instala las dependencias:
npm install - Ejecuta los tests:
npm test - Construye el proyecto:
npm run build
Licencia
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.