Skip to main content
Glama

australian-law-mcp

用于联邦立法登记册的 MCP 服务器。询问澳大利亚法律在任何日期的规定,并在依赖引用之前对照官方登记册进行核对。无需 API 密钥,无需注册。

所有内容均实时来自联邦自己的立法 API:超过 130,000 部法案和立法文书,每部法案的每个汇编版本,可追溯至 1901 年。该登记册是联邦法律的授权来源,并且原生发布时点版本——因此 get_law_as_at 返回的是您指定日期实际生效的文本,而非重建内容。

快速开始

Claude Code:

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

Claude Desktop、Cursor 或任何其他 stdio MCP 客户端:

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

需要 Node 20 或更高版本。无需安装其他内容——npx 会在首次运行时获取该包

如果您不希望主机上安装 Node,可以使用 Dockerfile。服务器使用 stdio 通信,因此容器需要 -i 参数:

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

Related MCP server: canlii-mcp

工具

工具

功能

search_law

按名称查找法案和文书。返回其他工具所需的标题 ID。

get_law_text

当前汇编版本:条款目录、单个章节或分页的全文。附表也可寻址(section="Schedule 7"),费率表和表格通常位于此处。

get_law_as_at

同上,但以法律在过去任何日期的状态为准。

verify_citations

从文本中提取法规引用,并逐一对照登记册检查:法案是否存在、是否生效、所引用的章节是否存在。上游故障返回为 UNVERIFIED,绝不会报告为法律缺失。

get_amendment_status

生效或已废除、最新汇编包含的内容、已生效的修正案是否仍未纳入,以及哪些内容对其进行了修正。

compare_versions

两个日期之间的变化:新增、删除、改写的章节——或单个章节的行级差异。

search_full_text

对登记册上所有标题的正文进行相关性排序搜索。

check_frl_health

对登记册 API 进行 ping 操作,以便将其他位置的故障归因。

docs/tools.md 包含每个工具的参数和完整示例,包括每个工具在无法回答时的行为。

为什么时点版本很重要

税务争议、签证决定、合同和法院案件取决于过去某天的法律状态,而模型通常会错误地以今天的法律作答。登记册保留每个汇编版本及其精确的生效时间窗口:

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 ...

verify_citations 是另一方向的护栏——防止模型虚构从未颁布的章节:

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

真实法律被报告为缺失是该类工具最严重的失败,因此网络和 API 错误始终报告为 UNVERIFIED 而非 NOT FOUND,并且只有当引用确实与法案绑定时,章节才会被检查。

同样的规则适用于文本本身。登记册自 1901 年以来以三种不同格式发布,其中最古老的——联邦时代法案的扫描件——完全没有结构标记,只有正文中的编号。这些内容根据其自身的编号进行读取,并且仅当恢复的章节编号从第 1 节开始按顺序排列时,结果才被接受。如果不满足,工具会说明无法读取该汇编版本,而不会报告一个没有章节的法案,或将一个章节的内容归入另一个章节的编号下。

范围

仅限联邦立法,这是设计使然。州登记册要么没有开放 API(维州),要么面临机器人挑战(新州),要么需要注册(昆州)。判例法数据库(AustLII、Jade)不允许自动访问,因此没有判例法工具。ATO 裁定无法通过机器访问。如果这些情况发生变化,范围可以扩大。

数据来源与许可

立法内容来自联邦立法登记册 API,并由澳大利亚联邦根据 CC BY 4.0 许可;所有复制登记册内容的响应均附带登记册要求的署名。本项目独立:与议会法律顾问办公室或澳大利亚政府无关联,也未获其认可。输出为法律信息,而非法律建议——任何法律的授权版本均以登记册上发布的为准。

代码采用 MIT 许可。

开发

npm install
npm test                        # build + unit tests (offline)
node scripts/smoke.mjs          # live API smoke test
node scripts/protocol-test.mjs  # stdio round trip against the live API
Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    An MCP server providing AI assistants access to Canadian case law and legislation metadata from CanLII across all jurisdictions, supporting search and citation relationships.
    7
    12
    5
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    MCP server for Australia's Federal Register of Legislation. Enables searching and fetching Commonwealth Acts with verifiable citations.
    2
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • MCP for CanLII: Canadian case law and legislation metadata (federal, provincial, territorial).

  • Japan Law MCP — Japanese national laws & ordinances via the e-Gov Law API.

  • A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChangkeunJ/australian-law-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server