Skip to main content
Glama
Mevzuat MCP

Mevzuat MCP

by saidsurucu

Mevzuat MCP: Adalet Bakanlığı Mevzuat Bilgi Sistemi için MCP Sunucusu

Bu proje, Adalet Bakanlığı'na ait Mevzuat Bilgi Sistemi'ne (mevzuat.gov.tr) erişimi kolaylaştıran bir FastMCP sunucusu oluşturur. Bu sayede, Mevzuat Bilgi Sistemi'nden mevzuat arama ve tüm mevzuat içeriklerini Markdown formatında alma işlemleri, Model Context Protocol (MCP) destekleyen LLM (Büyük Dil Modeli) uygulamaları (örneğin Claude Desktop veya 5ire) ve diğer istemciler tarafından araç (tool) olarak kullanılabilir hale gelir.

örnek

🎯 Temel Özellikler

  • Adalet Bakanlığı Mevzuat Bilgi Sistemi'ne programatik erişim için standart bir MCP arayüzü.

  • 26 farklı tool ile kapsamlı mevzuat erişimi (iki farklı veri kaynağı):

    • mevzuat.gov.tr üzerinden 21 araç (türe özel arama ve içerik)

    • bedesten.adalet.gov.tr üzerinden 5 araç (birleşik arama, gerekçe, içindekiler)

  • Desteklenen 12 mevzuat türü:

    • Kanun - Türkiye Cumhuriyeti kanunları

    • KHK - Kanun Hükmünde Kararnameler

    • Tüzük - Tüzükler

    • Kurum Yönetmeliği - Kurum ve kuruluş yönetmelikleri

    • Üniversite Yönetmeliği - Üniversite yönetmelikleri

    • Cumhurbaşkanlığı Kararnamesi - Cumhurbaşkanlığı kararnameleri

    • Cumhurbaşkanı Kararı - Cumhurbaşkanı kararları

    • CB Yönetmeliği - Cumhurbaşkanlığı ve Bakanlar Kurulu yönetmelikleri

    • CB Genelgesi - Cumhurbaşkanlığı genelgeleri

    • Bakanlar Kurulu Yönetmeliği - Bakanlar Kurulu yönetmelikleri

    • Tebliğ - Tebliğler

    • Mülga Mevzuat - Yürürlükten kaldırılmış mevzuat

  • mevzuat.gov.tr araçları (21 tool): Her mevzuat türü için çift tool yapısı:

    • Arama tool'u: Başlık ve içerikte arama, Boolean operatörler (AND, OR, NOT), tarih filtreleme

    • İçinde arama tool'u: Madde bazında arama (keyword + semantik), alakalılık skoru ile sıralama

  • bedesten.adalet.gov.tr araçları (5 tool): Tüm mevzuat türlerini tek araçla kapsar:

    • search_mevzuat: 12 türde birleşik arama (başlık, içerik, numara, RG tarihi/sayısı filtreleme)

    • get_mevzuat_content: Tam metin getirme

    • search_within_mevzuat: Madde bazında anahtar kelime araması

    • get_mevzuat_gerekce: Kanun gerekçesi (amaç, komisyon raporları, madde gerekçeleri)

    • get_mevzuat_madde_tree: İçindekiler / madde ağacı (bölüm-madde hiyerarşisi)

  • Semantik Arama: Tüm 9 search_within_* aracında semantic=True parametresi ile doğal dilde anlam tabanlı arama. OpenRouter API üzerinden embedding modelleri kullanır.

  • Gelişmiş özellikler:

    • PDF'leri Mistral OCR ile metin çıkarma (CB Kararı ve CB Genelgesi için)

    • HTML'den Markdown'a otomatik dönüştürme

    • In-memory caching (1 saat TTL) ile hızlı erişim

    • Boolean arama operatörleri (AND, OR, NOT)

    • Tam cümle araması (exact phrase)

    • Tarih aralığı filtreleme

  • Claude Desktop ve 5ire gibi MCP istemcileri ile kolay entegrasyon


🌐 En Kolay Yol: Ücretsiz Remote MCP (Claude Desktop için)

Hiçbir kurulum gerektirmeyen, doğrudan kullanıma hazır MCP sunucusu:

  1. Claude Desktop'ı açın

  2. Settings > Connectors > Add custom connector

  3. Açılan pencerede:

    • Name: Mevzuat MCP

    • URL: https://mevzuat.surucu.dev/mcp

  4. Save butonuna basın

Hepsi bu kadar! Artık Mevzuat MCP ile konuşabilirsiniz.

Not: Bu ücretsiz sunucu topluluk için sağlanmaktadır. Yoğun kullanım için kendi sunucunuzu kurmanız önerilir.


🪐 Google Antigravity ile Kullanım

  1. Agent session açın ve editörün yan panelindeki "…" dropdown menüsüne tıklayın

  2. MCP Servers seçeneğini seçin - MCP Store açılacak

  3. Üstteki Manage MCP Servers butonuna tıklayın

  4. View raw config seçeneğine tıklayın

  5. mcp_config.json dosyasına aşağıdaki yapılandırmayı ekleyin:

{
  "mcpServers": {
    "mevzuat-mcp": {
      "serverUrl": "https://mevzuat.surucu.dev/mcp/",
      "headers": {
        "Content-Type": "application/json"
      }
    }
  }
}

💡 İpucu: Remote MCP sayesinde Python, uv veya herhangi bir kurulum yapmadan doğrudan Google Antigravity üzerinden Mevzuat Bilgi Sistemi'ne erişebilirsiniz!

Lokal uv Kurulumu — Kopyala-Yapıştır

Ön Gereksinimler: Bilgisayarınızda Python, uv (kurulum) ve Node.js (indir) kurulu olmalı. (Node.js yalnızca aşağıdaki kurulum komutunu çalıştırmak için gerekir; MCP'yi uvx çalıştırır.)

Aşağıdaki bloğun tamamını terminale yapıştırın. Komut, Antigravity'nin okuduğu ~/.gemini/config/mcp_config.json dosyasını sizin yerinize oluşturur/günceller (varsa diğer sunucularınız korunur):

macOS / Linux (Terminal):

node - <<'MEVZUAT'
const fs=require("fs"),os=require("os"),path=require("path");
const dir=path.join(os.homedir(),".gemini","config"),file=path.join(dir,"mcp_config.json");
fs.mkdirSync(dir,{recursive:true});
let cfg={};try{cfg=JSON.parse(fs.readFileSync(file,"utf8"))}catch{}
if(typeof cfg!=="object"||cfg===null||Array.isArray(cfg))cfg={};
if(typeof cfg.mcpServers!=="object"||cfg.mcpServers===null)cfg.mcpServers={};
cfg.mcpServers["mevzuat-mcp"]={command:"uvx",args:["--from","git+https://github.com/saidsurucu/mevzuat-mcp","mevzuat-mcp"]};
fs.writeFileSync(file,JSON.stringify(cfg,null,2)+"\n");
console.log("mevzuat-mcp eklendi -> "+file);
MEVZUAT

Windows (PowerShell):

@'
const fs=require("fs"),os=require("os"),path=require("path");
const dir=path.join(os.homedir(),".gemini","config"),file=path.join(dir,"mcp_config.json");
fs.mkdirSync(dir,{recursive:true});
let cfg={};try{cfg=JSON.parse(fs.readFileSync(file,"utf8"))}catch{}
if(typeof cfg!=="object"||cfg===null||Array.isArray(cfg))cfg={};
if(typeof cfg.mcpServers!=="object"||cfg.mcpServers===null)cfg.mcpServers={};
cfg.mcpServers["mevzuat-mcp"]={command:"uvx",args:["--from","git+https://github.com/saidsurucu/mevzuat-mcp","mevzuat-mcp"]};
fs.writeFileSync(file,JSON.stringify(cfg,null,2)+"\n");
console.log("mevzuat-mcp eklendi -> "+file);
'@ | node -

Komut mevzuat-mcp eklendi -> ... çıktısını verdiğinde kurulum tamamlanmıştır. Antigravity'yi (açıksa kapatıp) yeniden başlatın; mevzuat-mcp araçları otomatik yüklenir.

💡 İpucu: Lokal kurulumda mevzuat kaynaklarına erişim doğrudan bilgisayarınızda uvx ile çalışır; uzaktan sunucuya ihtiyaç duymaz.


🚀 Claude Haricindeki Modellerle Kullanmak İçin Çok Kolay Kurulum (Örnek: 5ire için)

Bu bölüm, Mevzuat MCP aracını 5ire gibi Claude Desktop dışındaki MCP istemcileriyle kullanmak isteyenler içindir.

  • Python Kurulumu: Sisteminizde Python 3.11 veya üzeri kurulu olmalıdır. Kurulum sırasında "Add Python to PATH" (Python'ı PATH'e ekle) seçeneğini işaretlemeyi unutmayın. Buradan indirebilirsiniz.

  • Git Kurulumu (Windows): Bilgisayarınıza git yazılımını indirip kurun. "Git for Windows/x64 Setup" seçeneğini indirmelisiniz.

  • uv Kurulumu:

    • Windows Kullanıcıları (PowerShell): Bir CMD ekranı açın ve bu kodu çalıştırın: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

    • Mac/Linux Kullanıcıları (Terminal): Bir Terminal ekranı açın ve bu kodu çalıştırın: curl -LsSf https://astral.sh/uv/install.sh | sh

  • Microsoft Visual C++ Redistributable (Windows): Bazı Python paketlerinin doğru çalışması için gereklidir. Buradan indirip kurun.

  • İşletim sisteminize uygun 5ire MCP istemcisini indirip kurun.

  • 5ire'ı açın. Workspace -> Providers menüsünden kullanmak istediğiniz LLM servisinin API anahtarını girin.

  • Tools menüsüne girin. +Local veya New yazan butona basın.

    • Tool Key: mevzuatmcp

    • Name: Mevzuat MCP

    • Command:

      uvx --from git+https://github.com/saidsurucu/mevzuat-mcp mevzuat-mcp
    • Save butonuna basarak kaydedin. 5ire ayarları

  • Şimdi Tools altında Mevzuat MCP'yi görüyor olmalısınız. Üstüne geldiğinizde sağda çıkan butona tıklayıp etkinleştirin (yeşil ışık yanmalı).

  • Artık Mevzuat MCP ile konuşabilirsiniz.


⚙️ Claude Desktop Manuel Kurulumu

  1. Ön Gereksinimler: Python, uv, (Windows için) Microsoft Visual C++ Redistributable'ın sisteminizde kurulu olduğundan emin olun. Detaylı bilgi için yukarıdaki "5ire için Kurulum" bölümündeki ilgili adımlara bakabilirsiniz.

  2. Claude Desktop Settings -> Developer -> Edit Config.

  3. Açılan claude_desktop_config.json dosyasına mcpServers altına ekleyin:

    {
      "mcpServers": {
        // ... (varsa diğer sunucularınız) ...
        "Mevzuat MCP": {
          "command": "uvx",
          "args": [
            "--from",
            "git+https://github.com/saidsurucu/mevzuat-mcp",
            "mevzuat-mcp"
          ]
        }
      }
    }
  4. Claude Desktop'ı kapatıp yeniden başlatın.


🔑 API Anahtarları (Opsiyonel)

Semantik Arama - OpenRouter API

Tüm search_within_* araçlarında semantic=True ile doğal dilde arama yapabilmek için:

  1. OpenRouter üzerinden API anahtarı alın

  2. Environment variable olarak ayarlayın:

    OPENROUTER_API_KEY=your_api_key_here
  3. Varsayılan model: google/gemini-embedding-001 (3072 boyut). Alternatif olarak:

    EMBEDDING_MODEL=intfloat/multilingual-e5-large  # 1024 boyut
  4. API anahtarı olmadan da tüm araçlar çalışır, sadece semantic=True kullanılamaz

Mistral OCR

CB Kararı ve CB Genelgesi gibi PDF tabanlı mevzuatlar için Mistral OCR kullanılır:

  1. Mistral AI Console üzerinden API anahtarı alın

  2. Environment variable olarak ayarlayın:

    MISTRAL_API_KEY=your_api_key_here
  3. API anahtarı olmadan da sistem çalışır, ancak PDF'ler markitdown ile işlenir (daha düşük kalite)


🛠️ Kullanılabilir Araçlar (MCP Tools)

Bu FastMCP sunucusu LLM modelleri için 26 araç sunar (iki farklı veri kaynağı).

A. mevzuat.gov.tr Araçları (21 araç)

Türe özel arama ve içerik araçları. Her mevzuat türü için ayrı tool'lar.

Kanun (Laws)

  • search_kanun: Kanun başlık ve içeriklerinde arama yapar

  • search_within_kanun: Kanun maddelerinde anahtar kelime veya semantik arama yapar

KHK (Decree Laws)

  • search_khk: KHK başlık ve içeriklerinde arama yapar

  • search_within_khk: KHK maddelerinde anahtar kelime veya semantik arama yapar

Tüzük (Statutes)

  • search_tuzuk: Tüzük başlık ve içeriklerinde arama yapar

  • search_within_tuzuk: Tüzük maddelerinde anahtar kelime veya semantik arama yapar

Kurum Yönetmeliği (Institutional Regulations)

  • search_kurum_yonetmelik: Kurum yönetmeliği başlık ve içeriklerinde arama yapar

  • search_within_kurum_yonetmelik: Kurum yönetmeliği maddelerinde anahtar kelime veya semantik arama yapar

Cumhurbaşkanlığı Kararnamesi (Presidential Decrees)

  • search_cbk: CB Kararnamesi başlık ve içeriklerinde arama yapar

  • search_within_cbk: CB Kararnamesi maddelerinde anahtar kelime veya semantik arama yapar

Cumhurbaşkanı Kararı (Presidential Decisions)

  • search_cbbaskankarar: CB Kararı başlık ve içeriklerinde arama yapar

  • get_cbbaskankarar_content: CB Kararı tam içeriğini getirir (PDF - OCR destekli)

  • search_within_cbbaskankarar: CB Kararı içeriğinde anahtar kelime veya semantik arama yapar

CB Yönetmeliği (Presidential Regulations)

  • search_cbyonetmelik: CB Yönetmeliği başlık ve içeriklerinde arama yapar

  • search_within_cbyonetmelik: CB Yönetmeliği maddelerinde anahtar kelime veya semantik arama yapar

CB Genelgesi (Presidential Circulars)

  • search_cbgenelge: CB Genelgesi başlıklarında arama yapar

  • get_cbgenelge_content: CB Genelgesi tam içeriğini getirir (PDF - OCR destekli)

  • search_within_cbgenelge: CB Genelgesi içeriğinde anahtar kelime veya semantik arama yapar

Tebliğ (Communiqués)

  • search_teblig: Tebliğ başlık ve içeriklerinde arama yapar

  • get_teblig_content: Tebliğ tam içeriğini getirir

  • search_within_teblig: Tebliğ maddelerinde anahtar kelime veya semantik arama yapar

mevzuat.gov.tr Ortak Parametreler

Arama Tool'ları için:

  • aranacak_ifade: Aranacak kelime veya kelime grupları (AND, OR, NOT operatörleri desteklenir)

  • tam_cumle: Tam cümle eşleşmesi (exact phrase)

  • baslangic_tarihi / bitis_tarihi: Tarih aralığı filtreleme

  • page_number, page_size: Sayfalama

İçinde Arama Tool'ları için:

  • mevzuat_no: Mevzuat numarası (arama sonucundan alınır)

  • keyword: Aranacak anahtar kelime veya doğal dilde sorgu

  • semantic: True ise semantik arama, False ise anahtar kelime araması (varsayılan: False)

  • case_sensitive: Büyük/küçük harf duyarlılığı (sadece keyword modunda)

  • max_results: Maksimum sonuç sayısı

B. bedesten.adalet.gov.tr Araçları (5 araç)

Tüm mevzuat türlerini tek araçla kapsayan birleşik araçlar. Gerekçe ve içindekiler gibi ek özellikler sunar.

search_mevzuat - Birleşik Mevzuat Arama

Tüm 12 mevzuat türünde başlık ve içerik araması yapar.

  • phrase: İçerikte tam metin arama (Solr sözdizimi)

  • mevzuat_adi: Mevzuat adı/başlığında arama

  • mevzuat_no: Mevzuat numarası filtresi

  • mevzuat_tur: Mevzuat türü filtresi (KANUN, KHK, TUZUK, YONETMELIK, CB_KARARNAME, CB_KARAR, CB_YONETMELIK, CB_GENELGE, KKY, UY, TEBLIGLER, MULGA)

  • basliktaAra: Sadece başlıkta ara (varsayılan: true)

  • tamCumle: Tam cümle eşleşmesi (varsayılan: false)

  • resmi_gazete_tarihi: Resmi Gazete tarihi filtresi (GG/AA/YYYY)

  • resmi_gazete_sayisi: Resmi Gazete sayısı filtresi

  • page, page_size: Sayfalama

get_mevzuat_content - Tam Metin Getirme

Bir mevzuatın tam metnini Markdown formatında getirir.

  • mevzuat_id: Mevzuat ID'si (search_mevzuat sonucundan alınır, mevzuat numarası değildir)

search_within_mevzuat - Madde Bazında Arama

Bir mevzuatın maddeleri içinde anahtar kelime araması yapar.

  • mevzuat_id: Mevzuat ID'si (search_mevzuat sonucundan alınır)

  • keyword: Aranacak kelime veya Boolean ifade (AND, OR, NOT)

  • case_sensitive: Büyük/küçük harf duyarlılığı (varsayılan: false)

  • max_results: Maksimum sonuç sayısı (varsayılan: 25)

get_mevzuat_gerekce - Kanun Gerekçesi

Bir kanunun gerekçesini getirir (amaç, komisyon raporları, madde gerekçeleri).

  • gerekce_id: Gerekçe ID'si (search_mevzuat sonucundan alınır)

get_mevzuat_madde_tree - İçindekiler / Madde Ağacı

Bir mevzuatın bölüm-madde hiyerarşisini getirir.

  • mevzuat_id: Mevzuat ID'si (search_mevzuat sonucundan alınır)

Arama Modları

Keyword Modu (semantic=False, varsayılan):

keyword: "yatırımcı AND tazmin"

Boolean operatörler (AND, OR, NOT) ile kesin kelime eşleşmesi. Operatörler BÜYÜK HARF olmalıdır.

Semantik Mod (semantic=True, sadece mevzuat.gov.tr araçları):

keyword: "yatırımcının zararının tazmini"

Doğal dilde anlam tabanlı arama. Kelime eşleşmesi aramaz, kavramsal benzerlik ile sonuç döner. OPENROUTER_API_KEY gerektirir.


📜 Lisans

Bu proje MIT Lisansı altında lisanslanmıştır. Detaylar için LICENSE dosyasına bakınız.

Available Tools

26 tools
get_cbbaskankarar_contentA

Retrieve the full content of a Turkish Presidential Decision (Cumhurbaşkanı Kararı) in Markdown format.

This tool fetches the PDF document and converts it to Markdown. Presidential Decisions are available only as PDF files. Use 'search_cbbaskankarar' first to find the decision number and series.

Returns:

  • Full decision content formatted as Markdown (converted from PDF)

  • Ready for analysis, summarization, or question answering

Example usage:

  1. Search for decisions: search_cbbaskankarar(baslangic_tarihi="2023", bitis_tarihi="2024")

  2. Get full content: get_cbbaskankarar_content(mevzuat_no="10452", mevzuat_tertip="5")

Inputs: mevzuat_no (required), mevzuat_tertip. Returns: Model for the content of legislation (reused from old models).

get_cbgenelge_contentA

Retrieve the full content of a Turkish Presidential Circular (Cumhurbaşkanlığı Genelgesi) in Markdown format.

This tool fetches the PDF document and converts it to Markdown. Presidential Circulars are available only as PDF files. Use 'search_cbgenelge' first to find the circular number and Official Gazette date.

IMPORTANT: You must provide the 'resmi_gazete_tarihi' (Official Gazette date) from the search results. This is required to construct the correct PDF URL.

Returns:

  • Full circular content formatted as Markdown (converted from PDF)

  • Ready for analysis, summarization, or question answering

Example usage:

  1. Search for circulars: search_cbgenelge(baslangic_tarihi="2025")

  2. Get full content: get_cbgenelge_content(mevzuat_no="16", resmi_gazete_tarihi="20/09/2025", mevzuat_tertip="5")

Inputs: mevzuat_no (required), resmi_gazete_tarihi (required), mevzuat_tertip. Returns: Model for the content of legislation (reused from old models).

get_mevzuat_contentA

Retrieve the full content of a Turkish legislation document from bedesten.adalet.gov.tr.

Returns the complete text in plain format (HTML tags stripped). Use mevzuatId from search_mevzuat results (not the law number).

WARNING: Large legislation (e.g., TCK 5237, TTK 6102) can be 100K+ characters. For large documents, prefer search_within_mevzuat to find specific articles instead of loading the entire text.

Workflow: search_mevzuat → get mevzuatId → get_mevzuat_content

Inputs: mevzuat_id (required). Returns: result

get_mevzuat_gerekceA

Retrieve the law rationale (gerekçe / kanun gerekçesi) from bedesten.adalet.gov.tr.

The gerekçe contains:

  • Purpose and reasoning behind the law (kanunun amacı ve gerekçesi)

  • Parliamentary committee reports (komisyon raporları)

  • Article-by-article justifications (madde gerekçeleri)

Only available for KANUN type legislation that has a published rationale. Not all laws have a gerekçe — check if gerekceId is present in search_mevzuat results.

Workflow: search_mevzuat → check gerekceId in results → get_mevzuat_gerekce(gerekceId)

Inputs: gerekce_id (required). Returns: result

get_mevzuat_madde_treeA

Get the article tree (table of contents / içindekiler) of a Turkish legislation from bedesten.adalet.gov.tr.

Returns a hierarchical structure showing:

  • Bölüm/Kısım (chapters/parts) as parent nodes

  • Madde (articles) as leaf nodes with maddeId, number, and title

  • Each node may have a gerekceId for article-level rationale

Works well with: KANUN, CB_KARARNAME, KHK, TUZUK, MULGA. May return empty for: CB_KARAR, CB_GENELGE, TEBLIGLER (these often lack structured articles).

Use this to understand the structure of a large law before diving into specific articles with search_within_mevzuat or get_mevzuat_content.

Workflow: search_mevzuat → get mevzuatId → get_mevzuat_madde_tree(mevzuatId)

Inputs: mevzuat_id (required). Returns: result

get_teblig_contentA

Retrieve the full content of a Turkish communiqué (Tebliğ) in Markdown format.

This tool fetches the complete text of a communiqué identified by its number. Use 'search_teblig' first to find the communiqué number and series.

Returns:

  • Full communiqué content formatted as Markdown

  • Ready for analysis, summarization, or question answering

Example usage:

  1. Search for communiqués: search_teblig(aranacak_ifade="katma değer vergisi")

  2. Get full content: get_teblig_content(mevzuat_no="42331", mevzuat_tertip="5")

Inputs: mevzuat_no (required), mevzuat_tertip. Returns: Model for the content of legislation (reused from old models).

search_cbbaskankararA

Search for Turkish Presidential Decisions (Cumhurbaşkanı Kararı) in both titles and content.

IMPORTANT: Search is keyword-based, NOT by decision number. Use descriptive Turkish terms. Presidential Decisions are executive decisions (different from Presidential Decrees/Kararnamesi). Note: Bakanlar Kurulu Kararı (BKK) is NOT a separate type - older BKKs may appear here or in Kanun.

Query Syntax: Simple keyword, AND, OR, NOT, +required, (grouping), "exact phrase"

Example queries:

  • "atama" - Find decisions about appointments

  • "ihracat AND rejim" - Export regime decisions

  • "vergi" or "gümrük" - Tax or customs decisions

  • Leave empty with dates to list all decisions from a period

Returns: Decision number, title, publication date, Official Gazette info. PDF format only.

Inputs: aranacak_ifade, tam_cumle, baslangic_tarihi, bitis_tarihi, +3 more. Returns: Model for search results from mevzuat.gov.tr

search_cbgenelgeA

Search for Turkish Presidential Circulars (Cumhurbaşkanlığı Genelgesi / CB Genelgesi) in titles and content.

IMPORTANT: Search is keyword-based, NOT by circular number. Use descriptive Turkish terms. Use 'get_cbgenelge_content' with mevzuat_no and resmi_gazete_tarihi to retrieve full PDF content.

Query Syntax: Simple keyword, AND, OR, NOT, +required, (grouping), "exact phrase"

Example queries:

  • "koordinasyon" - Coordination circulars

  • Leave empty with dates to list all circulars from a period

Returns: Circular number, title, publication date, Official Gazette info. PDF format only.

Inputs: aranacak_ifade, tam_cumle, baslangic_tarihi, bitis_tarihi, +3 more. Returns: Model for search results from mevzuat.gov.tr

search_cbkA

Search for Turkish Presidential Decrees (Cumhurbaşkanlığı Kararnamesi) in both titles and content.

IMPORTANT: Search is keyword-based, NOT by decree number. Use descriptive Turkish terms. Presidential Decrees are executive orders issued by the President of Turkey (post-2017).

Query Syntax: Simple keyword, AND, OR, NOT, +required, (grouping), "exact phrase"

Example queries:

  • "organize suç" - Find decrees about organized crime

  • "kamu OR devlet" - Decrees about public or state matters

  • "bakanlık AND teşkilat" - Ministry organization decrees

Returns: Decree number, title, publication date, Official Gazette info.

Inputs: aranacak_ifade (required), tam_cumle, baslangic_tarihi, bitis_tarihi, +3 more. Returns: Model for search results from mevzuat.gov.tr

search_cbyonetmelikA

Search for Turkish Presidential Regulations (Cumhurbaşkanlığı Yönetmeliği / CB Yönetmeliği) in both titles and content.

IMPORTANT: Search is keyword-based, NOT by number. Use descriptive Turkish terms. These are regulations issued directly by the Presidency. For institutional regulations (Kurum Yönetmeliği), use 'search_kurum_yonetmelik' instead.

Query Syntax: Simple keyword, AND, OR, NOT, +required, (grouping), "exact phrase"

Example queries:

  • "ihale" - Procurement regulations

  • "taşınır AND mal" - Movable property regulations

  • "kamu ihale" - Public procurement regulations

  • Leave empty to list all, use date filters for period

Returns: Regulation number, title, publication date, Official Gazette info.

Inputs: aranacak_ifade, tam_cumle, baslangic_tarihi, bitis_tarihi, +3 more. Returns: Model for search results from mevzuat.gov.tr

search_kanunA

Search for Turkish laws (Kanun) in both titles and content on mevzuat.gov.tr.

IMPORTANT: Search is keyword-based, NOT by law number. Use descriptive Turkish terms.

  • WRONG: "3065" or "6362" (numbers won't find laws reliably)

  • RIGHT: "katma değer vergisi" (finds KDV Kanunu No. 3065)

  • RIGHT: "sermaye piyasası" (finds Sermaye Piyasası Kanunu No. 6362)

  • RIGHT: "gümrük kanunu" (finds Gümrük Kanunu No. 4458)

  • RIGHT: "gelir vergisi" (finds Gelir Vergisi Kanunu No. 193)

  • RIGHT: "ceza muhakemesi" (finds CMK No. 5271)

  • RIGHT: "vergi usul" (finds VUK No. 213)

Use 'search_within_kanun' to search within a specific law's articles after finding its number.

Query Syntax:

  • Simple keyword: yatırımcı

  • Boolean AND: yatırımcı AND tazmin (both terms required)

  • Boolean OR: yatırımcı OR müşteri (at least one term)

  • Boolean NOT: yatırımcı NOT kurum (first yes, second no)

  • Required term: +yatırımcı +tazmin (similar to AND)

  • Grouping: (yatırımcı OR müşteri) AND tazmin

  • Exact phrase: "mali sıkıntı" (or use tam_cumle=true)

Returns: Law number, title, acceptance date, Official Gazette date and issue number.

Inputs: aranacak_ifade (required), tam_cumle, baslangic_tarihi, bitis_tarihi, +3 more. Returns: Model for search results from mevzuat.gov.tr

search_khkA

Search for Turkish Decree Laws (Kanun Hükmünde Kararname / KHK) in titles and content.

IMPORTANT: Search is keyword-based, NOT by KHK number. Use descriptive Turkish terms. KHKs were abolished after the 2017 constitutional referendum (last issued 2018). Previously enacted KHKs remain in force unless repealed.

Query Syntax: Simple keyword, AND, OR, NOT, +required, (grouping), "exact phrase"

Example queries:

  • "sağlık AND düzenleme" - Health-related KHKs

  • "anayasa" - Constitutional KHKs

  • Leave empty with dates (e.g., 2010-2018) to list all KHKs from a period

Returns: KHK number, title, dates, Official Gazette info.

Inputs: aranacak_ifade, tam_cumle, baslangic_tarihi, bitis_tarihi, +3 more. Returns: Model for search results from mevzuat.gov.tr

search_kurum_yonetmelikA

Search for Institutional/Organizational Regulations (Kurum ve Kuruluş Yönetmeliği) in titles and content.

IMPORTANT: Search is keyword-based, NOT by regulation number. Use descriptive Turkish terms. These are regulations issued by governmental institutions (ministries, agencies, boards). This is the largest dataset with 8686+ regulations. Use for: Gümrük Yönetmeliği, İthalat/İhracat Yönetmeliği, and similar institutional regulations.

Query Syntax: Simple keyword, AND, OR, NOT, +required, (grouping), "exact phrase"

Example queries:

  • "gümrük" - Customs regulations (e.g., Gümrük Yönetmeliği)

  • "ithalat" or "ihracat" - Import/export regulations

  • "nükleer" - Nuclear regulations

  • "adalet AND akademi" - Justice academy regulations

  • Leave empty with dates to list all regulations from a period

Returns: Regulation number, title, dates, Official Gazette info.

Inputs: aranacak_ifade, tam_cumle, baslangic_tarihi, bitis_tarihi, +3 more. Returns: Model for search results from mevzuat.gov.tr

search_mevzuatA

Search or browse all Turkish legislation on bedesten.adalet.gov.tr.

Covers 12 legislation types: Kanunlar, Cumhurbaşkanı Kararnameleri, Bakanlar Kurulu Yönetmelikleri, CB Yönetmelikleri, CB Kararları, CB Genelgeleri, KHK'lar, Tüzükler, Kurum/Kuruluş Yönetmelikleri, Üniversite Yönetmelikleri, Tebliğler, Mülga Mevzuat.

Search modes:

  • mevzuat_adi: Title/keyword search (recommended, searches legislation name)

  • phrase: Full-text content search (Solr syntax, searches inside document body)

  • mevzuat_no: Direct number lookup (e.g., '5237' for TCK)

  • Browse: Leave all empty to list by type

Date range filtering:

  • Use resmi_gazete_tarihi_start and/or resmi_gazete_tarihi_end (DD/MM/YYYY)

  • Single date: set both start and end to the same date

  • Year range: '01/01/2024' to '31/12/2024'

Workflow: Use this tool first to find legislation → then use mevzuatId from results with:

  • get_mevzuat_content: Full document text

  • search_within_mevzuat: Search articles within a document

  • get_mevzuat_madde_tree: Table of contents / article tree

  • get_mevzuat_gerekce: Law rationale (if gerekceId is present in results)

Inputs: phrase, mevzuat_adi, mevzuat_no, mevzuat_tur, +7 more. Returns: result

search_tebligA

Search for Turkish communiqués (Tebliğ) in both titles and content on mevzuat.gov.tr.

IMPORTANT: Search is keyword-based, NOT by number. Use descriptive Turkish terms. Communiqués are regulatory documents issued by various government institutions.

Query Syntax: Simple keyword, AND, OR, NOT, +required, (grouping), "exact phrase"

Example queries:

  • "katma değer vergisi" - Find VAT-related communiqués

  • "muafiyet OR istisna" - Communiqués about exemptions

  • "gümrük" - Customs-related communiqués

  • "ithalat" or "ihracat" - Import/export communiqués

Returns: Communiqué number, title, publication date, Official Gazette info.

Inputs: aranacak_ifade (required), tam_cumle, baslangic_tarihi, bitis_tarihi, +3 more. Returns: Model for search results from mevzuat.gov.tr

search_tuzukA

Search for Turkish Statutes/Regulations (Tüzük) in titles and content.

IMPORTANT: Search is keyword-based, NOT by statute number. Use descriptive Turkish terms. Tüzük are regulatory statutes that implement and detail the provisions of laws.

Query Syntax: Simple keyword, AND, OR, NOT, +required, (grouping), "exact phrase"

Example queries:

  • "tapu" - Land registry related statutes

  • "vakıf AND tescil" - Foundation registration statutes

  • Leave empty with dates to list all statutes from a period

Returns: Statute number, title, dates, Official Gazette info.

Inputs: aranacak_ifade, tam_cumle, baslangic_tarihi, bitis_tarihi, +3 more. Returns: Model for search results from mevzuat.gov.tr

search_within_cbbaskankararA

Search within a specific Presidential Decision's (CB Kararı) content using keyword or semantic search.

Presidential Decisions are PDF-based and use chunk-based splitting (no article structure).

Modes:

  • semantic=False (default): Keyword search with Boolean operators (AND/OR/NOT, uppercase required)

  • semantic=True: Natural language semantic search using AI embeddings (requires OPENROUTER_API_KEY)

Keyword examples: "atama AND görev", '"ihracat rejimi"', "vergi OR gümrük" Semantic examples: "kamu personeli atama kararları", "ihracat rejimi düzenlemeleri"

Inputs: mevzuat_no (required), keyword (required), mevzuat_tertip, case_sensitive, +2 more. Returns: result

search_within_cbgenelgeA

Search within a specific Presidential Circular's (CB Genelgesi) content using keyword or semantic search.

Presidential Circulars are PDF-based and use chunk-based splitting (no article structure). IMPORTANT: resmi_gazete_tarihi is required (from search_cbgenelge results).

Modes:

  • semantic=False (default): Keyword search with Boolean operators (AND/OR/NOT, uppercase required)

  • semantic=True: Natural language semantic search using AI embeddings (requires OPENROUTER_API_KEY)

Keyword examples: "koordinasyon AND toplantı", '"kamu yönetimi"' Semantic examples: "bakanlıklar arası koordinasyon düzeni", "tasarruf tedbirleri"

Inputs: mevzuat_no (required), keyword (required), resmi_gazete_tarihi (required), mevzuat_tertip, +3 more. Returns: result

search_within_cbkA

Search within a specific Presidential Decree's articles using keyword or semantic search.

Modes:

  • semantic=False (default): Keyword search with Boolean operators (AND/OR/NOT, uppercase required)

  • semantic=True: Natural language semantic search using AI embeddings (requires OPENROUTER_API_KEY)

Keyword examples: "organize AND suç", '"organize suç"', "devlet OR kamu" Semantic examples: "organize suç örgütleri ile mücadele", "bakanlık teşkilat yapısı"

Inputs: mevzuat_no (required), keyword (required), mevzuat_tertip, case_sensitive, +2 more. Returns: result

search_within_cbyonetmelikA

Search within a specific Presidential Regulation's articles using keyword or semantic search.

Modes:

  • semantic=False (default): Keyword search with Boolean operators (AND/OR/NOT, uppercase required)

  • semantic=True: Natural language semantic search using AI embeddings (requires OPENROUTER_API_KEY)

Keyword examples: "taşınır AND mal", '"ihale kanunu"', "kamu OR devlet" Semantic examples: "taşınır mal yönetimi ve zimmet işlemleri", "kamu ihale süreçleri"

Inputs: mevzuat_no (required), keyword (required), mevzuat_tertip, case_sensitive, +2 more. Returns: result

search_within_kanunA

Search within a specific law's articles using keyword or semantic search.

Modes:

  • semantic=False (default): Keyword search with Boolean operators (AND/OR/NOT, uppercase required)

  • semantic=True: Natural language semantic search using AI embeddings (requires OPENROUTER_API_KEY)

Keyword examples: "yatırımcı AND tazmin", '"mali sıkıntı"', "vergi OR ücret" Semantic examples: "yatırımcının zararının tazmini", "sermaye piyasası düzenlemeleri"

Inputs: mevzuat_no (required), keyword (required), mevzuat_tertip, case_sensitive, +2 more. Returns: result

search_within_khkA

Search within a specific Decree Law's (KHK) articles using keyword or semantic search.

Modes:

  • semantic=False (default): Keyword search with Boolean operators (AND/OR/NOT, uppercase required)

  • semantic=True: Natural language semantic search using AI embeddings (requires OPENROUTER_API_KEY)

Keyword examples: "kanun AND değişiklik", '"kanun hükmünde"', "bakanlık OR kurum" Semantic examples: "sağlık alanında yapılan düzenlemeler", "anayasa değişikliği"

Inputs: mevzuat_no (required), keyword (required), mevzuat_tertip, case_sensitive, +2 more. Returns: result

search_within_kurum_yonetmelikA

Search within a specific Institutional Regulation's articles using keyword or semantic search.

Modes:

  • semantic=False (default): Keyword search with Boolean operators (AND/OR/NOT, uppercase required)

  • semantic=True: Natural language semantic search using AI embeddings (requires OPENROUTER_API_KEY)

Keyword examples: "nükleer AND ihracat", '"ihracat kontrol"', "denetim OR teftiş" Semantic examples: "nükleer madde ihracat kontrol düzenlemeleri", "disiplin cezaları"

Inputs: mevzuat_no (required), keyword (required), mevzuat_tertip, case_sensitive, +2 more. Returns: result

search_within_mevzuatA

Search within a specific legislation's articles on bedesten.adalet.gov.tr.

Ideal for large legislation where get_mevzuat_content would return too much text. Fetches the full document, splits into individual articles (MADDE), and applies keyword search with Boolean operators. Returns only matching articles sorted by relevance score (match frequency).

Each result includes: article number (madde no), match count, and full article text.

Workflow: search_mevzuat → get mevzuatId → search_within_mevzuat(mevzuatId, keyword)

Example: To find investor compensation articles in Capital Markets Law:

  1. search_mevzuat(mevzuat_adi='sermaye piyasası', mevzuat_tur='KANUN') → mevzuatId

  2. search_within_mevzuat(mevzuat_id='...', keyword='yatırımcı AND tazmin')

Inputs: mevzuat_id (required), keyword (required), case_sensitive, max_results. Returns: result

search_within_tebligA

Search within a specific communiqué's (Tebliğ) content using keyword or semantic search.

Tries article-based splitting first; if no articles found, falls back to chunk-based search.

Modes:

  • semantic=False (default): Keyword search with Boolean operators (AND/OR/NOT, uppercase required)

  • semantic=True: Natural language semantic search using AI embeddings (requires OPENROUTER_API_KEY)

Keyword examples: "vergi AND muafiyet", '"katma değer"', "istisna OR muafiyet" Semantic examples: "vergi muafiyeti koşulları", "KDV iade işlemleri"

Inputs: mevzuat_no (required), keyword (required), mevzuat_tertip, case_sensitive, +2 more. Returns: result

search_within_tuzukA

Search within a specific Statute's (Tüzük) articles using keyword or semantic search.

Modes:

  • semantic=False (default): Keyword search with Boolean operators (AND/OR/NOT, uppercase required)

  • semantic=True: Natural language semantic search using AI embeddings (requires OPENROUTER_API_KEY)

Keyword examples: "tapu AND sicil", '"sicil kayıt"', "tescil OR ilan" Semantic examples: "tapu sicil kayıt işlemleri", "vakıf tescil süreci"

Inputs: mevzuat_no (required), keyword (required), mevzuat_tertip, case_sensitive, +2 more. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 26 tools

    Disambiguation2/5

    Several tools have overlapping boundaries: search_kanun/search_within_kanun overlap with search_mevzuat/search_within_mevzuat, and search_cbk/search_cbbaskankarar are easy to confuse despite the detailed descriptions. An agent is likely to misselect between the generic mevzuat workflow and the type-specific search tools because the intended source difference is not obvious.

    Naming Consistency4/5

    Tool names generally follow a predictable search_<type>, search_within_<type>, and get_<type>_content pattern in snake_case. Minor inconsistencies like the abbreviated 'cbk' vs 'cbbaskankarar' and generic get_mevzuat_gerekce/get_mevzuat_madde_tree prevent a perfect score.

    Tool Count2/5

    With 26 tools, the server exceeds the 25+ threshold and feels overly large. Much of the type-specific search/search_within surface duplicates the generic mevzuat workflow, so the count is inflated despite the broad legal document taxonomy.

    Completeness4/5

    The server covers the main read-only legal research lifecycle: searching by type, browsing by date, retrieving full content, searching within documents, getting article trees, and fetching law rationale. Minor gaps exist, such as no direct content getter for every document type and no semantic mode on generic search_within_mevzuat, but the generic workflow mostly compensates.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      A FastMCP server providing access to various Turkish legal databases including Supreme Court, Council of State, Constitutional Court, and Public Procurement Authority decisions through a standardized MCP interface for LLM applications.
      28
      205 PyPI
      1,112
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides programmatic access to Turkey's Ministry of Justice Legislation Information System (mevzuat.gov.tr), enabling users to search legislation, retrieve article hierarchies, and fetch article contents in Markdown format through natural language.
      1
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides programmatic access to the Turkish Ministry of Justice Legislation Information System (mevzuat.gov.tr). It enables searching for legislation, navigating hierarchical article structures, and retrieving article content in Markdown format.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server that exposes Austrian federal law (Bundesrecht) to LLMs, enabling full-text search, paragraph retrieval, historical versions, statute lookup, BGBl lookups, amendment timelines, and citation searches via the public RIS OGD API.
      MIT