READMEmain
We couldn't render this README. Read it on GitHub
Weather MCP Server
A Model Context Protocol (MCP) server that provides weather information and forecasts.
Features
- Current weather conditions
- Daily weather forecasts
- Support for metric and imperial units
- WeatherXU API integration
Setup
- Clone the repository
- Install dependencies:
npm install
- Create
.envfile with:
WEATHER_API_KEY=your_api_key_here
Available Tools
get-current-weather: Get current weather conditions- Parameters: latitude, longitude, units (metric/imperial)
get-forecast: Get daily weather forecast- Parameters: latitude, longitude, units (metric/imperial)
Dependencies
- @modelcontextprotocol/sdk
- zod
- dotenv
Running
npm start
API Reference
Base URL: https://api.weatherxu.com/v1/weather
