/ 目录 / 演练场 / 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