australian-law-mcp
australian-law-mcp
Servidor MCP para el Registro Federal de Legislación. Pregunta qué decía la ley australiana en cualquier fecha y comprueba las citas contra el registro oficial antes de confiar en ellas. Sin clave de API, sin nada que configurar.
Todo se sirve en directo desde la propia API de legislación de la Commonwealth:
más de 130.000 leyes e instrumentos legislativos, cada compilación de cada uno, desde 1901.
Ese registro es la fuente autorizada de la ley de la Commonwealth y publica versiones
puntuales de forma nativa, por lo que get_law_as_at devuelve el texto que estaba
realmente en vigor en la fecha que indiques, no una reconstrucción.
Inicio rápido
Claude Code:
claude mcp add australian-law -- npx -y australian-law-mcpClaude Desktop, Cursor o cualquier otro cliente MCP stdio:
{
"mcpServers": {
"australian-law": {
"command": "npx",
"args": ["-y", "australian-law-mcp"]
}
}
}Requiere Node 20 o más reciente. No hay nada más que instalar: npx descarga
el paquete en la primera ejecución.
Hay un Dockerfile si prefieres no tener Node en el host. El servidor
habla stdio, así que el contenedor necesita -i:
docker build -t australian-law-mcp .
docker run -i --rm australian-law-mcpRelated MCP server: au-eli-mcp
Herramientas
herramienta | qué hace |
| Encuentra leyes y documentos por nombre. Devuelve los IDs de título que usan las demás herramientas. |
| La compilación actual: la tabla de disposiciones, una sección o el texto completo paginado. Los anexos también se pueden abordar ( |
| Lo mismo, pero como estaba la ley en cualquier fecha pasada. |
| Extrae citas de estatutos del texto y comprueba cada una contra el registro: ¿existe la ley, está en vigor, existe la sección citada? Los fallos de la fuente se devuelven como UNVERIFIED, nunca como una ley inexistente. |
| En vigor o derogada, qué incorpora la última compilación, si las enmiendas iniciadas siguen sin incorporarse y qué la ha modificado. |
| Qué cambió entre dos fechas: secciones añadidas, eliminadas, reformuladas, o un diff de líneas de una sección. |
| Búsqueda por relevancia sobre el texto completo de todos los títulos del registro. |
| Haz un ping a la API del registro para poder atribuir fallos en otros lugares. |
docs/tools.md tiene los parámetros y un ejemplo práctico de cada uno, incluido lo que hace cada herramienta cuando no puede responder.
Por qué importa el punto en el tiempo
Las disputas fiscales, las decisiones de visado, los contratos y los asuntos judiciales dependen de la ley vigente en un día pasado, y los modelos responden de forma fiable con la ley de hoy. El registro conserva cada compilación con ventanas de vigencia exactas:
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 ...Y verify_citations es la barrera de seguridad para la otra dirección: modelos
que inventan secciones que nunca se promulgaron:
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 28Una ley real que se informe como inexistente es el peor fallo que puede tener una herramienta como esta, por lo que los errores de red y de API siempre se informan como UNVERIFIED en lugar de NOT FOUND, y una sección solo se comprueba contra una ley cuando la cita realmente vincula a ambos.
La misma regla rige el texto en sí. El registro ha publicado en tres formatos diferentes desde 1901, y el más antiguo de ellos — los escaneos de las leyes de la era de la federación — no lleva ningún marcado estructural, solo la numeración en la prosa. Se leen a partir de su propia numeración, y el resultado solo se acepta cuando los números de sección que se recuperan van en orden desde la sección 1. Cuando no es así, la herramienta dice que la compilación no se pudo leer en lugar de informar de una ley sin secciones o de archivar las palabras de una sección bajo el número de otra.
Alcance
Solo legislación de la Commonwealth, por diseño. Los registros estatales o no tienen API pública (Vic), o están detrás de desafíos de bots (NSW), o requieren registro (Qld). Las bases de datos de jurisprudencia (AustLII, Jade) no permiten el acceso automatizado, por lo que no hay herramienta de jurisprudencia. Las resoluciones de la ATO no son accesibles por máquina. Si algo de eso cambia, el alcance puede crecer.
Fuente de datos y licencia
El contenido legislativo proviene de la API del Registro Federal de Legislación y está licenciado CC BY 4.0 por la Commonwealth de Australia; cada respuesta que reproduce el contenido del registro lleva la atribución requerida por el registro. Este proyecto es independiente: no está afiliado ni respaldado por la Oficina del Consejo Parlamentario ni por el Gobierno australiano. La salida es información legal, no asesoramiento legal: la versión autorizada de cualquier ley es la publicada en el registro.
El código es MIT.
Desarrollo
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
- AlicenseAqualityCmaintenanceMCP server for Australia's Federal Register of Legislation. Enables searching and fetching Commonwealth Acts with verifiable citations.3Apache 2.0
- AlicenseAqualityCmaintenanceMCP 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
- AlicenseAqualityCmaintenanceMCP server for the Laws of Malaysia Online portal, fetching and citing Malaysian principal Acts with verifiable citations.347 PyPIApache 2.0