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
- Clone the repository
- Set up a virtual environment
- Install the package and dependencies
Usage
Running as a standalone server
Run the server directly.
Integration with Claude Desktop
- Edit your Claude Desktop configuration.
- 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.