Integrations
Used for storing API credentials securely in a .env file for the OpenWeatherMap API integration
Required as the runtime environment (version 3.10+) for executing the MCP server
Инструмент Weather MCP (ориентирован на Индию)
Сервер MCP (Model Context Protocol), использующий API OpenWeatherMap для предоставления:
- Погодные условия в реальном времени
- 5-дневные прогнозы погоды
- Данные о качестве воздуха
- Поиск местоположения
🚀 Настройка
- Требуется Python 3.10+ .
- Установить зависимости:Copy
- Получите ключ API от OpenWeatherMap .
- Создайте файл
.env
в корневой папке:Copy
🛠 Доступные инструменты
get_current_weather(location: str)
Возвращает текущую погоду для указанного местоположения.
get_weather_forecast(location: str, days: int = 5)
Возвращает прогноз погоды (до 5 дней) для указанного местоположения.
get_air_quality(location: str)
Возвращает показатели качества воздуха и уровень AQI.
search_location(query: str)
Возвращает до 5 совпадений местоположений на основе запроса.
🧪 Пример вывода (Индия)
Текущая погода (Дели)
Прогноз погоды (Мумбаи)
Качество воздуха (Бангалор)
Поиск местоположения
🧰 Обработка ошибок
Все инструменты возвращают четкие сообщения об ошибках:
📌 Заметки
- Убедитесь, что файл
.env
настроен правильно. - Активация ключей API может занять некоторое время.
- Бесплатный уровень OpenWeatherMap: 60 вызовов API в минуту.
🧑💻 Запустите сервер
После запуска вы сможете использовать этот сервер с MCP-совместимыми клиентами, такими как Claude Desktop или другими инструментами автоматизации.
This server cannot be installed
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.
Сервер MCP, ориентированный на Индию, который предоставляет информацию о погодных условиях в режиме реального времени, прогнозы, данные о качестве воздуха и возможности поиска местоположения с помощью API OpenWeatherMap.
Related MCP Servers
- -securityFlicense-qualityProvides current weather and air quality data for any city using WeatherAPI, easily integrating with MCP clients like n8n and Claude Desktop App.Last updated -214JavaScript
- AsecurityAlicenseAqualityAn MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.Last updated -1PythonMIT License
- -securityFlicense-qualityAn MCP server implementation that allows users to fetch and display weather information for specified cities, including temperature, humidity, wind speed, and weather descriptions.Last updated -Python
- -securityAlicense-qualityAn MCP server that connects to OpenWeatherMap's API to provide current weather data and multi-day forecasts for locations worldwide in different measurement units.Last updated -51TypeScriptMIT License