Skip to main content
Glama

🇹🇷 turkiye-mcp

Türkiye-specific live data for AI assistants — exchange rates, earthquakes, prayer times, weather and places to visit — via the Model Context Protocol.

CI npm version License: MIT Node.js MCP

English · Türkçe

🎬 Demo GIF coming soon


English

turkiye-mcp is an open-source MCP server that gives AI assistants such as Claude Desktop and Cursor access to up-to-date, Türkiye-specific public data. Ask "How much is the dollar today?", "Any recent earthquakes in Konya?" or "I'm in Sivas, what should I see?" and the assistant answers with live data from official and open sources, anywhere in Türkiye's 81 provinces.

  • 🔑 No API keys, no paid services. Every data source is free and public.

  • 🛟 Resilient. Timeouts, clear error messages and automatic fallback sources.

  • 🇹🇷 Turkish-aware. istanbul, İSTANBUL and Istanbul all work; times are in Türkiye time.

  • ✅ Tested. Unit and end-to-end tests with mocked network calls; CI on Linux and Windows.

Tools

Tool

What it does

Parameters

Source

doviz_kurlari

Official exchange rates (forex & banknote buying/selling)

kodlar? — e.g. ["USD","EUR"]

TCMB (Central Bank)

doviz_cevir

Converts between two currencies, TRY included (cross rates via TRY)

miktar, kaynak, hedef, kur_turu?

TCMB

son_depremler

Recent earthquakes in and around Türkiye

min_buyukluk?, il?, adet? (1-100), gun? (1-30), kaynak? (afad/kandilli)

AFAD, fallback: Kandilli Observatory

namaz_vakitleri

Daily prayer times for a province/district

il, ilce?, tarih? (YYYY-MM-DD)

Diyanet (via ezanvakti), fallback: Aladhan

hava_durumu

Current weather and up to 7-day forecast

il, ilce?, gun? (1-7)

Open-Meteo

gezilecek_yerler

Places to visit nearby (museums, historic sites, mosques/churches, nature), best-known first, with map links

il, ilce?, kategori? (muze/tarihi/ibadet/doga), adet?, yaricap_km?

Wikidata, fallback: Wikipedia

Tool names and parameters are in Turkish (snake_case); descriptions are in Turkish with a short English summary, so assistants understand them in either language.

Quick start

Requires Node.js 22 or newer.

Claude Desktop

Open Settings → Developer → Edit Config (or edit the file directly) and add:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "turkiye": {
      "command": "npx",
      "args": ["-y", "turkiye-mcp"]
    }
  }
}

Restart Claude Desktop. The tools appear under the 🔨 icon.

Cursor

Add the following to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project):

{
  "mcpServers": {
    "turkiye": {
      "command": "npx",
      "args": ["-y", "turkiye-mcp"]
    }
  }
}

Other MCP clients

Any client that supports stdio servers works. The command is npx -y turkiye-mcp.

git clone https://github.com/OmerP14/turkiye-mcp.git
cd turkiye-mcp
npm install
npm run build

Then point your client at the built file, using an absolute path:

{
  "mcpServers": {
    "turkiye": {
      "command": "node",
      "args": ["/absolute/path/to/turkiye-mcp/build/index.js"]
    }
  }
}

Example prompts

  • "How much is the dollar today?" → doviz_kurlari

  • "Convert 250 euros to Turkish lira." → doviz_cevir

  • "Were there any earthquakes above magnitude 3 in Muğla this week?" → son_depremler

  • "What time is the evening (akşam) prayer in Kadıköy today?" → namaz_vakitleri

  • "Will it rain in İzmir this weekend?" → hava_durumu

  • "I'm in Kadıköy, what's worth seeing nearby?" → gezilecek_yerler

  • "Any waterfalls or nature spots around Çamlıhemşin?" → gezilecek_yerler (kategori: doga)

Troubleshooting

Closing the window is not enough, because Claude keeps running in the background. Right-click the Claude icon in the system tray (Windows) or menu bar (macOS) and choose Quit, then reopen it and start a new chat. Settings → Developer shows each server's status.

Use Settings → Developer → Edit Config so that Claude opens the right file. Some Microsoft Store builds keep it under %LOCALAPPDATA%\Claude-Data\<folder>\ instead of %APPDATA%\Claude\. If you edit it by hand, keep the existing keys and only add mcpServers.

Apps installed from a store may not see your PATH. On Windows, either run npx through cmd:

{ "command": "cmd", "args": ["/c", "npx", "-y", "turkiye-mcp"] }

or use the absolute path to Node.js (find it with where node / which node):

{ "command": "C:\\Program Files\\nodejs\\node.exe", "args": ["C:\\path\\to\\turkiye-mcp\\build\\index.js"] }

The server tells the assistant to prefer its tools, but the final choice is the model's. Mention the data you want ("use TCMB rates", "from AFAD"), and allow the tools when Claude asks for permission. If a tool was used, the answer shows a tool call labelled turkiye above it.

Data sources

Data

Source

Notes

Exchange rates

TCMB

Published once per business day (~15:30). Indicative; banks apply their own rates.

Earthquakes

AFAD · Kandilli Observatory (KOERI)

AFAD times are UTC and converted to Türkiye time. Kandilli lists the last 500 events.

Prayer times

Diyanet via ezanvakti.emushaf.net · Aladhan

Aladhan uses the Diyanet calculation method (method=13), within ±1-2 min of official times.

Weather

Open-Meteo

CC BY 4.0. Free for non-commercial use.

Places to visit

Wikidata · Wikipedia (tr)

Wikidata is CC0; Wikipedia text is CC BY-SA. Ranked by how many language editions cover a place. Coverage is richer in big cities.

Locations

Open-Meteo Geocoding (GeoNames)

Turns province/district names into coordinates for weather and places.

Disclaimer: This is an independent project and is not affiliated with any of the institutions above. Earthquake data is for information only. In an emergency, follow official AFAD announcements.

Development

npm install
npm run build        # compile TypeScript to build/
npm test             # run tests (network is mocked)
npm run lint         # ESLint
npm run format       # Prettier
npm run inspector    # try the server in MCP Inspector

Project layout:

src/
├── index.ts         # entry point: starts the stdio transport
├── server.ts        # creates the server and registers all tools
├── lib/             # shared helpers: HTTP (timeouts, Turkish errors), cache, geocoding, text, time
└── tools/           # one file per data source: doviz, deprem, namaz, hava, gezi
tests/
├── fixtures/        # trimmed real responses from each source
└── ...              # unit tests + end-to-end tool tests via an in-memory MCP client

Important: stdout is reserved for MCP messages. Log only with console.error (ESLint enforces this).

Roadmap

  • TCMB exchange rates and currency conversion

  • Earthquakes (AFAD + Kandilli)

  • Prayer times (Diyanet)

  • Weather

  • Places to visit

  • 🚌 Public transport: nearest stops and the bus lines that serve them, planned. OpenStreetMap has this data for all of Türkiye, but its public query servers are not reliable enough yet. Real-time arrivals are out of scope (every city runs its own closed system).

  • Public holidays (resmi_tatiller)

  • Publish to npm

  • HTTP (Streamable HTTP) transport

Have an idea or know a good free data source? Open an issue.

Contributing

Contributions are welcome! See CONTRIBUTING.md for how to add a new tool, the coding rules and the pull request checklist. Release notes are in CHANGELOG.md.

License

MIT © 2026 Ömer Pehriz


Related MCP server: mcp-turkiye

Türkçe

turkiye-mcp, Claude Desktop ve Cursor gibi yapay zekâ asistanlarına Türkiye'ye özel güncel verileri sunan açık kaynaklı bir MCP sunucusudur. "Bugün dolar kaç?", "Konya'da son depremler?" ya da "Sivas'tayım, nereleri gezeyim?" diye sorduğunda asistan, 81 ilin hepsinde resmî ve açık kaynaklardan anlık veriyle yanıt verir.

  • 🔑 API anahtarı yok, ücretli servis yok. Tüm kaynaklar ücretsiz ve herkese açık.

  • 🛟 Dayanıklı. Zaman aşımı, anlaşılır Türkçe hata mesajları ve otomatik yedek kaynaklar.

  • 🇹🇷 Türkçeye duyarlı. istanbul, İSTANBUL, Istanbul hepsi çalışır; saatler Türkiye saatidir.

Araçlar

Araç

Ne yapar

Kaynak

doviz_kurlari

TCMB döviz kurları (döviz/efektif alış-satış)

TCMB

doviz_cevir

İki para birimi arasında çeviri (TRY dahil)

TCMB

son_depremler

Son depremler; büyüklük, il, adet ve gün filtresi

AFAD, yedek: Kandilli Rasathanesi

namaz_vakitleri

İl/ilçe için günlük namaz vakitleri

Diyanet (ezanvakti üzerinden), yedek: Aladhan

hava_durumu

Anlık hava durumu ve 7 güne kadar tahmin

Open-Meteo

gezilecek_yerler

Çevredeki gezilecek yerler (müze, tarihi yapı, cami/kilise, doğa); en bilinenler önce, harita bağlantılı

Wikidata, yedek: Vikipedi

Kurulum

Node.js 22 veya üstü gerekir.

Claude Desktop: Ayarlar → Geliştirici → Yapılandırmayı Düzenle (Windows'ta %APPDATA%\Claude\claude_desktop_config.json, macOS'ta ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "turkiye": {
      "command": "npx",
      "args": ["-y", "turkiye-mcp"]
    }
  }
}

Cursor: Aynı JSON'u ~/.cursor/mcp.json (tüm projeler) veya .cursor/mcp.json (tek proje) dosyasına ekle.

Ardından uygulamayı yeniden başlat. Kaynak koddan çalıştırmak için yukarıdaki "Running from source" bölümüne bak.

Sorun giderme

  • Araçlar görünmüyor: Pencereyi kapatmak yetmez, Claude arka planda çalışmaya devam eder. Sistem tepsisindeki Claude simgesine sağ tıklayıp Çıkış de, yeniden aç ve yeni bir sohbet başlat. Sunucunun durumu Ayarlar → Geliştirici bölümünde görünür.

  • claude_desktop_config.json bulunamıyor (Windows / Microsoft Store): Doğru dosyayı açmak için Ayarlar → Geliştirici → Yapılandırmayı Düzenle seçeneğini kullan. Bazı Store sürümleri bu dosyayı %APPDATA%\Claude\ yerine %LOCALAPPDATA%\Claude-Data\<klasör>\ altında tutar. Elle düzenlersen mevcut ayarları silme, sadece mcpServers bölümünü ekle.

  • "node" veya "npx" bulunamıyor: "command": "cmd", "args": ["/c", "npx", "-y", "turkiye-mcp"] kullan ya da Node'un tam yolunu yaz (where node komutuyla bulabilirsin).

  • Claude araç yerine web'de arıyor: Sunucu, asistana bu araçları tercih etmesini söyler ama son karar modelindir. İstediğin kaynağı belirt ("TCMB kuruyla", "AFAD'a göre") ve izin istendiğinde araca izin ver. Cevabın üstünde "Kullanıldı: Turkiye" yazıyorsa araç kullanılmıştır.

Örnek sorular

  • "Bugün dolar kaç?"

  • "250 euro kaç TL eder?"

  • "Konya'da son depremler?"

  • "Bu hafta Muğla'da 3'ün üzerinde deprem oldu mu?"

  • "Bugün Kadıköy'de akşam ezanı kaçta?"

  • "Hafta sonu İzmir'de yağmur var mı?"

  • "Kadıköy'deyim, yakınlarda nereleri gezebilirim?"

  • "Çamlıhemşin civarında şelale var mı?"

Yol haritası

  • TCMB döviz kurları ve çevirici

  • Depremler (AFAD + Kandilli)

  • Namaz vakitleri (Diyanet)

  • Hava durumu

  • Gezilecek yerler

  • 🚌 Toplu taşıma: en yakın duraklar ve oradan geçen otobüs hatları, planlanan. Veri OpenStreetMap'te tüm Türkiye için var, ancak herkese açık sorgu sunucuları henüz yeterince güvenilir değil. Otobüsün kaç dakikada geleceği kapsam dışı (her belediyenin kendi kapalı sistemi var).

  • Resmî tatiller (resmi_tatiller)

  • npm'de yayımlama

Katkı

Katkılarını bekliyoruz! Yeni araç ekleme rehberi ve kurallar için CONTRIBUTING.md, sürüm notları için CHANGELOG.md dosyasına bak.

Uyarı: Bu bağımsız bir projedir; yukarıdaki kurumlarla bağlantısı yoktur. Deprem verileri bilgi amaçlıdır. Acil durumlarda AFAD'ın resmî duyurularını takip edin.

Lisans: MIT © 2026 Ömer Pehriz

Available Tools

6 tools
doviz_cevirDöviz Çevirici (TCMB)B
Read-only

TCMB kurlarıyla iki para birimi arasında çeviri yapar; TRY dahil, çapraz kurlar TL üzerinden hesaplanır. / Converts an amount between two currencies (incl. TRY) using official TCMB rates.

Inputs: hedef (required), kaynak (required), miktar (required), kur_turu.

doviz_kurlariTCMB Döviz KurlarıA
Read-only

TCMB'nin yayımladığı güncel döviz kurlarını (döviz/efektif alış-satış) getirir. Kod verilmezse tüm kurlar döner. / Returns the latest official exchange rates published by the Central Bank of the Republic of Türkiye (TCMB).

Inputs: kodlar.

gezilecek_yerlerGezilecek YerlerA
Read-only

Türkiye'de bir il veya ilçe çevresindeki gezilecek, görülecek yerleri listeler: müze, tarihi yapı, kale, ören yeri, cami/kilise, şelale, vadi, kaplıca gibi doğal güzellikler. 'Nereleri gezeyim?', 'X'te ne görülür?', 'buradayım, yakında ne var?' gibi gezi/turistik sorular için kullan. Bilinirliğe göre sıralar; açıklama, mesafe, Vikipedi ve harita bağlantısı verir. / Sightseeing and tourist attractions (museums, historic sites, places of worship, nature) around a Turkish province or district: 'what to see / where to go in X'.

Inputs: il (required), adet, ilce, kategori, +1 more.

hava_durumuHava DurumuA
Read-only

Türkiye'deki bir il veya ilçe için anlık hava durumu ve günlük tahmin (sıcaklık, yağış, rüzgâr) getirir. / Current weather and daily forecast for a Turkish province or district (Open-Meteo).

Inputs: il (required), gun, ilce.

namaz_vakitleriNamaz Vakitleri (Diyanet)A
Read-only

Türkiye'deki bir il veya ilçe için Diyanet İşleri Başkanlığı'nın namaz vakitlerini getirir (imsak, güneş, öğle, ikindi, akşam, yatsı). / Daily prayer times for a Turkish province or district (Diyanet).

Inputs: il (required), ilce, tarih.

son_depremlerSon Depremler (AFAD / Kandilli)A
Read-only

AFAD veya Kandilli Rasathanesi verisiyle Türkiye ve çevresindeki son depremleri listeler; büyüklük, il ve adet filtresi desteklenir. Kaynak belirtilmezse AFAD kullanılır, ulaşılamazsa Kandilli'ye geçilir. / Lists recent earthquakes in and around Türkiye from AFAD or Kandilli Observatory.

Inputs: il, gun, adet, kaynak, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a clearly distinct domain: exchange rates, currency conversion, earthquakes, prayer times, weather, and tourist attractions. The two currency tools are easily distinguished as rates lookup vs. amount conversion.

    Naming Consistency4/5

    All names use lowercase snake_case Turkish phrasing, which is predictable and consistent. However, the set is noun-phrase oriented rather than a strict verb_noun convention, with doviz_cevir slightly differing in form.

    Tool Count5/5

    Six tools is well within the ideal range and each covers a distinct, useful Turkish information need. There is no redundancy or unnecessary bloat.

    Completeness4/5

    The tools cover several common Turkey-related information needs and provide both exchange rates and conversion for the currency domain. Broader Turkey utility coverage remains limited, but the chosen domains are adequately served.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to query Turkey's public data, including central-bank FX rates, earthquake catalog, weather forecasts, public holidays, and offline validation of Turkish ID, tax, and IBAN numbers, with sourced and timestamped responses.
      44
      98 npm
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to query Türkiye-specific data and logic without API keys: official central-bank exchange rates and currency conversion, live AFAD/Kandilli earthquakes, the official holiday calendar with business-day math, IBAN/TCKN/VKN validation, province and district lookup, prayer times, weather forecasts, plus Turkish-correct text casing and amounts written out in words. All 17 tools are read-only, with most working fully offline.
      17
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to retrieve current and historical TCMB exchange rates, list official and religious holidays, and calculate business-day additions while skipping weekends and holidays.
      3
      1
      MIT