Australian Law Mcp

io.github.ChangkeunJ由 GitHub 帳號 ChangkeunJ 發布v0.1.5更新於 Oct 24, 2026

Read Australian Commonwealth law as it stood on any date, and verify citations against the register

概覽

AI 產生的概覽

讓助理讀取任一日期生效的澳洲聯邦法律,並對照官方登記冊核驗法條引用。

可以做什麼
直接取用聯邦立法登記冊(Federal Register of Legislation)的即時資料,涵蓋自 1901 年以來超過 13 萬部聯邦法案與立法文書。工具包括:search_law 與 search_full_text 用來尋找標題,get_law_text 與 get_law_as_at 取得現行或特定歷史日期的文本,verify_citations 核驗所引法案與條文是否存在,get_amendment_status、compare_versions 檢視修訂狀態與兩個日期之間的變化,以及 check_frl_health。上游故障會回報為 UNVERIFIED,而不會回報為法律不存在。
適用情境
當任務取決於某一歷史日期生效的聯邦法律原文時適用,例如稅務、簽證、合約或訴訟事項;也適合在依賴模型給出的法條引用之前,對照官方登記冊進行核驗。
執行需求
透過 npx 以 stdio 方式在本機執行,需要 Node 20 或更新版本;也可改用隨附的 Dockerfile。不需要 API 金鑰、帳號或註冊。取得即時結果需要能連線至聯邦立法 API 的網路。
安裝前請注意
結果依賴上游登記冊 API,網路或 API 錯誤會回報為 UNVERIFIED 而非 NOT FOUND。範圍僅限聯邦立法:不含州級登記冊、判例法與 ATO 裁定。查詢內容會傳送至聯邦立法 API。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Australian Law Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

australian-law-mcp

MCP server for the Federal Register of Legislation. Ask what Australian law said on any date, and check citations against the official register before you rely on them. No API key, nothing to sign up for.

Everything is served live from the Commonwealth's own legislation API: 130,000+ acts and legislative instruments, every compilation of each one, back to 1901. That register is the authorised source of Commonwealth law, and it publishes point-in-time versions natively — so get_law_as_at returns the text that was actually in force on the date you name, not a reconstruction.

Quick start

Claude Code:

claude mcp add australian-law -- npx -y australian-law-mcp

Claude Desktop, Cursor, or any other stdio MCP client:

json
{  "mcpServers": {    "australian-law": {      "command": "npx",      "args": ["-y", "australian-law-mcp"]    }  }}

Requires Node 20 or newer. Nothing else to install — npx fetches the package on first run.

There is a Dockerfile if you would rather not have Node on the host. The server speaks stdio, so the container needs -i:

docker build -t australian-law-mcp .docker run -i --rm australian-law-mcp

Tools

toolwhat it does
search_lawFind acts and instruments by name. Returns the title ids the other tools take.
get_law_textThe current compilation: the table of provisions, one section, or the full text paginated. Schedules are addressable too (section="Schedule 7"), which is where rate tables and forms actually live.
get_law_as_atThe same, but as the law stood on any past date.
verify_citationsPull statute citations out of text and check each against the register: does the act exist, is it in force, does the cited section exist. Upstream failures come back as UNVERIFIED, never as a missing law.
get_amendment_statusIn force or repealed, what the latest compilation incorporates, whether commenced amendments are still unincorporated, and what has amended it.
compare_versionsWhat changed between two dates: sections added, removed, reworded — or a line diff of one section.
search_full_textRelevance-ranked search over the body text of every title on the register.
check_frl_healthPing the register API so failures elsewhere can be attributed.

docs/tools.md has the parameters and a worked example of each, including what every tool does when it cannot answer.

Why point-in-time matters

Tax disputes, visa decisions, contracts and court matters turn on the law as it stood on a past day, and models reliably answer with today's law instead. The register keeps every compilation with exact in-force windows:

get_law_as_at titleId=C2004A03348 date=2017-01-05 section=3A→ As at 2017-01-05: Income Tax Rates Act 1986, Compilation No. 48  s 3A  Working holiday makers and working holiday taxable income ...

And verify_citations is the guard rail for the other direction — models inventing sections that were never enacted:

verify_citations text="See s 3A and s 999 of the Income Tax Rates Act 1986."→ [OK] Income Tax Rates Act 1986 [C2004A03348] — in force.    [OK] s 3A exists: "Working holiday makers and working holiday taxable income"    [NOT FOUND] s 999 — Provision 999 was not found in this compilation. It has      28 sections and 6 schedules. Closest by number: s 30, s 29, s 28

A real law reported missing is the worst failure a tool like this can have, so network and API errors are always reported as UNVERIFIED rather than NOT FOUND, and a section is only checked against an act when the citation actually binds the two together.

The same rule governs the text itself. The register has published in three different formats since 1901, and the oldest of them — as-made scans of acts from the federation era — carries no structural markup at all, only the numbering in the prose. Those are read from their own numbering, and the result is accepted only when the section numbers it recovers run in order from section 1. When they do not, the tool says the compilation could not be read rather than reporting an act with no sections or filing one section's words under another's number.

Scope

Commonwealth legislation only, by design. State registers either have no open API (Vic), sit behind bot challenges (NSW), or require registration (Qld). Case law databases (AustLII, Jade) do not permit automated access, so there is no case-law tool. ATO rulings are not machine-accessible. If any of that changes, the scope can grow.

Data source and licence

Legislative content comes from the Federal Register of Legislation API and is licensed CC BY 4.0 by the Commonwealth of Australia; every response that reproduces register content carries the register's required attribution. This project is independent: not affiliated with or endorsed by the Office of Parliamentary Counsel or the Australian Government. Output is legal information, not legal advice — the authorised version of any law is the one published on the register.

Code is MIT.

Development

npm installnpm test                        # build + unit tests (offline)node scripts/smoke.mjs          # live API smoke testnode scripts/protocol-test.mjs  # stdio round trip against the live API

來源:README.md,提交 659a444

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.5最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分