npm australian-law-mcpstdioMITupdated 19d ago
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.
¿Qué puedes hacer con australian law mcp?
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:
{
"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
| tool | what it does |
|---|---|
search_law |
Find acts and instruments by name. Returns the title ids the other tools take. |
get_law_text |
The 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_at |
The same, but as the law stood on any past date. |
verify_citations |
Pull 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_status |
In force or repealed, what the latest compilation incorporates, whether commenced amendments are still unincorporated, and what has amended it. |
compare_versions |
What changed between two dates: sections added, removed, reworded — or a line diff of one section. |
search_full_text |
Relevance-ranked search over the body text of every title on the register. |
check_frl_health |
Ping 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 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
Instalación
Añade australian law mcp a tu cliente. Elige el que uses.
claude mcp add australian-law-mcp -- npx -y australian-law-mcpcodex mcp add australian-law-mcp -- npx -y australian-law-mcpamp mcp add australian-law-mcp -- npx -y australian-law-mcp{
"mcpServers": {
"australian-law-mcp": {
"command": "npx",
"args": [
"-y",
"australian-law-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"australian-law-mcp": {
"command": "npx",
"args": [
"-y",
"australian-law-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"australian-law-mcp","command":"npx","args":["-y","australian-law-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"australian-law-mcp": {
"command": "npx",
"args": [
"-y",
"australian-law-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"australian-law-mcp": {
"command": "npx",
"args": [
"-y",
"australian-law-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"australian-law-mcp": {
"command": "npx",
"args": [
"-y",
"australian-law-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"australian-law-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"australian-law-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"australian-law-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"australian-law-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y australian-law-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
8 herramientas
australian law mcp expone 8 herramientas a un agente conectado.
- search_law
- Find acts and instruments by name. Returns the title ids the other tools take.
- get_law_text
- The 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_at
- The same, but as the law stood on any past date.
- verify_citations
- Pull 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_status
- In force or repealed, what the latest compilation incorporates, whether commenced amendments are still unincorporated, and what has amended it.
- compare_versions
- What changed between two dates: sections added, removed, reworded — or a line diff of one section.
- search_full_text
- Relevance-ranked search over the body text of every title on the register.
- check_frl_health
- Ping the register API so failures elsewhere can be attributed.
Puntuación
75 / 100
Buena
- Documentación25/25
- Mantenimiento19/25
- Confianza13/20
- Capacidad6/15
- Instalación12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 11 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 8 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Historial de versiones
| Versiones | Publicada |
|---|---|
| 0.1.4Última | 20 ago 2026 |
| 0.1.3 | 20 ago 2026 |