get_bill
取得特定議案的詳細資訊。
Args: bill_no: 議案編號,必填,例:203110077970000
Returns: str: JSON 格式,包含議案基本資料、提案人資訊、議案流程、相關法條等詳細資訊。
Raises: 例外時回傳中文錯誤訊息字串。
Query Taiwan's Legislative Yuan open data — bills, committees, gazettes, interpellations, laws, sittings, legislators and votes — across 42 tools over the official v2 API.
LABSCO SUMMARY
A failure names its type — http_status, timeout, network_error, invalid_json or unexpected_error — alongside the URL, the status code and an excerpt of the response, which is the difference between an agent retrying sensibly and giving up. The coverage is the other reason to reach for it: laws are modelled as versions with their amendments and proposers, and votes carry each member's position, so questions like how a bill changed between readings or who voted which way are single queries rather than reconstructions. Tool descriptions are in Traditional Chinese, matching the data.
A client for the Legislative Yuan API v2, covering ten domains of Taiwanese parliamentary data in 42 tools. Successful calls return the API's own JSON unchanged; failures return a machine-readable error envelope rather than prose.
No account and no key — the Legislative Yuan API v2 is public. uvx lymcp@latest is the shortest route; a Docker image and a local uv run are the alternatives. The same package installs an ly command so a shell workflow can query the API directly, printing the same JSON error envelope and a non-zero exit code on failure.
One command — uvx lymcp@latest
USE CASES
Read the bill, the sittings that reviewed it, and the documents it produced.
The version history carries the amendments, the proposers and the progress behind each change.
What they proposed, what they co-signed, which sittings they attended and what they asked.
Votes filtered by a member's position, read in full, and traced back to their sitting.
The video record carries its transcript and the gazette text alongside the URL.
The committee's sittings, and the bills discussed in each of them.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
get_bill取得特定議案的詳細資訊。
Args: bill_no: 議案編號,必填,例:203110077970000
Returns: str: JSON 格式,包含議案基本資料、提案人資訊、議案流程、相關法條等詳細資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_bill_doc_html取得特定議案的文件 HTML 內容列表。
Args: bill_no: 議案編號,必填,例:203110077970000
Returns: str: JSON 格式,包含該議案的所有相關文件 HTML 內容(議案本文、附件、修正對照表等)。
Notes: 若回傳空白內容,可能原因包含:該議案尚無正式文件、文件尚未數位化、或 API 資料延遲更新。 建議先使用 get_bill_detail 確認議案存在後再查詢文件內容。
Raises: 例外時回傳中文錯誤訊息字串。
get_bill_meets取得特定議案的相關會議列表。
Args: bill_no: 議案編號,必填,例:203110077970000 term: 屆期篩選,例:11 meeting_code: 會議代碼篩選 session: 會期篩選,例:2 meeting_type: 會議種類篩選,例:院會、委員會 member: 出席委員篩選 date: 會議日期篩選,格式:YYYY-MM-DD committee_code: 委員會代號篩選 meet_id: 會議資料中的會議編號 related_bill_no: 關係文書中的議案編號 law_number: 關係文書中的法律編號 page: 頁數,預設1 limit: 每頁筆數,預設20 output_fields: 自訂回傳欄位
Returns: str: JSON 格式,包含該議案在各會議中的審議紀錄(會議資訊、審議結果、發言紀錄等)。
Raises: 例外時回傳中文錯誤訊息字串。
get_bill_related_bills取得特定議案的相關議案列表。
Args: bill_no: 議案編號,必填,例:203110077970000
Returns: str: JSON 格式,包含該議案的相關議案資訊(關聯類型、相關議案編號等)。
Raises: 例外時回傳中文錯誤訊息字串。
get_committee取得特定委員會資訊。
Args: comt_cd: 委員會代號,必填,例:15
Returns: str: JSON 格式,包含委員會基本資料、委員資訊等詳細資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_committee_meets取得委員會相關會議列表。
Args: comt_cd: 委員會代號,必填,例:15 term: 屆期篩選,例:11 meeting_code: 會議代碼 session: 會期篩選,例:2 meeting_type: 會議種類篩選,例:院會、委員會 member: 會議資料.出席委員 date: 日期,格式:YYYY-MM-DD committee_code: 委員會代號 meet_id: 會議資料.會議編號 bill_no: 議事網資料.關係文書.議案.議案編號 law_number: 議事網資料.關係文書.議案.法律編號 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式,包含該委員會的相關會議資訊(會議編號、會議日期、出席委員等)。
Raises: 例外時回傳中文錯誤訊息字串。
get_gazette取得特定公報的詳細資訊。
Args: gazette_id: 公報編號,必填,例:1137701
Returns: str: JSON 格式,包含公報詳細資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_gazette_agenda取得特定公報目錄的詳細資訊。
Args: gazette_agenda_id: 公報議程編號,必填,例:1137701_00001
Returns: str: JSON 格式,包含公報目錄詳細資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_gazette_agendas取得特定公報所含的公報目錄列表。
Args: gazette_id: 路徑中的公報編號,必填,例:1137701 gazette_number: 查詢條件中的公報編號,例:1137701 volume: 卷,例:113 issue: 期,例:77 booklet: 冊別,例:1 term: 屆,例:11 meeting_date: 會議日期,格式:YYYY-MM-DD,例:2024-10-04 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式,包含該公報的公報目錄資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_interpellation取得特定質詢的詳細資訊。
Args: interpellation_id: 質詢編號,必填,例:11-1-1-1
Returns: str: JSON 格式,包含質詢詳細資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_ivod取得特定 IVOD(網路電視)影片的詳細資訊。
Args: ivod_id: IVOD 編號,必填,例:156045
Returns: str: JSON 格式,包含 IVOD 影片詳細資訊,包括播放頁面網址、影片網址、 會議資料、影片長度、委員發言時間、逐字稿等。
Raises: 例外時回傳中文錯誤訊息字串。
get_law取得特定法律的詳細資訊。
Args: law_id: 法律編號,必填,例:09200015
Returns: str: JSON 格式,包含法律基本資料、法條內容、版本資訊等詳細資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_law_bills取得特定法律相關的議案列表。
Args: law_id: 法律編號,必填,例:09200015 term: 屆,例:11 session: 會期,例:2 bill_flow_status: 議案流程狀態,如:交付審查、三讀 bill_type: 議案類別,如:法律案、預算案 proposer: 提案人姓名 cosigner: 連署人姓名 law_number: 法律編號 bill_status: 議案狀態,如:交付審查、三讀、排入院會 meeting_code: 會議代碼 proposal_source: 提案來源,如:委員提案、政府提案 bill_number: 議案編號 proposal_number: 提案編號 reference_number: 字號 article_number: 法條編號 proposal_date: 提案日期,格式:YYYY-MM-DD proposal_unit_or_member: 提案單位或提案委員 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式,包含該法律相關的議案資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_law_content取得特定法條的詳細資訊。
Args: law_content_id: 法條編號,例:90481:90481:1944-02-29-制定:0
Returns: str: JSON 格式,包含該法條的詳細資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_law_progress取得特定法律的未議決進度列表。
Args: law_id: 法律編號,必填,例:09200015
Returns: str: JSON 格式,包含該法律相關的未議決進度資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_law_version取得特定法律版本資訊。
Args: law_version_id: 版本編號,必填,例:90481:1944-02-29-制定
Returns: str: JSON 格式,包含法律版本詳細資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_law_version_contents取得法律版本包含的法條列表。
Args: law_version_id: 版本編號,必填,例:90481:1944-02-29-制定 law_number: 法律編號,例:90481 version_id: 法條資料版本編號,例:90481:1944-02-29-制定 order: 順序,例:1 article_number: 條號,例:第一條 current_version_status: 現行版,可選值:現行、非現行 version_tracking: 版本追蹤,例:new page: 頁數,預設1 limit: 每頁筆數,預設20 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式,包含特定法律版本的法條列表。
Raises: 例外時回傳中文錯誤訊息字串。
get_law_versions取得特定法律過往的版本紀錄列表。
Args: law_id: 法律編號,必填,例:09200015 law_number: 法律編號,例:90481 version_number: 版本編號,例:90481:1944-02-29-制定 date: 日期,格式:YYYY-MM-DD,例:1944-02-29 action: 動作,例:制定 main_proposer: 歷程主提案,例:張子揚 progress: 歷程進度,例:一讀 current_version: 現行版本,現行或非現行 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式,包含該法律的歷史版本紀錄資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_legislator取得特定立法委員的詳細資訊。
Args: term: 屆,例:11 name: 委員姓名,例:韓國瑜
Returns: str: JSON 格式,包含該立法委員的詳細資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_legislator_cosign_bills取得委員為連署人的法案列表。
Args: term: 屆,例:11 name: 委員姓名,例:韓國瑜 bill_term: 議案所屬屆期,例:11 session: 議案所屬會期,例:2 bill_flow_status: 議案流程狀態,如:交付審查、三讀 bill_type: 議案類別,如:法律案、預算案 proposer: 提案人姓名 cosigner: 連署人姓名 law_number: 法律編號 bill_status: 議案狀態,如:交付審查、三讀、排入院會 meeting_code: 會議代碼 proposal_source: 提案來源,如:委員提案、政府提案 bill_number: 議案編號 proposal_number: 提案編號 reference_number: 字號 article_number: 法條編號 proposal_date: 提案日期,格式:YYYY-MM-DD page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的委員為連署人的法案列表。
Raises: 例外時回傳中文錯誤訊息字串。
get_legislator_interpellations取得委員為質詢委員的質詢列表。
Args: term: 屆期,必填,例:11 name: 委員姓名,必填,例:韓國瑜 interpellation_member: 質詢委員姓名,例:羅智強 term_query: 查詢條件中的屆,例:10 session: 會期,例:2 meeting_code: 會議代碼,例:院會-11-2-6 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式,包含委員為質詢委員的質詢資料。
Raises: 例外時回傳中文錯誤訊息字串。
get_legislator_meets取得委員出席的會議列表。
Args: term: 屆,例:11 name: 委員姓名,例:韓國瑜 meet_term: 會議所屬屆期,例:11 meeting_code: 會議代碼,例:院會-11-2-6 session: 會期,例:2 meeting_type: 會議種類,例:院會 member: 出席委員,例:陳秀寳 date: 日期,例:2024-10-25 committee_code: 委員會代號,例:23 meet_id: 會議編號,例:2024102368 bill_no_nested: 關係文書議案編號,例:202110071090000 law_number_nested: 關係文書法律編號,例:01177 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的委員出席會議列表。
Raises: 例外時回傳中文錯誤訊息字串。
get_legislator_propose_bills取得委員為提案人的法案列表。
Args: term: 屆,例:11 name: 委員姓名,例:韓國瑜 bill_term: 議案所屬屆期,例:11 session: 議案所屬會期,例:2 bill_flow_status: 議案流程狀態,如:交付審查、三讀 bill_type: 議案類別,如:法律案、預算案 proposer: 提案人姓名 cosigner: 連署人姓名 law_number: 法律編號 bill_status: 議案狀態,如:交付審查、三讀、排入院會 meeting_code: 會議代碼 proposal_source: 提案來源,如:委員提案、政府提案 bill_number: 議案編號 proposal_number: 提案編號 reference_number: 字號 article_number: 法條編號 proposal_date: 提案日期,格式:YYYY-MM-DD page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的委員為提案人的法案列表。
Raises: 例外時回傳中文錯誤訊息字串。
get_meet取得特定會議的詳細資訊。
Args: meet_id: 會議代碼,例:院會-11-2-3
Returns: str: JSON 格式的會議詳細資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_meet_bills取得會議內的議案列表。
Args: meet_id: 會議代碼,例:院會-11-2-3 term: 屆,例:11 session: 會期,例:2 bill_flow_status: 議案流程狀態,如:交付審查、三讀 bill_type: 議案類別,如:法律案、預算案 proposer: 提案人姓名 co_proposer: 連署人姓名 law_number: 法律編號 bill_status: 議案狀態,如:交付審查、三讀、排入院會 meeting_code: 會議代碼 proposal_source: 提案來源,如:委員提案、政府提案 bill_number: 議案編號 proposal_number: 提案編號 reference_number: 字號 article_number: 法條編號 proposal_date: 提案日期,格式:YYYY-MM-DD proposal_unit_or_member: 提案單位或提案委員 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的會議內議案資料。
Raises: 例外時回傳中文錯誤訊息字串。
get_meet_interpellations取得會議內的質詢列表。
Args: meet_id: 會議代碼,例:院會-11-2-3 interpellation_member: 質詢委員,例:羅智強 term: 屆,例:11 session: 會期,例:2 meeting_code: 會議代碼,例:院會-11-2-6 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的會議內質詢資料。
Raises: 例外時回傳中文錯誤訊息字串。
get_meet_ivods取得特定會議相關的 IVOD(網路電視)影片列表。
Args: meet_id: 會議代碼,必填,例:院會-11-2-3 term: 屆,例:11 session: 會期,例:2 meeting_code: 會議代碼,例:委員會-11-2-22-5 member_name: 委員名稱,例:陳培瑜 committee_code: 委員會代碼,例:22 meeting_code_data: 會議資料.會議代碼,例:委員會-11-2-22-5 date: 日期,格式:YYYY-MM-DD,例:2024-10-24 video_type: 影片種類,Clip(片段)或 Full(完整) page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式,包含會議相關的 IVOD 影片列表資料。
Raises: 例外時回傳中文錯誤訊息字串。
get_stat取得立法院 API 的統計資訊。
Returns: str: JSON 格式的統計資訊。
Raises: 例外時回傳中文錯誤訊息字串。
get_vote取得特定表決紀錄。
get_vote_meets取得特定表決所屬的會議列表。
list_bills列出立法院議案列表。
Args: term: 屆,例:11 session: 會期,例:2 bill_flow_status: 議案流程狀態,如:交付審查、三讀 bill_type: 議案類別,如:法律案、預算案 proposer: 提案人姓名 cosigner: 連署人姓名 law_number: 法律編號 bill_status: 議案狀態,如:交付審查、三讀、排入院會 meeting_code: 會議代碼 proposal_source: 提案來源,如:委員提案、政府提案 bill_number: 議案編號 proposal_number: 提案編號 reference_number: 字號 article_number: 法條編號 proposal_date: 提案日期,格式:YYYY-MM-DD proposal_unit_or_member: 提案單位或提案委員 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的議案查詢結果。
Raises: 例外時回傳中文錯誤訊息字串。
list_committees列出委員會列表。
Args: committee_type: 委員會類別代碼,例:1(常設委員會) comt_cd: 委員會代號,例:15 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的委員會查詢結果。
Raises: 例外時回傳中文錯誤訊息字串。
list_gazette_agendas列出公報目錄列表。
Args: gazette_id: 公報編號,例:1137701 volume: 卷,例:113 issue: 期,例:77 booklet: 冊別,例:1 term: 屆,例:11 meeting_date: 會議日期,格式:YYYY-MM-DD,例:2024-10-04 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的公報目錄查詢結果。
Raises: 例外時回傳中文錯誤訊息字串。
list_gazettes列出立法院公報列表。
Args: gazette_id: 公報編號,例:1137701 volume: 卷,例:113 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的公報查詢結果。
Raises: 例外時回傳中文錯誤訊息字串。
list_interpellations列出立法院質詢列表。
Args: interpellation_member: 質詢委員姓名,例:羅智強 term: 屆期,例:11 session: 會期,例:2 meeting_code: 會議代碼,例:院會-11-2-6 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的質詢查詢結果。
Raises: 例外時回傳中文錯誤訊息字串。
list_ivods列出 IVOD(網路電視)影片列表。
Args: term: 屆,例:11 session: 會期,例:2 meeting_code: 會議代碼,例:委員會-11-2-22-5 member_name: 委員名稱,例:陳培瑜 committee_code: 委員會代碼,例:22 meeting_code_data: 會議資料.會議代碼,例:委員會-11-2-22-5 date: 日期,格式:YYYY-MM-DD,例:2024-10-24 video_type: 影片種類,Clip(片段)或 Full(完整) page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式,包含 IVOD 影片列表資料。
Raises: 例外時回傳中文錯誤訊息字串。
list_law_contents列出法條資料。
Args: law_number: 法律編號,例:90481 version_id: 版本編號,例:90481:90481:1944-02-29-制定:1 order: 順序,例:1 article_number: 條號,例:第一條 current_version_status: 現行版,可選值:現行、非現行 version_tracking: 版本追蹤,例:new page: 頁數,預設1 limit: 每頁筆數,預設20 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的法條列表。
Raises: 例外時回傳中文錯誤訊息字串。
list_law_versions列出法律版本資料。
Args: law_number: 法律編號,例:90481 version_number: 版本編號,例:90481:1944-02-29-制定 date: 日期,格式:YYYY-MM-DD,例:1944-02-29 action: 動作,例:制定 main_proposer: 歷程主提案,例:張子揚 progress: 歷程進度,例:一讀 current_version: 現行版本,現行或非現行 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式,包含法律版本列表。
Raises: 例外時回傳中文錯誤訊息字串。
list_laws列出立法院法律列表。
Args: law_number: 法律編號,例:09200015 category: 類別,母法或子法 parent_law_number: 母法編號,例:09200 law_status: 法律狀態,例:現行 authority: 主管機關,例:總統府 latest_version_date: 最新版本日期,格式:YYYY-MM-DD,例:2024-10-25 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的法律查詢結果。
Raises: 例外時回傳中文錯誤訊息字串。
list_legislators取得立法委員列表。
Args: term: 屆,例:11 party: 黨籍,例:民主進步黨 district_name: 選區名稱,例:臺南市第6選舉區 legislator_id: 歷屆立法委員編號,例:1160 legislator_name: 委員姓名,例:韓國瑜 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的立法委員列表。
Raises: 例外時回傳中文錯誤訊息字串。
list_meets列出立法院會議列表。
Args: term: 屆,例:11 meeting_code: 會議代碼,例:院會-11-2-6 session: 會期,例:2 meeting_type: 會議種類,例:院會 meeting_attendee: 出席委員,例:陳秀寳 date: 日期,格式:YYYY-MM-DD,例:2024-10-25 committee_code: 委員會代號,例:23 meeting_id: 會議編號,例:2024102368 meeting_bills_bill_no: 關係文書議案編號,例:202110071090000 meeting_bills_law_no: 關係文書法律編號,例:01177 page: 頁數,預設1 limit: 每頁筆數,預設20,建議不超過100 output_fields: 自訂回傳欄位(如需指定欄位,請填寫欄位名稱列表)
Returns: str: JSON 格式的會議列表。
Raises: 例外時回傳中文錯誤訊息字串。
list_votes列出立法院表決紀錄。
BEFORE YOU INSTALL
42 tools when we connected.
All 4 documented setups run the server on your machine.
CONTEXT COST
Rated by the size of the 42 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
uvx lymcp@latest{
"mcpServers": {
"lymcp": {
"command": "uvx",
"args": [
"lymcp@latest"
]
}
}
}{
"mcpServers": {
"lymcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/narumiruna/ly-mcp",
"lymcp"
]
}
}
}{
"mcpServers": {
"lymcp": {
"command": "uv",
"args": [
"run",
"--directory",
"<YOUR_PATH_TO_LY_MCP>",
"lymcp"
]
}
}
}{
"mcpServers": {
"lymcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"narumi/ly-mcp:latest"
]
}
}
}