SuperAPIAI Directory

turk-hukuku-ictihat-mcp

github.com · AI developer platforms

turk-hukuku-ictihat-mcp is an MCP server for Turkish judicial case law that exposes the official case law of the Turkish Supreme Court (Yargıtay), regional courts of appeal and some first-instance courts (UYAP Emsal), administrative courts (Danıştay), and Constitutional Court (AYM) individual applications and normative review in a structured way for use by AI tools. It is compatible with Claude Code, Codex and Gemini CLI, searches via ictihat_ara and retrieves full texts via karar_getir, returning structured citations including court, chamber, case number/decision number, date, and official source links, helping models obtain information from official sources rather than relying on memory when citing case law. The server runs entirely locally, collects no data, has no telemetry, respects official site access restrictions, and does not bypass CAPTCHAs. The project is released under the MIT license and can be installed via uv or pip. Note: this tool does not constitute legal advice; the currency, finality and applicability of the case law must be assessed by the user.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Purpose: turk-hukuku-ictihat-mcp is an MCP (Model Context Protocol) server whose goal is to connect the official Turkish judicial case law databases to AI coding and command-line tools, so that when models cite case law they can obtain structured information such as court, chamber, case number/decision number and date from official sources rather than generating it from memory.

Main capabilities:

  • Covers multiple official case law sources: Yargıtay (Supreme Court, including civil and criminal chambers and boards, backed by the Adalet Bakanlığı Mevzuat ve İçtihat system), UYAP Emsal (civil chambers of regional courts of appeal and some first-instance courts, such as commercial and intellectual property courts), Danıştay (administrative courts, 390,000+ documents), AYM (Constitutional Court individual application decisions) and AYM normative review (annulment/objection decisions, returning E./K. numbers and Official Gazette information).
  • Provides two types of endpoints, search and document retrieval: ictihat_ara performs searches, karar_getir retrieves the full text of a specified decision.
  • Search results return structured citations, for example "Yargıtay 6. Hukuk Dairesi, E.2015/2565 K.2016/25, T.18.01.2016", along with links to the official public pages (Yargıtay and UYAP Emsal decisions can be read at mevzuat.adalet.gov.tr/ictihat/<id>).
  • Converts scraped content into readable plain text, cleaning up Danıştay's nested HTML encoding and AYM's Word-exported body text.
  • Supports search syntax: multiple words must all appear, double quotes indicate an exact phrase, a minus sign excludes a word, OR means "or", suffixes after an apostrophe are stripped; in adli searches adet must be at least 2.
  • mahkeme parameter possible values: yargitay, emsal, adli (default, searches both of the former, Yargıtay result ids carry the yargitay: prefix), idari, anayasa, norm.

Usage:

  • Typical flow: ictihat_ara("ihtiyaç nedeniyle tahliye", mahkeme="yargitay") → select an id from the results → karar_getir(id, court="yargitay") → retrieve the full text of the decision.
  • Compatible with Claude Code, Codex, Gemini CLI; configure under mcpServers in ~/.codex/config.toml and ~/.gemini/settings.json.
  • Published on PyPI; can be run directly with uv without separate installation, or installed with pip.
  • Users who do not use a terminal can use the desktop app (Mac and Windows), which automatically installs and runs the server.
  • The related project turk-hukuku-mevzuat-mcp is for legal/statutory texts.

Access and privacy restrictions:

  • Runs entirely locally, collects no data, has no telemetry; external connections are limited to official case law websites.
  • Sends its own User-Agent (turk-hukuku-ictihat-mcp/<version>) with each request and does not impersonate a browser or the official web application.
  • Sends only one request at a time to the same site, with at least one second between requests; caches at most 256 decisions per session, in memory only, and does not write to disk.
  • Does not crack or bypass CAPTCHAs; upon encountering a CAPTCHA, HTTP 403, HTTP 429, a redirect, or a returned web page, it stops, does not retry, directs the user to the official site, and sends no further requests to that site for about two minutes.
  • Temporary failures (HTTP 5xx, 404, network errors) are indicated with a brief message in Turkish, without retrying.

Use cases: legal researchers, lawyers, or developers who need to quickly search and cite official Turkish case law while using AI tools and want citation information traceable to official sources.

Limitations and disclaimer: This tool does not constitute legal advice and only facilitates access to case law; the currency, finality, and applicability of decisions to specific cases must be assessed by the user, and the binding force and precedential value of case law require separate legal analysis. The model may still make mistakes, and every citation should be verified through the provided link. The data is owned by the source institutions (Adalet Bakanlığı, UYAP Emsal, Danıştay, Anayasa Mahkemesi), and this project is merely an independent client. Released under the MIT license.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools