Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"law-mcp-developer-taiwan-law-mcp","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# Taiwan Law MCP 台灣法規查詢 MCP 伺服器 一個優化的台灣法規查詢系統,提供高效的法規搜尋和條文查詢功能。 ## 特色功能 ### 🚀 優化特性 - **參數化內容控制** - 減少 token 消耗 - **精確法規代碼搜尋** - 快速取得法規 pcode - **可配置搜尋結果** - 自定義結果數量 - **摘要模式支援** - 完整模式與摘要模式切換 - **專門的法條代碼查詢** - 輕量級代碼查詢功能 ### 📋 主要工具 1. **search_law** - 搜尋法規名稱,取得基本資訊 2. **get_law_pcode** - 快速取得法規代碼 3. **get_full_law** - 取得完整法規條文(支援摘要模式) 4. **get_single_article** - 查詢特定條文 5. **search_by_keyword** - 關鍵字搜尋(可控制結果數量) 6. **validate_pcode** - 驗證法規代碼有效性 ## 安裝使用 ### 使用 UVX(推薦) ```bash # 直接運行 uvx taiwan-law-mcp # 或者安裝後使用 uv tool install taiwan-law-mcp taiwan-law-mcp ``` ### 使用 pip ```bash pip install taiwan-law-mcp taiwan-law-mcp ``` ### 開發模式 ```bash # 克隆倉庫 git clone <repository-url> cd legel-mcp # 安裝依賴 uv sync # 運行伺服器 python src/taiwan_law_mcp/server.py ``` ## 作為 Python 套件使用 ```python from taiwan_law_mcp import LawClient # 使用客戶端 with LawClient() as client: # 搜尋法規 result = client.search_law("民法") print(result) # 取得法規代碼 pcode = client.get_pcode("民法") print(f"民法代碼: {pcode}") # 取得完整法規(摘要模式) law = client.get_full_law(pcode="B0000001", summary_mode=True, max_articles=10) print(law) # 關鍵字搜尋 search_result = client.search_keyword("契約", max_results=5, summary_only=True) print(search_result) ``` ## API 範例 ### 搜尋法規 ```json { "name": "search_law", "arguments": { "name": "民法", "max_suggestions": 5 } } ``` ### 取得法規代碼 ```json { "name": "get_law_pcode", "arguments": { "name": "民法" } } ``` ### 取得完整法規(摘要模式) ```json { "name": "get_full_law", "arguments": { "pcode": "B0000001", "summary_mode": true, "max_articles": 20 } } ``` ### 關鍵字搜尋 ```json { "name": "search_by_keyword", "arguments": { "keyword": "契約", "max_results": 10, "summary_only": true } } ``` ## 優化說明 ### Token 消耗優化 1. **摘要模式** - 每條法規只顯示第一行內容 2. **結果數量限制** - 可設定最大搜尋結果數量 3. **精簡搜尋** - 移除冗長的介紹文字 4. **參數化內容** - 根據需求調整返回內容詳細程度 ### 搜尋改進 1. **專門的 pcode 查詢** - 快速取得法規代碼 2. **代碼驗證功能** - 驗證法規代碼有效性 3. **更明確…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.