Skip to main content
Glama
Weather MCP Server

Weather MCP Server

by vihanrs

Weather MCP Server

An MCP (Model Context Protocol) server that provides weather tools for AI assistants, built with xmcp.

Features

Tools

  • get-current-weather - Get current weather conditions for any city (temperature, humidity, wind speed)

  • get-forecast - Get weather forecast for 1-7 upcoming days

  • compare-weather - Compare weather between two cities

Resources

  • weather://{city}/current - Current weather data as a resource

Prompts

  • weather-summary - Generate weather summary prompts

Related MCP server: OpenWeather MCP Server

Installation

npm install

Usage

Development

npm run dev

Production

npm run build
npm run start

Inspect with MCP Inspector

npm run inspect

Configuration

Add to your MCP client configuration:

{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": ["/path/to/weather-mcp/dist/stdio.js"]
    }
  }
}

API

This server uses the free Open-Meteo API for weather data. No API key required.

Tech Stack

License

MIT

Available Tools

4 tools
compare-weatherCompare WeatherB
Read-onlyIdempotent

Compare current weather between two cities

Inputs: city1 (required), city2 (required), unit.

get-current-weatherGet current weatherC
Read-onlyIdempotent

get the current weather of selected city

Inputs: city (required), unit.

get-forecastGet weather forecastC
Read-onlyIdempotent

Get weather forecast for upcoming days

Inputs: city (required), days, unit.

greetGreet the userC
Read-onlyIdempotent

Greet the user

Inputs: name (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 4 tools

    Disambiguation4/5

    get-current-weather and get-forecast target clearly different time ranges, and greet is obviously unrelated to weather retrieval. compare-weather overlaps somewhat with get-current-weather since it is essentially two current-weather lookups bundled together, but the multi-city framing keeps it distinguishable.

    Naming Consistency4/5

    All names use consistent kebab-case, and three of four follow a verb_noun pattern (get-current-weather, get-forecast, compare-weather). The lone bare verb 'greet' is a minor deviation but still readable and in the same casing style.

    Tool Count4/5

    Four tools is a reasonable, tightly scoped surface for a weather server covering current, forecast, and comparison. The only bloat is 'greet', which does not earn its place in a weather domain.

    Completeness3/5

    Core retrieval is covered (current, forecast, comparison), but there are notable gaps: no historical weather, no severe-weather alerts, no location search/geocoding, and no unit or coordinate handling. Agents can work around some of this via city names, but the surface stops short of full lifecycle coverage.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      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.
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time weather data and forecasts for locations worldwide using the OpenWeatherMap API. It enables AI assistants to retrieve current conditions, temperature, and forecasts through a simple tool-based interface.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to retrieve current weather, forecasts, and summaries for any global location using the Open-Meteo API, with no API key required.
      Creative Commons Zero v1.0 Universal
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides live weather data (current conditions, forecasts) and city geocoding through Open-Meteo API, enabling AI assistants to answer weather queries without an API key.
      MIT