RedBaron90/mcp-weather-server
3.1
If you are the rightful owner of mcp-weather-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The MCP Weather Server provides real-time weather information for cities worldwide using the Open-Meteo API.
Tools
1
Resources
0
Prompts
0
MCP Weather Server
A Model Context Protocol (MCP) server that provides weather information for cities around the world.
Features
- Get current weather conditions for any city
- Includes temperature, humidity, precipitation, and weather conditions
- Uses Open-Meteo API for weather data
- Built with TypeScript and the MCP SDK
Installation
npm install
Usage
This MCP server is designed to be used with MCP-compatible clients. It provides a get-weather tool that takes a city name as input and returns comprehensive weather data.
Tool: get-weather
Parameters:
city(string): The name of the city to get weather for
Returns:
- Current weather conditions
- Hourly forecast for the day
- Temperature, humidity, precipitation data
Development
Run with tsx:
npx tsx main.ts
API
Uses the Open-Meteo API for weather data:
- Geocoding: https://geocoding-api.open-meteo.com/
- Weather: https://api.open-meteo.com/
License
MIT