/ 目錄 / 演練場 / Yargı MCP
● 社群 saidsurucu ⚡ 即開即用

Yargı MCP

作者 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.

為什麼要用

核心特性

即時演示

實際使用效果

就緒

安裝

選擇你的客戶端

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

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

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

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

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

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

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

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

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

Continue 使用伺服器物件陣列,而非映射。

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

加入 context_servers。Zed 儲存後熱重載。

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

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: Yargı MCP

Find Yargıtay precedents on a contract clause

👤 Developers ⏱ ~15 min intermediate

何時使用: You're drafting a memo and need actual case citations, not invented ones.

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

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

組合

與其他 MCP 搭配,撬動十倍槓桿

yargi-mcp + filesystem

Save the assembled memo to disk

Combine yargi-mcp with filesystem: Save the assembled memo to disk✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
search (see docs) Search across selected courts 1 call
get_ruling (see docs) Fetch full ruling by case ID 1 call

成本與限制

運行它的成本

API 配額
Source-DB throttling applies
每次呼叫 Token 數
Rulings can be long
費用
Free; public data
提示
Always pass court= to narrow results; broad searches are slow

安全

權限、密鑰、影響範圍

憑證儲存: No credentials
資料出站: Turkish gov + UYAP public endpoints

故障排查

常見錯誤與修復

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

替代方案

Yargı MCP 對比其他方案

替代方案何時用它替代權衡
Manual Yargıtay portalSingle-shot researchNo programmatic citation extraction

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills