Reverse engineer anything with agents, from app behavior down to native binaries.
Tw Legal Rag
台灣法律 MCP 伺服器 + CLI(免費、免註冊、免 API key):2,250 萬筆裁判書、行政函釋、憲法法庭裁判,附引用查核。Free Taiwan legal MCP server for Claude/ChatGPT/Codex, bring your own LLM, retrieval-only.
Install: pip install twlegalrag
Works with Codex · 328 GitHub stars
Install
pip install twlegalragInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Taiwan Legal RAG:台灣法律 MCP 伺服器與 CLI(twlegalrag)
🌐 Language / 語言 / 言語
免費、免註冊、免 API key 的台灣法律 MCP 伺服器:在 Claude、ChatGPT、Gemini CLI、Microsoft 365 Copilot、Codex、Cursor 加入
https://tlr.dr-legal.com.tw/mcp一個網址,AI 助理就能直接語義檢索 2,267 萬筆台灣裁判書、 行政函釋與憲法法庭裁判,逐筆附引用查核。另提供同一後端的公開原始碼 CLI(twlegalrag)。Free, no-signup, no-API-key Taiwan legal MCP server + source-available CLI, backed by Legal Detective's 22M-judgment semantic retrieval infrastructure.
Taiwan Legal RAG CLI retrieves Taiwan court judgments from Legal Detective's public TLR endpoint and packages them for use with your own AI tools. It does not generate legal advice, does not call any LLM, and does not guarantee semantic faithfulness of third-party model outputs. Its built-in citation check only verifies whether cited judgments belong to the retrieved bundle.
作者:黃思齊(Aaron Huang)律師,法律偵探/Dr.Legal 創辦人(個人介紹)。
繁中:Taiwan Legal RAG CLI 是一個公開原始碼命令列工具,連接法律偵探建置的 2,267 萬筆 台灣裁判語義檢索服務(22,674,799 筆,截至 2026-10-10),讓你能用自然語言搜尋判決,並將檢索結果帶入自己的 AI 工具使用。
資料涵蓋(統計截至 2026-10-10,取自 production 資料庫)
一、法規範(依法位階)
| 位階 | 資料類型 | 數量 | 說明 |
|---|---|---|---|
| 憲法 | 憲法位階 | 7 部/228 條 | 憲法本文、增修條文、實施準備程序及解嚴令等現行規範 |
| 憲法 | 釋字與憲判字 | 872 筆 | 大法官解釋 813 筆、憲法法庭判決 59 筆,有拘束全國各機關及人民之效力 |
| 法律 | 法律 | 1,022 部/44,503 條 | 定名為法、律、條例或通則者(中央法規標準法 §2) |
| 命令 | 法規命令 | 7,254 部/128,781 條 | 定名為規程、規則、細則、辦法、綱要、標準或準則者(同法 §3) |
| 命令 | 行政規則 | 103,029 筆 | 93 個機關發布之解釋性規定與裁量基準(行政程序法 §159),對外不生法規範效力 |
| 沿革 | 已廢止法規 | 3,525 部 | 法律 320 部、法規命令 3,203 部,及動員戡亂時期臨時條款等憲法位階規範,標示廢止狀態供查考 |
二、裁判與裁決
| 資料類型 | 數量 | 說明 |
|---|---|---|
| 裁判書(司法院各級法院) | 22,674,799 筆 | 語義檢索+詞彙檢索+案號精確調卷;每日增量同步司法院公開資料,含事後更正與下架之同步對齊 |
| 不當勞動行為裁決(勞動部裁決委員會) | 465 筆 | 勞動議題查詢自動並列,明確標示為裁決、非法院判決 |
三、輔助資料
| 資料類型 | 數量 | 說明 |
|---|---|---|
| 審級關聯(上訴鏈) | 4,366,833 筆 | 隨判決附 case_history,含主文「廢棄/駁回」旗標 |
| 函釋效力履歷 | 80,339 筆 | 廢止/停止適用/被取代狀態追蹤,引用前驗效力 |
法規範與裁判之取用方式:裁判書、行政規則走 hosted MCP 的語義檢索與字號精確查詢; 憲法、法律、法規命令於 dr-legal.com.tw 站上檢索。
裁判書為每日增量同步(司法院公開資料釋出有數日時差,極新宣判的裁判請以官網為準)。 以上數字直接取自 production 資料庫並標註統計日,非估計值。
裁判書明細(依法院層級/案件類別)
| 法院層級 | 筆數 |
|---|---|
| 地方法院 | 17,083,731 |
| 地方法院簡易庭 | 3,327,891 |
| 高等法院及分院 | 1,355,772 |
| 最高法院 | 405,325 |
| 高等行政法院 | 202,960 |
| 最高行政法院 | 124,161 |
| 地方行政訴訟庭 | 92,599 |
| 高雄少年及家事法院 | 24,977 |
| 智慧財產及商業法院 | 24,092 |
| 其他專業法庭・委員會 | 33,291 |
| 合計 | 22,674,799 |
| 案件類別 | 筆數 |
|---|---|
| 民事 | 14,550,390 |
| 刑事 | 7,507,814 |
| 行政 | 591,068 |
| 其他 | 25,527 |
行政規則發布機關明細(93 個機關,統計日 2026-10-10)
Similar plugs
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io