# weather-mcp

> MCP Server

This repository hosts a Model Context Protocol (MCP) server that fetches and provides 5-day weather forecasts for locations in Canada using the Government of Canada Weather API, integrating with Claude

## Overview

- **Category:** Developer Tools
- **Language:** Python
- **Stars:** 2
- **Forks:** 0
- **Owner:** SeanLF
- **GitHub:** https://github.com/SeanLF/weather-mcp
- **Created:** 2025-03-03T05:17:01+00:00
- **Updated:** 2025-03-03T05:28:34+00:00
- **Source:** https://model-context-protocol.com/servers/weather-forecast-canada-api-mcp-server

## Setup

## Setup

1. Clone this repository:
   ```bash
   git clone https://github.com/seanlf/weather-mcp.git
   cd weather-mcp
   ```

2. Set up a virtual environment (optional but recommended):
   ```bash
   python -m venv .venv
   source .venv/bin/activate  # On Windows: .venv\Scripts\activate
   ```

3. Install the package and dependencies:
   ```bash
   pip install -e .
   ```

## Tools

## Available Tools

		1. Fetch weather forecasts (for any location in Canada by providing latitude and longitude)
		2. Integrates with Claude Desktop (or any MCP-compatible client)
		3. Running as a standalone server (using `python weather.py`)
		4. API `get_forecast(latitude: float, longitude: float) -> str` (gets a 5-day weather forecast for the specified location)

