Skip to main content
Glama
Weather MCP Server

Weather MCP Server

by Yaseen-md

Weather MCP Server

CI License: MIT

Un servidor estándar de Model Context Protocol (MCP) que proporciona pronósticos meteorológicos en tiempo real basados en nombres de ciudades utilizando la API de Open-Meteo.

Características

  • Geocodificación: Convierte automáticamente nombres de ciudades en coordenadas geográficas (latitud y longitud)

  • Clima en tiempo real: Obtiene la temperatura actual, la velocidad del viento y los códigos meteorológicos

  • Integración MCP: Totalmente compatible con clientes MCP como Claude Desktop

  • Cero claves API: Utiliza la API gratuita y de código abierto de Open-Meteo: ¡no se requiere registro!

Related MCP server: weather_mcp_server

Requisitos previos

  • Node.js >= 18.x

  • npm o yarn

Instalación

  1. Clona el repositorio:

git clone https://github.com/Yaseen-md/weather-mcp-server.git
cd weather-mcp-server
  1. Instala las dependencias:

npm install
  1. Compila el servidor:

npm run build

Desarrollo

Ejecuta el servidor directamente sin compilar:

npm run dev

Integración con Claude Desktop

Para usar este servidor meteorológico con Claude Desktop, debes configurar tu archivo claude_desktop_config.json.

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

Añade la siguiente configuración:

{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": [
        "C:/path/to/your/weather-mcp-server/build/index.js"
      ]
    }
  }
}

(Asegúrate de reemplazar la ruta con la ruta absoluta real de tu archivo index.js compilado.)

Herramientas disponibles

get_weather

Obtiene el clima actual de una ciudad especificada.

Parámetros de entrada:

  • city (cadena): El nombre de la ciudad (p. ej., "Delhi", "Tokyo", "London", "San Francisco")

Resultados: Temperatura en grados Celsius, velocidad del viento y código meteorológico.

Licencia

Este proyecto está licenciado bajo la Licencia MIT.

Available Tools

1 tool
get_weatherA

Get current weather for a given city

Inputs: city (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion between tools. The tool's purpose is clear and distinct by default.

    Naming Consistency5/5

    The tool name follows a consistent verb_noun pattern (get_weather). With a single tool, there are no naming inconsistencies to evaluate.

    Tool Count3/5

    One tool feels thin for a weather server, which typically offers multiple data types like forecasts and alerts. However, it is borderline given the narrow 'current weather' scope.

    Completeness2/5

    The server only covers current conditions, missing obvious weather domain features such as forecasts, historical data, or alerts. This significantly limits its usefulness for common weather queries.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers