australian-law-mcp
australian-law-mcp
MCP-сервер для Федерального реестра законодательства. Спрашивайте, что говорил австралийский закон на любую дату, и проверяйте цитаты по официальному реестру, прежде чем полагаться на них. Никакого API-ключа, ничего не нужно регистрировать.
Всё обслуживается напрямую из официального API Содружества:
130 000+ актов и законодательных инструментов, каждая компиляция каждого из них, начиная
с 1901 года. Этот реестр является авторизованным источником права Содружества, и он
публикует версии на конкретную дату в исходном виде — так что get_law_as_at возвращает
текст, который действительно действовал на указанную вами дату, а не реконструкцию.
Быстрый старт
Claude Code:
claude mcp add australian-law -- npx -y australian-law-mcpClaude Desktop, Cursor или любой другой stdio MCP-клиент:
{
"mcpServers": {
"australian-law": {
"command": "npx",
"args": ["-y", "australian-law-mcp"]
}
}
}Требуется Node 20 или новее. Больше ничего устанавливать не нужно — npx загрузит
пакет при первом запуске.
Есть Dockerfile, если вы не хотите держать Node на хосте. Сервер
общается через stdio, поэтому контейнеру нужен флаг -i:
docker build -t australian-law-mcp .
docker run -i --rm australian-law-mcpRelated MCP server: au-eli-mcp
Инструменты
инструмент | что делает |
| Находит акты и законодательные инструменты по названию. Возвращает идентификаторы титулов, которые используют остальные инструменты. |
| Текущая компиляция: перечень положений, один раздел или полный текст постранично. Приложения также доступны ( |
| То же самое, но на любую прошедшую дату. |
| Извлекает ссылки на законодательство из текста и проверяет каждую по реестру: существует ли акт, действует ли он, существует ли указанный раздел. Сбои на стороне источника возвращаются как UNVERIFIED, а не как отсутствующий закон. |
| Действует или отменён, что включает последняя компиляция, вступили ли в силу принятые поправки и что именно было изменено. |
| Что изменилось между двумя датами: добавленные, удалённые, переформулированные разделы — или построчный диф одного раздела. |
| Поиск по релевантности по полному тексту каждого титула в реестре. |
| Проверяет доступность API реестра, чтобы сбои можно было корректно атрибутировать. |
В 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 (Vic), либо доступ ограничен (NSW), либо требуется регистрация (Qld). Базы судебной практики (AustLII, Jade) не предоставляют автоматизированного доступа, поэтому инструмента для прецедентного права нет. Решения административных органов недоступны машинным способом. Если это изменится, сфера применения может расшириться.
Источник данных и лицензия
Законодательный контент поступает из Федерального реестра законодательства через 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 APIAvailable Tools
8 toolscheck_frl_healthCheck the register APIARead-only
Pings the Federal Register of Legislation API and reports latency, so failures elsewhere can be attributed.
Inputs: no named parameters.
compare_versionsCompare an act between two datesARead-only
Shows what changed in an act between two dates: which sections were added, removed or reworded. Give a section number for a line-by-line diff of that provision.
Inputs: dateA (required), dateB (required), titleId (required), page, +1 more.
get_amendment_statusAmendment status of an actARead-only
Reports whether a title is in force, what its latest compilation incorporates, whether commenced amendments are still unincorporated, and which acts have amended it.
Inputs: titleId (required).
get_law_as_atRead an act as it stood on a dateARead-only
Returns the compilation of a Commonwealth act that was in force on the given date — the register keeps every historical version. Same output shape as get_law_text.
Inputs: date (required), titleId (required), full, page, +1 more.
get_law_textRead the current text of an actARead-only
Returns the latest compilation of a Commonwealth act or instrument. Without a section number it lists the table of sections; with one it returns that provision. Set full=true for the whole text, paginated.
Inputs: titleId (required), full, page, section.
search_full_textFull-text search across all legislationARead-only
Searches the body text of every act and instrument on the register for a phrase, ranked by relevance. Slower and broader than search_law.
Inputs: phrase (required), limit, match.
search_lawSearch Australian legislation by nameARead-only
Finds Commonwealth acts and legislative instruments on the Federal Register of Legislation by title. Returns title ids for the other tools. Falls back to full-text matching when nothing matches by name.
Inputs: query (required), limit.
verify_citationsCheck statute citations against the registerARead-only
Extracts Australian statute citations from text and checks each against the Federal Register of Legislation: does the act exist, is it still in force, does the cited section exist in the current compilation. Use before presenting legal citations to a user. An upstream failure is reported as UNVERIFIED, never as a missing law.
Inputs: text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have clearly distinct purposes. The only mild ambiguity is between get_law_text and get_law_as_at, but the descriptions make the current-versus-historical distinction explicit. search_law and search_full_text are also separable by title-search versus full-text-search.
All tool names follow a consistent snake_case verb_noun pattern, such as search_law, get_law_text, compare_versions, and verify_citations. The get_ and search_ prefixes group related operations predictably, with no mixed conventions.
Eight tools is well-scoped for a legal research server. Each tool provides a distinct capability without redundancy, and the count feels neither thin nor bloated for the domain.
The toolset covers the core legislative research workflow: finding laws, retrieving current and historical text, checking amendment status, comparing versions, and verifying citations. There are no obvious dead ends or missing operations for the stated purpose of working with the Federal Register of Legislation.
Maintenance
Related MCP Connectors
MCP server for FCA Handbook compliance analysis with verbatim citations.
MCP for CanLII: Canadian case law and legislation metadata (federal, provincial, territorial).
Hosted MCP server for finding authoritative primary data sources and official portals.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server providing AI assistants access to Canadian case law and legislation metadata from CanLII across all jurisdictions, supporting search and citation relationships.79MIT
- AlicenseAqualityBmaintenanceMCP server for Australia's Federal Register of Legislation. Enables searching and fetching Commonwealth Acts with verifiable citations.379 PyPIApache 2.0
- AlicenseAqualityBmaintenanceMCP server for Swiss federal legislation metadata via Fedlex, enabling search and retrieval of act details with ELI URIs, SR numbers, and multilingual support.3Apache 2.0
- AlicenseAqualityBmaintenanceMCP server for the Laws of Malaysia Online portal, fetching and citing Malaysian principal Acts with verifiable citations.347 PyPIApache 2.0