The MCP Weather Server provides real-time weather information and forecasts using the Open-Meteo API with the following capabilities:
- Get current weather by city: Fetch weather conditions using city name with optional country code.
- Get weather forecast: Retrieve forecasts for up to 7 days for a given city.
- Get weather by coordinates: Obtain weather data using GPS coordinates (latitude and longitude).
- Multilingual support: Access weather descriptions in multiple languages (French, English, Spanish, German).
- Customizable units: Choose between metric (Celsius), imperial (Fahrenheit), or Kelvin measurements.
- Docker-ready: Optimized for production deployment using Docker and Docker Compose.
- TypeScript strict: Ensures robust parameter validation.
Enables integration with ChatGPT through plugins or custom integrations, providing real-time weather data and forecasts
Serveur MCP Weather
Serveur Model Context Protocol (MCP) fournissant des informations météorologiques en temps réel via l'API Open-Meteo.
✨ Fonctionnalités
- 🌤️ Météo actuelle par nom de ville ou coordonnées
- 📅 Prévisions jusqu'à 7 jours
- 🌍 Support multilingue (français, anglais, espagnol, allemand, etc.)
- 🆓 API gratuite Open-Meteo (sans clé requise)
- 🐳 Prêt pour Docker avec configuration de production optimisée
- 📊 TypeScript strict avec validation des paramètres
🚀 Installation et démarrage rapide
Prérequis
- Node.js 18+
- Docker et Docker Compose (optionnel)
Méthode 1: Démarrage local
Méthode 2: Docker (recommandé pour production)
📋 Outils MCP disponibles
get_weather
Obtient la météo actuelle pour une ville.
get_weather_forecast
Obtient les prévisions météo (1-7 jours).
get_weather_by_coordinates
Obtient la météo par coordonnées GPS.
⚙️ Configuration
Copiez .env.example
vers .env
et ajustez si nécessaire :
🛠️ Développement
📦 Structure du projet
🐳 Production avec Docker
Le projet inclut une configuration Docker optimisée avec :
- Build multi-stage pour une image légère
- Utilisateur non-root pour la sécurité
- Healthchecks intégrés
- Logs structurés
🔧 Intégration MCP
Ce serveur est compatible avec tous les clients MCP. Exemple d'utilisation avec Claude Desktop :
📄 License
MIT - Voir le fichier LICENSE pour plus de détails.
Développé avec ❤️ en TypeScript
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that provides real-time weather information and 5-day forecasts to AI assistants, supporting multiple languages and flexible units.
Related MCP Servers
- -security-license-qualityProvides a Model Context Protocol server that enables large language models to query and retrieve real-time weather forecasts for cities and regions across China.Last updated -Python
- AsecurityFlicenseAqualityA Model Context Protocol server that provides AI agents with tools to retrieve weather alerts and detailed forecasts for US locations using the National Weather Service API.Last updated -280TypeScript
- AsecurityFlicenseAqualityA Model Context Protocol server that provides comprehensive weather data querying capabilities based on the Caiyun Weather API, supporting real-time weather, forecasts, and alerts with multi-language support.Last updated -72TypeScript
- -security-license-qualityA Model Context Protocol server that provides current weather information and 3-day forecasts for specified cities using the Open-Meteo API.Last updated -Python