Skip to main content
Glama
Weather MCP Server

Weather MCP Server

by wudongjie

Weather MCP Server

A Model Context Protocol server that provides real-time weather information and forecasts.

This MCP server connects AI assistants with live weather data, enabling them to provide current weather conditions and multi-day forecasts for any location worldwide.

Features

Tools

  • fetch-weather - Get current weather conditions for any city

    • Real-time temperature, humidity, wind, and atmospheric data

    • Air quality information included

    • Detailed weather descriptions

  • fetch-weather-forecast - Get weather forecasts up to 10 days ahead

    • Daily high/low temperatures

    • Precipitation chances and weather conditions

    • Wind speeds and humidity levels

    • Weather alerts and warnings when available

Related MCP server: MCP Weather Server

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
	"mcpServers": {
		"Weather-mcp": {
			"env": {
				"WEATHER_API_KEY": "xxx"
			},
			"command": "node",
			"args": ["/your/path/to/mcp-weather/build/index.js"]
		}
	}
}

You'll need to obtain a free API key from WeatherAPI.com and set it in your environment configuration.

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • 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
      Provides real-time weather information and multi-day forecasts using the Open-Meteo API through a robust, enterprise-grade architecture. It enables AI assistants to retrieve current conditions, 7-day forecasts, and contextual weather data for any location.
      11 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time weather data and forecasts globally through the Model Context Protocol, enabling AI assistants to access weather information without web searches.
      1,384 npm
      MIT
    • F
      license
      D
      quality
      D
      maintenance
      Provides real-time weather information, enabling AI assistants to retrieve current temperature and weather conditions for any location worldwide.
      1
      -