taiwan-law
Taiwan legal research MCP: 判決書、全國法規、釋字/憲判與立法歷程查詢,12 個工具,回應均附官方出處 URL。
我该使用它吗
质量与安全性
发现(11)
- LOW在 analyze_legal_intent 中
- LOW在 search_taiwan_laws 中
- LOW在 search_taiwan_regulations 中
- LOW在 get_taiwan_pcode 中
- LOW在 get_taiwan_interpretation 中
- LOW在 get_taiwan_interpretation_citations 中
- LOW在 get_taiwan_law_progress 中
- LOW在 search_taiwan_bills 中
- LOW在 search_moj_interpretations 中
- LOW在 get_moj_draft_announcements 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"taiwan-law": {
"url": "https://legaltech.org.tw/mcp"
}
}
}远程端点
https://legaltech.org.tw/mcpstreamable-http它能做什么
工具清单
工具(14)
🟢analyze_legal_intent(text)
將使用者輸入初步分為案例事實、法律問題或引註研究,並標示領域、隱私風險與建議檢索詞。不做法律結論。
输入模式
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 3,
"maxLength": 12000,
"description": "使用者的案例事實或法律問題"
}
},
"required": [
"text"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_taiwan_laws(query, article_number, limit, include_history, fresh)
即時查詢法務部全國法規資料庫,回傳官方網址與相關條文。可附修法沿革。回答時必須附上 source_url,並提醒使用者核對最新版本。與其他法規檢索途徑併用時,請以 pcode/法律編號合併去重;無官方識別碼的候選結果不得作為引用依據。
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 2,
"maxLength": 120,
"description": "法規名稱或法律爭點,例如:個人資料保護法 蒐集。支援常見簡稱(勞基法、個資法…)"
},
"article_number": {
"description": "可選條號,例如 19 或 247-1",
"type": "string",
"maxLength": 20
},
"limit": {
"default": 3,
"type": "integer",
"minimum": 1,
"maximum": 5
},
"include_history": {
"default": false,
"description": "附上修法沿革(歷次公布/修正紀錄,來自本地官方資料快照)",
"type": "boolean"
},
"fresh": {
"default": false,
"description": "略過邊緣快取,強制向官方資料庫取得最新內容(例如剛公布的修正條文)",
"type": "boolean"
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_taiwan_judgments(query, court, case_type, year_from, year_to, ...)
即時使用司法院裁判書系統搜尋公開裁判,不保存裁判內容。結果按法院層級排序(最高→高等→地方),每筆含法院、案件類型、日期、案由。查特定案號請用 case_word + case_number(例:114年度上易字第503號 → case_word=上易, case_number=503, year_from=114),不要放進 query。main_text 以裁判主文措辭篩選輸贏方(例:「被告應給付」= 被告敗訴、「原告之訴駁回」= 原告敗訴、「上訴駁回」= 維持原審),可與 query 併用。若同時使用語意/概念式檢索工具,建議兩軌並行後以司法院 JID 合併去重,JID 皆命中者優先;沒有 JID 的候選結果僅供瀏覽,不得直接引為法院見解。
输入模式
{
"type": "object",
"properties": {
"query": {
"default": "",
"description": "全文檢索關鍵字,例如:預售屋 遲延交屋",
"type": "string",
"maxLength": 128
},
"court": {
"description": "法院名稱,例如:最高法院、臺灣臺北地方法院",
"type": "string",
"maxLength": 30
},
"case_type": {
"type": "string",
"enum": [
"民事",
"刑事",
"行政",
"懲戒"
]
},
"year_from": {
"description": "起始年度(民國年)",
"type": "integer",
"minimum": 1,
"maximum": 200
},
"year_to": {
"description": "截止年度(民國年)",
"type": "integer",
"minimum": 1,
"maximum": 200
},
"case_word": {
"description": "字別,例如:台上、上易、重訴",
"type": "string",
"maxLength": 10
},
"case_number": {
"description": "案號數字",
"type": "string",
"maxLength": 15
},
"main_text": {
"description": "裁判主文關鍵字(輸贏方篩選)",
"type": "string",
"maxLength": 60
},
"limit": {
"default": 10,
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_taiwan_judgment(jid, fresh)
依司法院 JID 取得裁判全文與官方網址。回應得經至多 6 小時邊緣快取(cached/retrieved_at 標示);需最新狀態或裁判疑似已下架時,設 fresh=true 強制向官方重抓。
输入模式
{
"type": "object",
"properties": {
"jid": {
"type": "string",
"minLength": 8,
"maxLength": 180,
"description": "司法院裁判書 JID"
},
"fresh": {
"default": false,
"description": "略過邊緣快取,強制向司法院取得最新內容",
"type": "boolean"
}
},
"required": [
"jid"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_taiwan_regulations(keyword, offset, exclude_abolished)
在 11,700+ 部法規(法律+命令)名稱中做關鍵字搜尋,回傳法規名稱、pcode 與現行/已廢止狀態。離線資料快照,即時回應。
输入模式
{
"type": "object",
"properties": {
"keyword": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"description": "搜尋關鍵字,例如:勞動、消費、智慧財產"
},
"offset": {
"default": 0,
"description": "分頁偏移,每頁 50 筆",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"exclude_abolished": {
"default": false,
"description": "排除已廢止法規",
"type": "boolean"
}
},
"required": [
"keyword"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_taiwan_pcode(law_name)
將法規名稱(含常見簡稱如勞基法、個資法)轉換為全國法規資料庫 pcode 代碼,支援模糊比對與建議。
输入模式
{
"type": "object",
"properties": {
"law_name": {
"type": "string",
"minLength": 1,
"maxLength": 60,
"description": "法規名稱,例如:民法、勞基法、消保法"
}
},
"required": [
"law_name"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_taiwan_interpretation(case_id, include_reasoning, reasoning_keyword, include_opinions, opinions_keyword)
取得釋字(第 1-813 號)或憲判字(111 年起)內容,來自官方公告文書的本地快照,即時回應。預設回傳字號/日期/爭點/解釋文等精簡層;理由書與意見書需 opt-in:優先用 reasoning_keyword / opinions_keyword 取關鍵字片段(省 token),確有需要才用 include_* 取全文(超過 15000 字會截斷並警告)。
输入模式
{
"type": "object",
"properties": {
"case_id": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"description": "字號,例如:釋字第748號、釋字748、111年憲判字第1號、111憲判1"
},
"include_reasoning": {
"default": false,
"description": "回傳理由書全文",
"type": "boolean"
},
"reasoning_keyword": {
"default": "",
"description": "在理由書中搜尋關鍵字並回片段(優先於 include_reasoning)",
"type": "string",
"maxLength": 40
},
"include_opinions": {
"default": false,
"description": "回傳意見書全文",
"type": "boolean"
},
"opinions_keyword": {
"default": "",
"description": "在意見書中搜尋關鍵字並回片段",
"type": "string",
"maxLength": 40
}
},
"required": [
"case_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_taiwan_interpretations(keyword, year, number_from, number_to, include_old, ...)
列舉或全文搜尋釋字與憲判字(搜標題、爭點/案由與理由書全文)。每筆結果帶 case_id,可直接傳給 get_taiwan_interpretation。
输入模式
{
"type": "object",
"properties": {
"keyword": {
"default": "",
"description": "關鍵字(標題/字號/爭點/理由書全文匹配),例如:集會自由",
"type": "string",
"maxLength": 40
},
"year": {
"default": 0,
"description": "篩選民國年度(僅憲判字),0=不篩選",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"number_from": {
"default": 0,
"description": "起始號次(含),0=不篩選",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"number_to": {
"default": 0,
"description": "截止號次(含),0=不篩選",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"include_old": {
"default": true,
"description": "包含舊制釋字",
"type": "boolean"
},
"include_new": {
"default": true,
"description": "包含新制憲判字",
"type": "boolean"
},
"deep": {
"default": false,
"description": "同時全文搜尋理由書(較慢);預設僅搜字號/標題/爭點索引",
"type": "boolean"
},
"max_results": {
"default": 30,
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_taiwan_interpretation_citations(case_id, include_context)
從釋字/憲判字理由書中抽取引用的其他釋字與憲判字字號(往前追溯),可附引用處前後 80 字片段。
输入模式
{
"type": "object",
"properties": {
"case_id": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"description": "字號,格式同 get_taiwan_interpretation"
},
"include_context": {
"default": false,
"description": "每個引用附上原文片段",
"type": "boolean"
}
},
"required": [
"case_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_taiwan_law_progress(law, max_bills)
查立法院開放資料平台(data.ly.gov.tw 官方直連)取得法律的立法歷程:該法所有修法提案的提案人、連署人、議案狀態與官方關係文書(PDF/DOC)連結。補「修法沿革」上游的立法過程(誰提案、審到哪裡)。資料授權:政府資料開放授權條款第 1 版(與 CC-BY-4.0 相容)。
输入模式
{
"type": "object",
"properties": {
"law": {
"type": "string",
"minLength": 2,
"maxLength": 60,
"description": "法律名稱(如:勞動基準法)"
},
"max_bills": {
"default": 10,
"description": "回傳提案數上限(依最近會議日期排序)",
"type": "integer",
"minimum": 1,
"maximum": 30
}
},
"required": [
"law"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_taiwan_law_versions(law, limit)
查立法院開放資料平台(官方直連)取得法律的三讀通過紀錄與附帶決議:三讀屆會次、三讀通過條文 PDF、附帶決議內容。涵蓋近年(2023 起)三讀紀錄;完整修正沿革請併用 search_taiwan_laws 查全國法規資料庫。資料授權:政府資料開放授權條款第 1 版。
输入模式
{
"type": "object",
"properties": {
"law": {
"type": "string",
"minLength": 2,
"maxLength": 60,
"description": "法律名稱(如:道路交通管理處罰條例)"
},
"limit": {
"default": 30,
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"required": [
"law"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_taiwan_bills(keyword, proposer, term, bill_status, limit)
搜尋立法院議案提案(官方直連 data.ly.gov.tw):以提案名稱關鍵字、提案人、屆期、議案狀態查詢。回傳議案編號、名稱、提案單位、提案人與連署人、議案狀態與官方關係文書 PDF/DOC 連結。資料授權:政府資料開放授權條款第 1 版。
输入模式
{
"type": "object",
"properties": {
"keyword": {
"default": "",
"description": "關鍵字(例:勞動基準法、最低工資)",
"type": "string",
"maxLength": 60
},
"proposer": {
"default": "",
"description": "提案人姓名",
"type": "string",
"maxLength": 20
},
"term": {
"description": "屆期(例:11)",
"type": "integer",
"minimum": 1,
"maximum": 20
},
"bill_status": {
"default": "",
"description": "議案狀態(例:交付審查、三讀)",
"type": "string",
"maxLength": 20
},
"limit": {
"default": 10,
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_moj_interpretations(keyword, doc_types, limit)
在法務部主管法規查詢系統(mojlaw.moj.gov.tw)以關鍵字搜尋行政函釋、法規諮詢意見、法律問題座談等文書,回傳發文字號、日期、要旨與官方網址。涵蓋範圍限法務部主管文書;即時查詢、不保存副本。
输入模式
{
"type": "object",
"properties": {
"keyword": {
"type": "string",
"minLength": 2,
"maxLength": 60,
"description": "關鍵字(例:消滅時效、借名登記)"
},
"doc_types": {
"default": [
"行政函釋"
],
"description": "文書類型(可多選)",
"type": "array",
"items": {
"type": "string",
"enum": [
"行政函釋",
"法規",
"法規諮詢意見",
"法律問題座談",
"聲明異議決定書"
]
}
},
"limit": {
"default": 10,
"type": "integer",
"minimum": 1,
"maximum": 30
}
},
"required": [
"keyword"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_moj_draft_announcements(include_all_news, limit)
取得法務部主管法規系統的法規草案預告清單(含官方網址);可一併回傳近期法規訊息(修正條文、行政規則發布等)。涵蓋範圍限法務部。
输入模式
{
"type": "object",
"properties": {
"include_all_news": {
"default": false,
"description": "一併回傳近期所有法規訊息",
"type": "boolean"
},
"limit": {
"default": 15,
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}推荐提示词
search_taiwan_lawssearch_taiwan_lawsget_taiwan_judgmentget_taiwan_judgmentsearch_taiwan_lawsget_taiwan_judgment社区
证据