weather-mcp

weather-mcp

0

The Weather MCP Server is a Model Context Protocol server that provides weather forecast data specifically for locations in Canada. It integrates with various MCP-compatible clients and offers a straightforward setup for developers to fetch weather data based on coordinates.

Weather MCP Server

A Model Context Protocol (MCP) server that provides weather forecast data from the Government of Canada Weather API.

Features

  • Fetch weather forecasts for any location in Canada by providing latitude and longitude
  • Easily integrates with Claude Desktop or any MCP-compatible client

Installation

Prerequisites

  • Python 3.13 or higher
  • mise or another Python version manager (optional)

Installation Steps

  1. Clone the repository
  2. Set up a virtual environment
  3. Install the package and dependencies

Usage

Running as a standalone server

Run the server directly.

Integration with Claude Desktop

  1. Edit your Claude Desktop configuration.
  2. Restart Claude Desktop to apply changes.

Using with other MCP hosts

Configure the host to execute weather.py using Python 3.13 or higher.

API Reference

get_forecast(latitude, longitude)

Gets a 5-day weather forecast for the specified location.