A Model Context Protocol (MCP) server that provides hourly and daily weather forecasts using the AccuWeather API. You need an AccuWeather API key (free tier available). Sign up here and create an app to get your key. Export your API key as an environment variable: Then run the MCP Weather server directly with: Or, for HTTP/REST access via supergateway: For integration with Claude Desktop or other
Add this skill
npx mdskills install TimLukaHorstmann/mcp-weatherWell-documented MCP server with clear tool descriptions and setup instructions for weather forecasts
1# MCP Weather Server23[](https://www.npmjs.com/package/@timlukahorstmann/mcp-weather)4[](https://github.com/TimLukaHorstmann/mcp-weather/blob/main/LICENSE)5[](https://www.npmjs.com/package/@timlukahorstmann/mcp-weather)6[](https://github.com/TimLukaHorstmann/mcp-weather/issues)7[](https://www.npmjs.com/package/@timlukahorstmann/mcp-weather)8[](https://archestra.ai/mcp-catalog/timlukahorstmann__mcp-weather)910<p align="center">11 <img src="logo.png" alt="MCP Weather Server Logo" width="250"/>12 <a href="https://glama.ai/mcp/servers/@TimLukaHorstmann/mcp-weather">13 <img width="380" height="200" src="https://glama.ai/mcp/servers/@TimLukaHorstmann/mcp-weather/badge" alt="Weather MCP server" />14 </a>15</p>1617A Model Context Protocol (MCP) server that provides hourly and daily weather forecasts using the AccuWeather API.1819---2021## Quick Start2223You need an AccuWeather API key (free tier available).24[Sign up here](https://developer.accuweather.com/) and create an app to get your key.2526Export your API key as an environment variable:2728```bash29export ACCUWEATHER_API_KEY=your_api_key_here30```3132Then run the MCP Weather server directly with:3334```bash35npx -y @timlukahorstmann/mcp-weather36```3738Or, for HTTP/REST access via [supergateway](https://github.com/supercorp-ai/supergateway):3940```bash41npx -y supergateway --stdio "npx -y @timlukahorstmann/mcp-weather" \42 --port 4004 \43 --baseUrl http://127.0.0.1:4004 \44 --ssePath /messages \45 --messagePath /message \46 --cors "*" \47 --env ACCUWEATHER_API_KEY="$ACCUWEATHER_API_KEY"48```4950---5152## MCP Server Config Example5354For integration with Claude Desktop or other MCP-compatible clients, add this to your config (e.g. `claude_desktop_config.json`):5556```json57{58 "mcpServers": {59 "weather": {60 "command": "npx",61 "args": ["-y", "@timlukahorstmann/mcp-weather"],62 "env": {63 "ACCUWEATHER_API_KEY": "your_api_key_here"64 }65 }66 }67}68```6970---7172## Overview7374This MCP server allows large language models (like Claude) to access real-time weather data. When integrated with an LLM, it enables the model to:7576- Fetch accurate, up-to-date weather forecasts77- Provide hourly weather data for the next 12 hours78- Access daily weather forecasts for up to 15 days79- Display data in both metric (°C) and imperial (°F) units80- View temperature, conditions, precipitation information, and other weather details8182## Available Tools8384### Hourly Weather Forecast85- Tool name: `weather-get_hourly`86- Provides hourly forecasts for the next 12 hours87- Parameters:88 - `location` (required): City or location name89 - `units` (optional): "metric" (Celsius, default) or "imperial" (Fahrenheit)9091### Daily Weather Forecast92- Tool name: `weather-get_daily`93- Provides daily forecasts for up to 15 days94- Parameters:95 - `location` (required): City or location name96 - `days` (optional): Number of forecast days (1, 5, 10, or 15; default is 5)97 - `units` (optional): "metric" (Celsius, default) or "imperial" (Fahrenheit)9899## Prerequisites100101- Node.js ≥18102- An AccuWeather API key (set via `.env` or your shell)103104## Setup1051061. **Clone this repository:**107 ```bash108 git clone https://github.com/TimLukaHorstmann/mcp-weather.git109 cd mcp-weather110 ```1111122. **Install dependencies:**113 ```bash114 npm install115 ```1161173. **Get an AccuWeather API key:**118 - Register at [AccuWeather API](https://developer.accuweather.com/)119 - Create a new app and obtain an API key1201214. **Create a `.env` file with your API key:**122 ```123 ACCUWEATHER_API_KEY=your_api_key_here124 ```1251265. **Build the project:**127 ```bash128 npm run build129 ```130131## Usage with Claude Desktop1321331. Configure Claude Desktop to use this MCP server:134 - Open Claude Desktop135 - Go to Settings > Developer > Edit Config136 - Add the following to your `claude_desktop_config.json`:137138 ```json139 {140 "mcpServers": {141 "weather": {142 "command": "npx",143 "args": ["-y", "@timlukahorstmann/mcp-weather"],144 "env": {145 "ACCUWEATHER_API_KEY": "your_api_key_here"146 }147 }148 }149 }150 ```1511522. Restart Claude Desktop1531543. In a new conversation, enable the MCP server by clicking the plug icon and selecting "weather"1551564. Now you can ask Claude for weather forecasts, such as:157 - "What's the hourly weather forecast for New York City?"158 - "Give me the 5-day forecast for London."159 - "What will the weather be like in Tokyo this week in Fahrenheit?"160 - "Will it rain in San Francisco tomorrow?"161162## Development163164- Install dev dependencies: `npm install`165- Lint your code: `npm run lint`166- Build: `npm run build`167- Run tests: `npm test`168- Start in dev mode: `npm run dev`169170## Contributing171172Contributions are welcome! Please feel free to submit a Pull Request.173174## Future Enhancements175176We're always looking to improve the MCP Weather Server. Here are some features we're considering for future releases:177178- **Extended Hourly Forecasts:** Beyond 12 hours, e.g., 24 or 48 hours.179- **Weather Alerts:** Integration with AccuWeather's severe weather alerts API.180- **Location Autocomplete:** Improved location searching with autocomplete suggestions.181- **Historical Weather Data:** Access to past weather conditions.182183If you have ideas for other features, feel free to open an issue!184185## Changelog186187### 0.4.0188- Removed `sessionId` requirement from all tools as it was not used for anything internally189- This simplifies integrations and reduces confusion for LLM usage190191### 0.3.0 and earlier192- Initial releases with basic functionality193194## License195196This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.197
Full transparency — inspect the skill content before installing.