weather-mcp
🌤️ Погодный MCP-сервер и интерфейс чат-бота для Cursor
Простой и полный проект на Python, который реализует Model Context Protocol (MCP) погодный сервер, готовый для Cursor IDE, в паре с веб-интерфейсом чат-бота для тестирования и общения с погодным агентом.
🌟 Возможности
🌐 MCP-сервер (
weather_mcp_server.py): Создан с помощью FastMCP через stdio-транспорт. Предоставляет погодные инструменты для Cursor и других MCP-клиентов.⚡ Бесплатная погода в реальном времени (
weather_service.py): Работает на Open-Meteo. Не требуются API-ключи. Работает для любого города в мире.🤖 Погодный агент (
agent.py): Преобразует естественные запросы ("Погода в Токио", "5-дневный прогноз для Лондона", "Качество воздуха в Париже") в вызовы инструментов.💻 Современный интерфейс чат-бота (
static/иapp.py): Тёмная тема, стекломорфный веб-интерфейс с визуальными карточками погоды, таблицами прогнозов и значками выполнения инструментов.🔌 Интеграция с Cursor (
.cursor/mcp.json): Предварительно настроенный JSON для параметров Cursor.
Related MCP server: weather-mcp-server
📁 Структура проекта
weather-mcp-chatbot/
│── .cursor/
│ └── mcp.json # Cursor MCP configuration
│── weather_service.py # Free Open-Meteo weather & geocoding integration
│── weather_mcp_server.py # MCP Server (stdio transport for Cursor)
│── agent.py # Weather agent NLP & tool caller
│── app.py # FastAPI web server & chat endpoint
│── static/
│ ├── index.html # Chatbot UI
│ ├── style.css # Modern dark-mode styling
│ └── app.js # Chatbot frontend logic
│── test_mcp.py # Automated test suite
│── requirements.txt # Python dependencies
└── README.md # Documentation & quickstart🚀 Быстрый старт
1. Установка зависимостей
pip install -r requirements.txt2. Запуск веб-интерфейса чат-бота
python app.pyОткройте браузер и перейдите по адресу: http://127.0.0.1:8000
3. Запуск автоматических тестов
python test_mcp.py🔌 Как подключиться к Cursor
Cursor может подключаться напрямую к вашему Python MCP-серверу для предоставления данных о погоде в реальном времени внутри Cursor Chat / Composer.
Вариант A: Использование .cursor/mcp.json (рекомендуется)
Откройте этот каталог проекта в Cursor:
File -> Open Folder -> weather-mcp-chatbotФайл
.cursor/mcp.jsonвнутри проекта автоматически обнаруживается Cursor.
Вариант B: Добавление в настройках Cursor
В Cursor откройте Настройки (
Ctrl + ,илиCmd + ,).Перейдите в Возможности -> MCP-серверы.
Нажмите Добавить новый MCP-сервер:
Имя:
weatherТип:
command(stdio)Команда:
python C:\Users\admin\.gemini\antigravity\scratch\weather-mcp-chatbot\weather_mcp_server.py
Нажмите Сохранить и проверьте зелёный индикатор состояния.
Использование в чате Cursor:
В Cursor Composer или Chat теперь можно спрашивать:
"Какая сейчас погода в Токио?"
"Проверь 5-дневный прогноз для Берлина с помощью @weather"
"Какое качество воздуха в Париже?"
Cursor вызовет MCP-инструменты (get_current_weather, get_weather_forecast, get_air_quality) для получения живых данных!
🛠️ Предоставляемые MCP-инструменты
Имя инструмента | Параметры | Описание |
|
| Температура в реальном времени, состояние, влажность, скорость ветра, давление |
|
| Многодневный прогноз с ежедневными максимумами/минимумами и вероятностью осадков |
|
| Индекс качества воздуха (US & EU AQI), уровни PM2.5, PM10, озона |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents like GitHub Copilot to retrieve real-time weather data for any city using the Open-Meteo API, no API key required.9
- AlicenseAqualityCmaintenanceProvides real-time weather and forecast data via MCP tools, enabling AI agents to query current weather and up to 3-day forecasts for any city.3MIT
- FlicenseNot gradedqualityBmaintenanceEnables querying current weather, 7-day forecast, UV index, and air quality for any city using the free Open-Meteo API, without requiring an API key.15
- AlicenseNot gradedqualityBmaintenanceProvides weather data including current conditions, forecasts, and summaries via Open-Meteo with no API key required, enabling natural language queries through an MCP interface.MIT
Related MCP Connectors
Air Quality MCP — wraps air-quality-api.open-meteo.com (free, no auth)
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nateksharma4698-oss/weather-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server