weather-mcp-server

weather-mcp-server

1

The Weather MCP Server is a Model Context Protocol server designed to provide comprehensive weather information globally. It offers flexibility by working with real-time data using an API key or mock data for development or testing purposes. Key features include temperature, humidity, and wind data retrieval, with automatic fallback to mock data if needed.

Weather MCP Server

A Model Context Protocol (MCP) server that provides weather information for cities around the world.

Features

  • Get current weather for any city
  • Provides temperature, weather conditions, humidity, wind information, and more
  • Fallback to mock data if API request fails

Requirements

  • Node.js (v14 or higher)
  • npm or yarn
  • OpenWeather API key (optional)

Usage

The server can operate with or without an API key. Without an API key, it uses mock data for a set of predefined cities. To use it, you can start the server locally or configure it with MCP-compatible AI assistants.