Skip to main content
Glama
Yaseen-md

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: MCP Weather 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

ParametersJSON Schema
NameRequiredDescriptionDefault
cityYesCity name (e.g., Delhi, Tokyo, London)

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description is the sole behavioral disclosure. The verb 'Get' implies a read operation, but nothing describes the response format, units, error behavior, or any side effects. Minimal transparency beyond the name itself.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, front-loaded sentence that communicates the core operation with zero redundancy. Appropriate for the tool's simplicity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with no output schema, the description is minimal but still incomplete: it fails to hint at what 'current weather' includes (temperature, conditions, etc.), leaving the agent to guess at the return shape. A short list of typical response fields would make it complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema fully describes the single 'city' parameter (100% coverage) with type and examples. The description's 'given city' repeats schema content, adding no new semantic information, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'Get' with resource 'current weather' and scope 'for a given city'. It unambiguously states the tool's function. With no sibling tools, differentiation is moot.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage: when current weather for a city is needed. However, it offers no explicit conditions, exclusions, or alternative selection guidance, relying entirely on the self-evident purpose.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 1 tool updatev1.0.0
    • First observedget_weather

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

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to fetch current weather conditions and forecasts for any city using the Open-Meteo API. Provides temperature, precipitation, and hourly forecast data through natural language queries.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides real-time and historical weather data for any city worldwide, including forecasts, air quality, and marine conditions, using the free Open-Meteo API.
    12 npm
    MIT