Turkish Legal Databases MCP server

Integrates with Turkish legal databases to provide unified search and retrieval of court decisions from Yargitay, Danistay, Constitutional Court, and UYAP Emsal systems in Markdown format.
Back to servers
Setup instructions
Provider
Said Surucu
Release date
May 22, 2025
Stats
519 stars

This MCP server provides seamless access to various Turkish legal databases through the Model Context Protocol (MCP), allowing you to search and retrieve legal documents from major Turkish courts and regulatory bodies. It works with Claude Desktop and other MCP-compatible clients like 5ire.

Installation Options

Using with 5ire or Other MCP Clients

  1. Install prerequisites:

    • Python 3.11 or higher (make sure to check "Add Python to PATH" during installation)
    • Git (for Windows users)
    • Microsoft Visual C++ Redistributable (for Windows users)
  2. Install uv:

    • Windows (PowerShell):
      powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
      
    • Mac/Linux (Terminal):
      curl -LsSf https://astral.sh/uv/install.sh | sh
      
  3. Setup in 5ire:

    • Install 5ire
    • Open 5ire and add your LLM API key in Workspace → Providers
    • Go to Tools menu and click +Local or New
    • Configure as follows:
      • Tool Key: yargimcp
      • Name: Yargı MCP
      • Command: uvx yargi-mcp
    • Click Save and activate the tool

Claude Desktop Manual Setup

  1. Install prerequisites as described above
  2. Open Claude Desktop and go to Settings → Developer → Edit Config
  3. Add to the mcpServers section in claude_desktop_config.json:
    {
      "mcpServers": {
        "Yargı MCP": {
          "command": "uvx",
          "args": [
            "yargi-mcp"
          ]
        }
      }
    }
    
  4. Restart Claude Desktop

Gemini CLI Setup

  1. Install prerequisites as described above

  2. Edit the Gemini CLI settings file:

    • macOS/Linux: ~/.gemini/settings.json
    • Windows: %USERPROFILE%\.gemini\settings.json
  3. Add the following mcpServers configuration:

    {
      "theme": "Default",
      "selectedAuthType": "###",
      "mcpServers": {
        "yargi_mcp": {
          "command": "uvx",
          "args": [
            "yargi-mcp"
          ]
        }
      }
    }
    

Using the MCP Server

The Yargı MCP server provides 19 optimized tools for interacting with Turkish legal databases:

Search and Retrieve Legal Documents

You can search for legal documents from various Turkish courts and institutions:

  • Supreme Court (Yargıtay) decisions with 52 different chamber filtering options
  • Council of State (Danıştay) decisions with 27 different chamber filtering options
  • Local Court and Appellate Court decisions
  • Constitutional Court decisions (both norm control and individual applications)
  • Dispute Court decisions
  • Decisions from regulatory bodies including Public Procurement Authority, Competition Authority, Court of Accounts, Personal Data Protection Authority, and Banking Regulation and Supervision Agency

Example Commands

You can ask Claude or other LLM clients to use these tools with natural language requests like:

  • "Search for recent Supreme Court decisions about property rights"
  • "Find Council of State decisions about zoning plan cancellations"
  • "Get Constitutional Court decisions about freedom of expression"
  • "Find Competition Authority decisions related to mergers in the telecommunications sector"

Advanced Search Features

The MCP server supports various advanced search features:

  • Date range filtering using ISO 8601 format
  • Exact phrase searching using double quotes
  • Chamber/board filtering for specific court divisions
  • Content searching for specific legal terms
  • Pagination support for large documents and search results

Web Service Deployment

You can also run Yargı MCP as a web service:

# Install ASGI dependencies
pip install yargi-mcp[asgi]

# Start as web service
python run_asgi.py
# or
uvicorn asgi_app:app --host 0.0.0.0 --port 8000

This enables HTTP access to MCP tools, cloud deployment options, and Docker support through FastAPI integration.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "Yarg-MCP" '{"command":"uvx","args":["--from","git+https://github.com/saidsurucu/yargi-mcp","yargi-mcp"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "Yarg\u0131 MCP": {
            "command": "uvx",
            "args": [
                "--from",
                "git+https://github.com/saidsurucu/yargi-mcp",
                "yargi-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "Yarg\u0131 MCP": {
            "command": "uvx",
            "args": [
                "--from",
                "git+https://github.com/saidsurucu/yargi-mcp",
                "yargi-mcp"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later