Skip to main content
Glama
isdaniel

Weather MCP Server

by isdaniel

insignia de herrería PyPI - Descargas PyPI - Versión

Servidor MCP meteorológico

Un servidor de Protocolo de Contexto de Modelo (MCP) que proporciona información meteorológica mediante la API Open-Meteo.

Características

  • Obtenga información meteorológica actual para una ciudad específica.

Related MCP server: MCP Weather Server

Instalación

Instalación y uso de Pip: Este paquete se puede instalar usando pip:

pip install mcp_weather_server

Este servidor está diseñado para instalarse manualmente agregando su configuración al archivo cline_mcp_settings.json .

  1. Agregue la siguiente entrada al objeto mcpServers en su archivo cline_mcp_settings.json :

{
  "mcpServers": {
    "weather": {
      "command": "python",
      "args": [
        "-m",
        "mcp_weather_server"
      ],
      "disabled": false,
      "autoApprove": []
    }
  }
}
  1. Guarde el archivo cline_mcp_settings.json .

Configuración

Este servidor no requiere una clave API. Utiliza la API de Open-Meteo, que es gratuita y de código abierto.

Uso

Este servidor proporciona varias herramientas: get_weather , get_weather_by_datetime_range y get_current_datetime .

get_weather

Recupera la información meteorológica actual de una ciudad determinada.

Parámetros:

  • city (cadena, obligatoria): el nombre de la ciudad.

Ejemplo:

Para obtener el clima en Taipei, usarías la herramienta de la siguiente manera:

<use_mcp_tool>
<server_name>weather</server_name>
<tool_name>get_weather</tool_name>
<arguments>
{
  "city": "Taipei"
}
</arguments>
</use_mcp_tool>

get_weather_by_datetime_range

Recupera información meteorológica de una ciudad específica entre las fechas de inicio y finalización.

Parámetros:

  • city (cadena, obligatoria): el nombre de la ciudad.

  • start_date (cadena, obligatoria): Fecha de inicio en formato AAAA-MM-DD (ISO 8601).

  • end_date (cadena, obligatoria): Fecha de finalización en formato AAAA-MM-DD (ISO 8601).

Ejemplo:

Para obtener el tiempo en Londres entre el 01/01/2024 y el 07/01/2024, usarías la herramienta de esta manera:

<use_mcp_tool>
<server_name>weather</server_name>
<tool_name>get_weather_by_datetime_range</tool_name>
<arguments>
{
  "city": "London",
  "start_date": "2024-01-01",
  "end_date": "2024-01-07"
}
</arguments>
</use_mcp_tool>

get_current_datetime

Recupera la hora actual en una zona horaria especificada.

Parámetros:

  • timezone_name (cadena, obligatoria): Nombre de la zona horaria de IANA (p. ej., «América/Nueva York», «Europa/Londres»). Si el usuario no proporciona ninguna zona horaria, utilice la zona horaria UTC.

Ejemplo:

Para obtener la hora actual en Nueva York, utilizarías la herramienta de la siguiente manera:

<use_mcp_tool>
<server_name>weather</server_name>
<tool_name>get_current_datetime</tool_name>
<arguments>
{
  "timezone_name": "America/New_York"
}
</arguments>
</use_mcp_tool>

Para desarrolladores

Cambiar el directorio de trabajo antes de ejecutar Python

python -m mcp_weather_server

O si desea que Python encuentre su paquete sin importar desde dónde lo ejecute, puede configurar PYTHONPATH:

set PYTHONPATH=C:\xxx\mcp_weather_server\src
python -m mcp_weather_server
Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
1wRelease cycle
5Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    A Model Context Protocol server that provides current weather information and 3-day forecasts for specified cities using the Open-Meteo API.
    1
  • F
    license
    -
    quality
    D
    maintenance
    A Model Context Protocol server that enables natural language weather queries for global cities, integrating with OpenWeather API to provide real-time weather information in an easy-to-read format.
    1
  • A
    license
    B
    quality
    D
    maintenance
    A simple Model Context Protocol server that provides real-time weather data to AI agents like GitHub Copilot, allowing users to get current weather information for any city through natural language queries.
    2
    31
    97
    MIT

View all related MCP servers

Related MCP Connectors

  • Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • A Model Context Protocol server for Wix AI tools

View all MCP Connectors

Latest Blog Posts

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/isdaniel/mcp_weather_server'

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