About Turkish Weather Application
Turkish Weather Application is a Python MCP server for weather information on major cities in Türkiye. It provides current conditions, forecasts, air quality, comparisons, and weather-based activity suggestions.
Key features
- 01Current weather by city
- 02Hourly forecasts
- 03Air quality information
- 04Compare two cities
- 05Weather-based activity suggestions
Use cases
- 01Check conditions in a Turkish city
- 02Review hourly weather before an outing
- 03Compare weather across two cities
MCP support
It runs as an MCP server and exposes tools for current weather, hourly forecasts, air quality, city comparisons, and activity suggestions.
Details
From the project READMETurkish Weather MCP Server
A Model Context Protocol (MCP) server that provides weather tools for major cities in Türkiye.
Features
- Current weather by city
- Hourly weather forecasts
- Air quality information
- City-to-city weather comparison
- Activity suggestions based on weather conditions
- Weather alert style responses
Requirements
- Python 3.11+
- OpenWeather access token
Setup
git clone https://github.com/emredeveloper/MCP-Turkey-Weather.git
cd MCP-Turkey-Weather
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install httpx mcp
Set your token as an environment variable:
export OPENWEATHER_TOKEN=your_openweather_token
# Windows PowerShell:
# $env:OPENWEATHER_TOKEN="your_openweather_token"
Run
python weather.py
MCP Tools
hava_durumu_sehir: Get current weather for a Turkish citysaatlik_hava_durumu: Get hourly forecasthava_kalitesi: Get air quality index informationsehirler_karsilastir: Compare weather between two citieshavadurumu_aktivite_onerileri: Suggest activities based on weather
Project Structure
MCP-Turkey-Weather/
├── weather.py # MCP server and tool definitions
├── api.py # OpenWeather API helpers
├── utils.py # Formatting and utility helpers
├── config.py # Configuration and supported cities
└── README.md
Notes
- Do not commit real tokens to the repository.
- The server reads
OPENWEATHER_TOKENfrom the environment. - City names are normalized through the supported city dictionary in
config.py.
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.