mcpField
T
Turkish Weather Application

Turkish Weather Application

github.com/emredeveloperOther1Updated 25w ago

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

  1. 01Current weather by city
  2. 02Hourly forecasts
  3. 03Air quality information
  4. 04Compare two cities
  5. 05Weather-based activity suggestions

Use cases

  1. 01Check conditions in a Turkish city
  2. 02Review hourly weather before an outing
  3. 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 README

Turkish 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 city
  • saatlik_hava_durumu: Get hourly forecast
  • hava_kalitesi: Get air quality index information
  • sehirler_karsilastir: Compare weather between two cities
  • havadurumu_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_TOKEN from the environment.
  • City names are normalized through the supported city dictionary in config.py.

License

MIT

Comments

Markdown supported

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.