About Taiwan Legal DB
Taiwan Legal DB is an MCP server published by lawchat-oss in the Data category: 台灣司法院判決 + 全國法規資料庫 MCP server · Query Taiwan legal data from any MCP AI agent. Conduid read 26 tools from its source: get_administrative_decision, get_agency_interpretation, get_citations, get_constitutional_case_file, get_interpretation, get_judgment and 20 more. It is published to PyPI as mcp-taiwan-legal-db and runs with uvx.
The repository has 237 stars and 57 forks, is licensed MIT, and its last commit was on 21 Oct 2026. The latest release is v1.8.3 (21 Oct 2026). It follows v1.8.2 (5 Oct 2026), and the 5 most recent releases go back to v1.7.0 (3 Oct 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Its topics include judicial, legal, legal-tech, regulation and taiwan.
Install
uvx mcp-taiwan-legal-dbpip install mcp-taiwan-legal-dbgit clone https://github.com/lawchat-oss/mcp-taiwan-legal-dbTools (26)
get_administrative_decision取得訴願決定書、處分書、審議判斷、裁決、保障決定、裁罰案件、監察院案文或律師懲戒決議的全文| Parameter | Type | Description |
|---|---|---|
| decision_id * | string | search_administrative_decisions 回傳的 id(如「ey:A-115-000633」) |
get_agency_interpretation取得單一行政函釋全文(主旨、說明;正本、副本受文者清單省略)。| Parameter | Type | Description |
|---|---|---|
| interpretation_id * | string | search_agency_interpretations 回傳的 id(如「moj:FE393340」「mol:e:勞動條 3:1100130312」) |
get_citations大法官解釋/憲判字之間的引用關係。| Parameter | Type | Description |
|---|---|---|
| case_id * | string | 解釋/裁判字號字串(格式同 get_interpretation) |
| direction | string | "cites" 或 "cited_by" |
| include_context | boolean | 每個引用附上原文前後 80 字片段 |
get_constitutional_case_file憲法法庭卷內文書:聲請書、答辯書、關係機關意見、專家諮詢與鑑定意見、法庭之友意見書、言詞辯論筆錄、| Parameter | Type | Description |
|---|---|---|
| case_id | string | 「113年憲判字第8號」「釋字第748號」、受理中案號「114年度憲立字第3號」, 或 search_constitutional_docket 回傳的 id(docket:…、hearing:…、amicus:…) |
| document_id | string | 文件 id(數字)或 news:…;給了就只讀這份文件 |
| keyword | string | 在卷內文書中找含這些詞的文件(空白分隔) |
get_interpretation取得司法院大法官解釋(釋字第 1-813 號)或憲法法庭裁判(憲判字)全文。| Parameter | Type | Description |
|---|---|---|
| case_id * | string | 解釋/裁判字號字串 |
| include_opinions | boolean | 回傳意見書全文 |
| include_reasoning | boolean | 回傳理由書全文 |
| opinion_document | string | 只取標題含此字串的意見書全文(例如大法官姓名「許宗力」); 回傳的 opinion_documents 列出每份的標題、官網 PDF 連結與字數 |
| opinions_keyword | string | 在意見書中搜尋關鍵字並回片段 |
| opinions_offset | integer | 意見書全文從第幾字開始回傳(預設 0) |
| reasoning_keyword | string | 在理由書中搜尋關鍵字並回片段(覆蓋 include_reasoning) |
get_judgment取得單一裁判書全文。| Parameter | Type | Description |
|---|---|---|
| jid | string | 裁判書 JID(如「TPSV,104,台上,472,20150326,1」),從搜尋結果取得 |
| url | string | 裁判書 URL(如 https://judgment.judicial.gov.tw/FJUD/printData.aspx?id=...) |
get_legal_literature取得研究文獻的書目、摘要與全文(有公開全文時)。| Parameter | Type | Description |
|---|---|---|
| literature_id * | string | search_legal_literature 回傳的 id(如「ncl:A15001353」「grb:13540821」) |
get_legislative_history取得某一條文歷次制定、修正時的條文與立法理由(立法院法律系統,民國 59 年以後的修正才有理由)。| Parameter | Type | Description |
|---|---|---|
| article_no * | string | 條號(如「184」「15-1」) |
| law_name * | string | 法規名稱(如「民法」「勞動基準法」「刑法」);簡稱會先轉成全國法規資料庫的正式名稱 |
get_legislative_record取得立法紀錄全文:議案(bill:…,含提案人、審議進度與關係文書內容)、立法院公報(gazette:…)、| Parameter | Type | Description |
|---|---|---|
| record_id * | string | search_legislative_records 或 get_legislative_history 回傳的 id |
get_other_regulation取得地方自治法規、條約協定或交易所規章的條文。| Parameter | Type | Description |
|---|---|---|
| article_no | string | 單條「15」「15-1」「第十五條之一」、區間「1~10」、多條「3,5,15-1」,可混用; 不填 = 分條的只回條號範圍,未分條的回全文 |
| regulation_id * | string | search_other_regulations 回傳的 id |
get_pcode將法規名稱轉換為全國法規資料庫的 pcode 代碼。| Parameter | Type | Description |
|---|---|---|
| law_name * | string | 法規名稱(如「民法」「勞基法」「消保法」) |
get_precedent取得 search_precedents 結果的全文。| Parameter | Type | Description |
|---|---|---|
| precedent_id * | string | search_precedents 回傳的 id(如「D:A,20040316,001」「Q:A,20251119,013」「C:C,3829」) |
get_sentencing_statistics司法院事實型量刑資訊系統的刑度統計(符合條件的判決數、各刑種平均/最高/最低與分布)。| Parameter | Type | Description |
|---|---|---|
| court | string | 法院,可用逗號分隔多個(如「臺北地院」) |
| crime | string | 罪名(如「竊盜」「詐欺」,或系統代碼 stole、fraud…) |
| factors | string | 量刑因子,格式「因子=選項」,多個以分號分隔(如「累犯=是;坦承犯行=是」) |
| law | string | 法條選項,可用逗號分隔多個(如「第320條第1項」) |
| year_from | integer | 起始年度(民國年) |
| year_to | integer | 截止年度(民國年) |
get_statistics取得統計表內容或統計報告全文(search_statistics 回傳的 id)。| Parameter | Type | Description |
|---|---|---|
| statistics_id * | string | 例如「judicial:267552-…」「moj:INF_COMMON_P/807」「cprc:45180」「cprc:45180/20215121」 |
query_regulation查詢全國法規資料庫的條文:單條、區間或跨號多條,一次最多 50 條。| Parameter | Type | Description |
|---|---|---|
| article_no | string | 單條「184」「247-1」、區間「184~198」、跨號多條「184,185,247-1」,可混用; 不填 = 只回目錄。超過 50 條時回傳 has_more 與續查起點,指定卻不存在的單條列在 missing |
| from_no | string | 起始條號,與 to_no 合用等於 article_no 的「起~迄」 |
| include_history | boolean | 是否包含修法沿革(使用者詢問修法歷程、修正時間、歷次修正內容時設為 True)。 搭配單一條號時,會額外回傳該條文「歷次條文全文」(article_history), 可直接前後對比同一條在不同時間的條文細節。 |
| language | string | 「en」取官方英譯本(約 970 部法律與部分命令;英譯常落後中文修正,note 會提醒版本差異) |
| law_name | string | 法規名稱(如「民法」「勞動基準法」),會自動轉換為 pcode |
| pcode | string | 法規代碼(如「B0000001」),若提供 law_name 可不填 |
| to_no | string | 截止條號 |
search_administrative_decisions搜尋訴願決定與準司法機關的決定、處分(即時查詢各機關官方網站)。| Parameter | Type | Description |
|---|---|---|
| doc_number | string | 案號或字號(如行政院「A-115-000633」、公平會「公處字第115060號」、工程會「訴1130123」、 裁決「114年勞裁字第56號」) |
| keyword | string | 關鍵字(全文檢索;部分來源只比對標題) |
| page | integer | 頁數(各來源各自分頁) |
| source | string | 來源或機關名稱,可用逗號分隔多個(如「訴願」「公平會」「監察院」「臺北市,新北市」);不填 = 上述預設來源 |
| year_from | integer | 起始年度(民國年) |
| year_to | integer | 截止年度(民國年) |
search_agency_interpretations搜尋各機關的行政函釋(解釋令、函釋、法規諮詢意見)與審查基準,即時查詢各機關官方系統。| Parameter | Type | Description |
|---|---|---|
| agency | string | 機關名稱,可用逗號分隔多個,例如「勞動部」「財政部,經濟部」「銓敘部」「地政司」「臺北市」「智慧局」。 NCC、客委會、僑委會、運動部、關務署新頒釋函與陸委會主站廣告函釋須指名才查。 NCC 可查個別函復;陸委會主站限廣告規範。數位發展部只收行政院公報中依法公告的解釋性規定 |
| doc_number | string | 發文字號或其號碼(如「法律字第11403512580號」或「11403512580」) |
| keyword | string | 關鍵字(全文檢索;多個詞以空白分隔)。查特定法條時可用「勞動基準法第24條」這類寫法。 智慧局審查基準只比對章名(如「專利要件」「混淆誤認」) |
| page | integer | 頁數(每個來源各自分頁:多數每頁 20 筆;衛福部、各部會主管法規共用系統、考試院系統、中央銀行、環境部、 行政院公報每頁 10 筆;交通部每頁 25 筆) |
| year_from | integer | 起始年度(民國年,如 110) |
| year_to | integer | 截止年度(民國年,如 114) |
search_constitutional_docket列出憲法法庭尚未判決的案件(get_interpretation 只有已公布的裁判)。| Parameter | Type | Description |
|---|---|---|
| keyword | string | 篩選關鍵字(比對案號、聲請人、案由;多個詞以空白分隔) |
| status | string | pending、hearing 或 amicus |
search_interpretations列舉大法官解釋 / 憲法法庭裁判。支援關鍵字全文搜尋(搜爭點 + 理由書)。| Parameter | Type | Description |
|---|---|---|
| include_new | boolean | 包含新制憲判字 |
| include_old | boolean | 包含舊制釋字(year=0 時才生效) |
| keyword | string | 關鍵字(標題/字號/爭點/理由書全文匹配) |
| max_results | integer | 回傳筆數上限(預設 30,上限 200) |
| number_from | integer | 起始號次(含),0=不篩選 |
| number_to | integer | 截止號次(含),0=不篩選 |
| year | integer | 篩選民國年度(0=不篩選,>0 只回新制憲判字) |
search_judgments搜尋司法院裁判書系統。| Parameter | Type | Description |
|---|---|---|
| case_number | string | 案號(數字),查特定案號時必填 |
| case_type | string | 案件類型(民事/刑事/行政/懲戒) |
| case_word | string | 字別(如「台上」「上易」「重訴」),查特定案號時必填 |
| court | string | 法院名稱(如「最高法院」「臺灣高等法院」「臺灣臺北地方法院」) |
| keyword | string | 全文檢索關鍵字(對應 jud_kw) |
| main_text | string | 裁判主文關鍵字(對應 jud_jmain)— 結構化篩選輸贏方 |
| max_results | integer | 回傳筆數上限(預設 10,上限 200) |
| year_from | integer | 起始年度(民國年,如 110) |
| year_to | integer | 截止年度(民國年,如 113) |
search_legal_literature搜尋法學研究文獻(只用官方與開放取用來源,不含月旦、華藝、法源等付費資料庫)。| Parameter | Type | Description |
|---|---|---|
| keyword * | string | 關鍵字(題名、作者、主題,多個詞以空白分隔) |
| page | integer | 頁數 |
| source | string | 來源(司法研究年報、期刊、GRB、開放期刊或期刊名稱),可用逗號分隔;不填 = 全部 |
| year_from | integer | 起始年度(民國年) |
| year_to | integer | 截止年度(民國年) |
search_legislative_records搜尋立法動態與立法紀錄。| Parameter | Type | Description |
|---|---|---|
| keyword * | string | 關鍵字(法律名稱、條次、議題) |
| kind | string | bills、gazette、drafts 或 join |
| page | integer | 頁數 |
| status | string | bills 使用 pending、all 或 passed;join 使用 pending(進行中)或 closed(已結束) |
| term | integer | 立法院屆別(如 11);0 = bills 審查中只看本屆、其他不限 |
search_other_regulations搜尋全國法規資料庫法律命令清單以外的規範(query_regulation 查不到的)。| Parameter | Type | Description |
|---|---|---|
| keyword * | string | 關鍵字(法規名稱或內容)。多數來源把整串當成一個詞,請一次給一個詞,例如「違章建築」; 條約可用「國家 主題」,例如「日本 所得稅」 |
| page | integer | 頁數 |
| source | string | 縣市名(如「臺北市」「高雄」「新竹」)、「地方法規」「條約」「租稅協定」「外交部」 「交易所規章」「證交所」「櫃買中心」「期交所」,可用逗號分隔;不填 = 全部 |
search_precedents搜尋司法院法學資料檢索系統的判解資料(裁判書系統 search_judgments 查不到的類別)。| Parameter | Type | Description |
|---|---|---|
| category | string | 類別,可用逗號分隔多個;不填 = 決議、法律問題座談、停止適用判例、司法解釋、大法庭、精選裁判 |
| keyword | string | 關鍵字(全文檢索) |
| page | integer | 頁數 |
| year_from | integer | 起始年度(民國年) |
| year_to | integer | 截止年度(民國年) |
search_regulations以關鍵字搜尋法規名稱,或列出某日之後新制定/修正公布的法規(法遵追蹤)。| Parameter | Type | Description |
|---|---|---|
| amended_since | string | 只列這天以後(含)公布的法規,如「2026-09-01」「115-09-01」 |
| category | string | 主管機關或分類關鍵字(如「金融監督管理委員會」「勞動部」「稅務」),比對 category 欄 |
| exclude_abolished | boolean | 排除已廢止法規(預設 False,已廢止法規仍可搜尋但標記狀態) |
| keyword | string | 法規名稱關鍵字(如「勞動」「消費」「智慧財產」);有 amended_since 或 category 時可省略 |
| offset | integer | 分頁偏移(從第幾筆開始,預設 0) |
search_statistics搜尋官方法律統計表與報告。| Parameter | Type | Description |
|---|---|---|
| keyword | string | 表名或報告關鍵字,比對標題(如「收結」「上訴」「民事」「有罪」「詐欺」) |
| page | integer | 頁數 |
| source | string | 來源(司法統計、月報、法務統計、犯罪狀況);不填 = 全部 |
| year | integer | 民國年(司法統計年報、月報用;不填 = 最新一年) |
Security checks
- ✓README presentThe repository's README runs to about 3.5K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionScanned 39 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 3.5K words, fetched 13 days ago. The original in the repository is authoritative.
Read full README