/ Directory / Playground / Yargı MCP
● Community saidsurucu ⚡ Instant

Yargı MCP

by saidsurucu · saidsurucu/yargi-mcp

Read-only Turkish-law MCP — search rulings across Yargıtay, Danıştay, Anayasa Mahkemesi, and UYAP, with stable case-citation output.

Yargı MCP is a read-only bridge to Turkey's public legal databases. Useful for legal research workflows where you want Claude to cite primary sources rather than hallucinate. All data is publicly available; no credentials required.

Why use it

Key features

Live Demo

What it looks like in practice

ready

Install

Pick your client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "yargi-mcp": {
      "command": "uvx",
      "args": [
        "yargi-mcp"
      ]
    }
  }
}

Open Claude Desktop → Settings → Developer → Edit Config. Restart after saving.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "yargi-mcp": {
      "command": "uvx",
      "args": [
        "yargi-mcp"
      ]
    }
  }
}

Cursor uses the same mcpServers schema as Claude Desktop. Project config wins over global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "yargi-mcp": {
      "command": "uvx",
      "args": [
        "yargi-mcp"
      ]
    }
  }
}

Click the MCP Servers icon in the Cline sidebar, then "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "yargi-mcp": {
      "command": "uvx",
      "args": [
        "yargi-mcp"
      ]
    }
  }
}

Same shape as Claude Desktop. Restart Windsurf to pick up changes.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "yargi-mcp",
      "command": "uvx",
      "args": [
        "yargi-mcp"
      ]
    }
  ]
}

Continue uses an array of server objects rather than a map.

~/.config/zed/settings.json
{
  "context_servers": {
    "yargi-mcp": {
      "command": {
        "path": "uvx",
        "args": [
          "yargi-mcp"
        ]
      }
    }
  }
}

Add to context_servers. Zed hot-reloads on save.

claude mcp add yargi-mcp -- uvx yargi-mcp

One-liner. Verify with claude mcp list. Remove with claude mcp remove.

Use Cases

Real-world ways to use Yargı MCP

Find Yargıtay precedents on a contract clause

👤 Developers ⏱ ~15 min intermediate

When to use: You're drafting a memo and need actual case citations, not invented ones.

Flow
  1. Query
    yargi_search court=Yargıtay query="haksız fesih" daire=9.✓ Copied
    → Result list with case numbers
  2. Pull text
    Fetch full ruling for top 3.✓ Copied
    → Texts loaded
  3. Cite
    Compose memo citing each by E./K. number.✓ Copied
    → Memo with verified citations

Outcome: Memo with primary-source citations Claude couldn't hallucinate.

Combinations

Pair with other MCPs for X10 leverage

yargi-mcp + filesystem

Save the assembled memo to disk

Combine yargi-mcp with filesystem: Save the assembled memo to disk✓ Copied

Tools

What this MCP exposes

ToolInputsWhen to callCost
search (see docs) Search across selected courts 1 call
get_ruling (see docs) Fetch full ruling by case ID 1 call

Cost & Limits

What this costs to run

API quota
Source-DB throttling applies
Tokens per call
Rulings can be long
Monetary
Free; public data
Tip
Always pass court= to narrow results; broad searches are slow

Security

Permissions, secrets, blast radius

Credential storage: No credentials
Data egress: Turkish gov + UYAP public endpoints

Troubleshooting

Common errors and fixes

Search returns empty

Source DB sometimes blocks aggressive UAs; retry with reduced concurrency

Rulings truncated

Some old rulings published only as PDFs; tool returns text where available

Alternatives

Yargı MCP vs others

AlternativeWhen to use it insteadTradeoff
Manual Yargıtay portalSingle-shot researchNo programmatic citation extraction

More

Resources

📖 Read the official README on GitHub

🐙 Browse open issues

🔍 Browse all 400+ MCP servers and Skills