{"repo":"lawchat-oss/mcp-taiwan-legal-db","free":true,"listed":false,"github":"https://github.com/lawchat-oss/mcp-taiwan-legal-db","clone":"git clone https://github.com/lawchat-oss/mcp-taiwan-legal-db.git","description":"台灣司法院判決 + 全國法規資料庫 MCP server · Query Taiwan legal data from any MCP AI agent","language":"Python","stars":172,"topics":["claude","judicial","legal","legal-tech","mcp","model-context-protocol","regulation","taiwan"],"license":"MIT","category":"mcp-servers","readme_excerpt":"mcp-taiwan-legal-db English · 繁體中文 台灣法規、裁判書、憲法法庭裁判 — MCP Server。 讓任何 MCP 相容的 AI 助手直接存取台灣公開法律資料： - 司法院裁判書 — judgment.judicial.gov.tw（全文搜尋 + 取得） - 全國法規資料庫 — law.moj.gov.tw（11,700+ 部法規） - 憲法法庭 — cons.judicial.gov.tw（868 筆大法官解釋 + 憲判字，含理由書全文，離線快取） 以 Python 搭配 FastMCP 寫成。純工具 wrapper，只連線台灣政府官方來源（詳見下方「資料來源與統計」），不發送任何其他網路請求；憲法法庭資料為內建離線打包。 --- 特色 功能 說明 ------ ------ 8 個 MCP 工具 裁判書搜尋/全文、法規查詢、釋字/憲判字查詢、引用關係圖譜 離線快取 868 筆大法官解釋與憲判字（含理由書/意見書全文）從本地 JSON 即時回傳 引用關係圖譜 從理由書抽取所有引用的釋字/憲判字，追溯憲法學說演變 全文搜尋 裁判書關鍵字搜尋 + 釋字爭點/理由書全文搜尋 混合請求策略 預設用 httpx 直打（ 0.25s），觸發司法院 F5 WAF 時自動以 Playwright 刷 cookie 後繼續 --- ⚡ 安裝（PyPI，推薦） Debian / Ubuntu / WSL 注意 ：系統 Python 受 PEP 668 保護，直接 pip install 會被擋。請改用： - pipx install mcp-taiwan-legal-db （推薦，自動建隔離 venv，CLI tool 標準裝法） - 或 pip install --user --break-system-packages mcp-taiwan-legal-db 裝完後 entry point mcp-taiwan-legal-db 會在 PATH 上。 接到 Claude Code （任何專案都能用）： 接著 /mcp 重啟連線、Claude 就會在自然語言查詢時自動用 8 個 MCP tool。 選擇性 — F5 WAF fallback ： --- 開發環境設置 下面是 clone 來修程式 / 跑測試的流程： 預期輸出： 上面沒報錯就完成了。Repo 根目錄已經帶一份 .mcp.json ， 任何在此資料夾內開的 Claude Code session 會自動載入這個 server ，不需要額外註冊。 --- 有什麼工具可以用 8 個 MCP 工具，全部唯讀，全部只打台灣政府的公開資料庫。 法規與裁判 工具 用途 典型呼叫 --- --- --- search judgments 搜尋司法院裁判書資料庫 search judgments(keyword=\"預售屋 遲延交屋\", case type=\"民事\") get judgment 依 JID 或 URL 取得單筆判決全文 get judgment(jid=\"TPSM,114,台上,3753,20251112,1\") query regulation 查詢法規條文／範圍／全文／修法沿革 query regulation(law name=\"民法\", article no=\"184\") get pcode 將法規名稱解析為 pcode（法規代號） get pcode(law name=\"律師法\") search regulations 以關鍵字搜尋 11,700+ 部法規 se","default_branch":null,"files":null,"tree":[],"storefront":"/r/lawchat-oss","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lawchat-oss/mcp-taiwan-legal-db/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}