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 分