MCP ExplorerExplorer

Mcp Turkey Weather

@emredeveloperon 10 months ago
1 MIT
FreeCommunity
AI Systems
MCP-turkey-weather provides real-time weather data and forecasts for Turkish cities.

Overview

What is Mcp Turkey Weather

mcp-turkey-weather is a Model Context Protocol (MCP) tool that provides weather information for cities in Turkey.

Use cases

Use cases include checking the current weather for a specific city, comparing weather between two cities, receiving hourly weather updates, and getting activity recommendations based on weather conditions.

How to use

To use mcp-turkey-weather, install Python 3.11 or higher, install the required packages with ‘pip install httpx mcp’, obtain an OpenWeatherMap API key, and configure it in the ‘config.py’ file. Start the application by running ‘python weather.py’. Once running, you can send commands using an MCP client.

Key features

Key features include current weather updates for Turkish cities, hourly weather forecasts, air quality information, intercity weather comparisons, activity suggestions based on weather conditions, and weather alerts.

Where to use

mcp-turkey-weather can be used in various fields such as weather forecasting, environmental monitoring, tourism, and outdoor activity planning.

Content

Turkish Weather Application

Bu uygulama, Türkiye’deki şehirler için hava durumu bilgilerini sağlayan bir MCP (Model Context Protocol) aracıdır.

Özellikler

  • Türkiye’deki şehirler için güncel hava durumu
  • Saatlik hava durumu tahminleri
  • Hava kalitesi bilgileri
  • Şehirler arası hava karşılaştırması
  • Hava durumuna göre aktivite önerileri
  • Hava durumu alarmları

Kurulum

  1. Python 3.11 veya üstünü yükleyin
  2. Gerekli paketleri yükleyin: pip install httpx mcp
  3. OpenWeatherMap API anahtarı alın (https://openweathermap.org/api) ve config.py dosyasında ayarlayın

Kullanım

Uygulamayı başlatmak için:

python weather.py

MCP İstemcisi ile Kullanım

Bu uygulama bir MCP (Model Context Protocol) sunucusu olarak çalışır. MCP, dil modelleri ile araçlar arasında iletişim sağlayan açık bir protokoldür.

  1. Uygulamayı başlattıktan sonra, bir MCP istemcisi (örneğin Copilot, ChatGPT veya başka bir MCP destekli dil modeli) kullanarak komutlar gönderebilirsiniz.

  2. İstemci üzerinden şu formatta araçları çağırabilirsiniz:

Araçlar

  • hava_durumu_sehir: Belirli bir şehir için hava durumu bilgisi
  • saatlik_hava_durumu: Saatlik hava durumu tahminleri
  • hava_kalitesi: Hava kalitesi endeksi bilgileri
  • sehirler_karsilastir: İki şehri karşılaştırma
  • havadurumu_aktivite_onerileri: Hava durumuna göre aktivite önerileri

Proje Yapısı

  • weather.py: Ana uygulama ve MCP araçları
  • api.py: API istekleri için yardımcı fonksiyonlar
  • utils.py: Yardımcı fonksiyonlar
  • config.py: Yapılandırma sabitler ve şehir verileri

Lisans

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers