{"_id":"@ansvar/australian-law-mcp","_rev":"3-c297ac92d73fa1d176da01e9b3c20bcf","name":"@ansvar/australian-law-mcp","dist-tags":{"latest":"2.0.0"},"versions":{"1.1.0":{"name":"@ansvar/australian-law-mcp","version":"1.1.0","keywords":["mcp","model-context-protocol","ai","claude","australian-law","privacy-act","soci-act","cybersecurity","critical-infrastructure","corporations-act","legislation","legal","compliance","ansvar"],"author":{"name":"Ansvar Systems AB","email":"hello@ansvar.ai"},"license":"Apache-2.0","_id":"@ansvar/australian-law-mcp@1.1.0","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"homepage":"https://github.com/Ansvar-Systems/australian-law-mcp#readme","bugs":{"url":"https://github.com/Ansvar-Systems/australian-law-mcp/issues"},"bin":{"australian-law-mcp":"dist/index.js"},"dist":{"shasum":"b4bbb931a6f04832cad4a33aa6401cba373f6cf8","tarball":"https://registry.npmjs.org/@ansvar/australian-law-mcp/-/australian-law-mcp-1.1.0.tgz","fileCount":121,"integrity":"sha512-icaT8d+jonvUzvBFVO5xVg73IEKIIiEZesbRsywRSvppcMcYeGXJ3KZsCRa3KunxIHqtck1eusasKLue909rlw==","signatures":[{"sig":"MEUCIQCRets1EGip6br9WvMNPytghbtxDtuEC3HuAGcOdtUkbgIgZqLwDLNsaENMTBqV9Rqty3ueHWl9XLnSpfmIdZjvjTI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ansvar%2faustralian-law-mcp@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7747229},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"4a8d635ddda322fd883ee64c6daa9ead72079184","mcpName":"eu.ansvar/australian-law-mcp","scripts":{"dev":"node --import tsx src/index.ts","lint":"tsc --noEmit","test":"vitest run","build":"tsc","start":"node dist/index.js","ingest":"node --import tsx scripts/ingest.ts","build:db":"node --import tsx scripts/build-db.ts","validate":"npm run lint && npm test && npm run test:contract","test:watch":"vitest","postinstall":"test -d dist || npm run build || true","drift:detect":"node --import tsx scripts/drift-detect.ts","test:contract":"vitest run __tests__/contract/","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"},"overrides":{"ajv":"^8.18.0","undici":"^7.0.0","path-to-regexp":"^8.0.0"},"repository":{"url":"git+https://github.com/Ansvar-Systems/australian-law-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"Australian federal law database covering privacy, cybersecurity, critical infrastructure, corporations, and consumer law with full-text search","directories":{},"_nodeVersion":"20.20.0","dependencies":{"@ansvar/mcp-sqlite":"^1.0.3","@modelcontextprotocol/sdk":"^1.25.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vitest":"^3.0.0","typescript":"^5.9.3","@types/node":"^22.15.29","@vercel/node":"^5.6.4","better-sqlite3":"^12.6.2","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/australian-law-mcp_1.1.0_1771777791100_0.9454613364268682","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/australian-law-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"},"2.0.0":{"name":"@ansvar/australian-law-mcp","version":"2.0.0","keywords":["mcp","model-context-protocol","ai","claude","australian-law","privacy-act","soci-act","cybersecurity","critical-infrastructure","corporations-act","legislation","legal","compliance","ansvar"],"author":{"name":"Ansvar Systems AB","email":"hello@ansvar.ai"},"license":"Apache-2.0","_id":"@ansvar/australian-law-mcp@2.0.0","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"homepage":"https://github.com/Ansvar-Systems/australian-law-mcp#readme","bugs":{"url":"https://github.com/Ansvar-Systems/australian-law-mcp/issues"},"bin":{"australian-law-mcp":"dist/index.js"},"dist":{"shasum":"39e0a8152abce5801dc1022d2edd2ce222968ad0","tarball":"https://registry.npmjs.org/@ansvar/australian-law-mcp/-/australian-law-mcp-2.0.0.tgz","fileCount":129,"integrity":"sha512-OvxTF/565otZ75O8AiaWnm1+SmSKvIxFr5GYOj1C+ANEcT+dkDUiSKJL9YXjtBtNZv97d3hFMPs2B0eWBXuzxA==","signatures":[{"sig":"MEUCIQDz5WZxH3wOXc9pXO+wytQgIhX6Z6xZkhAiwm7DTiNC/gIgDwOZ4cU51ZtFhC8mpNWh2WZQG0cBogxx4j2flXdlYsw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":282498},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"81c5dd18c26b754bde99334f5d58199bad5dad50","mcpName":"eu.ansvar/australian-law-mcp","scripts":{"dev":"node --import tsx src/index.ts","lint":"tsc --noEmit","test":"vitest run","build":"tsc","start":"node dist/index.js","ingest":"node --import tsx scripts/ingest.ts","build:db":"node --import tsx scripts/build-db.ts","validate":"npm run lint && npm test && npm run test:contract","test:watch":"vitest","postinstall":"test -d dist || npm run build || true","drift:detect":"node --import tsx scripts/drift-detect.ts","check-updates":"node --import tsx scripts/check-updates.ts","test:contract":"vitest run __tests__/contract/","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"},"overrides":{"ajv":"^8.18.0","undici":"^7.0.0","path-to-regexp":"^8.0.0"},"repository":{"url":"git+https://github.com/Ansvar-Systems/australian-law-mcp.git","type":"git"},"_npmVersion":"10.9.4","description":"Complete Australian federal law database — 1,253 Acts from Federal Register of Legislation (legislation.gov.au) with full-text search, definitions, and citation support","directories":{},"_nodeVersion":"22.22.0","dependencies":{"@ansvar/mcp-sqlite":"^1.0.3","@modelcontextprotocol/sdk":"^1.25.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vitest":"^3.0.0","typescript":"^5.9.3","@types/node":"^22.15.29","@vercel/node":"^5.6.4","better-sqlite3":"^12.6.2","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/australian-law-mcp_2.0.0_1772182299562_0.4158998209593545","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/australian-law-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-02-22T16:29:51.038Z","modified":"2026-05-02T05:45:17.150Z","1.1.0":"2026-02-22T16:29:51.365Z","2.0.0":"2026-02-27T08:51:39.717Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/australian-law-mcp/issues"},"author":{"name":"Ansvar Systems AB","email":"hello@ansvar.ai"},"license":"Apache-2.0","homepage":"https://github.com/Ansvar-Systems/australian-law-mcp#readme","keywords":["mcp","model-context-protocol","ai","claude","australian-law","privacy-act","soci-act","cybersecurity","critical-infrastructure","corporations-act","legislation","legal","compliance","ansvar"],"repository":{"url":"git+https://github.com/Ansvar-Systems/australian-law-mcp.git","type":"git"},"description":"Complete Australian federal law database — 1,253 Acts from Federal Register of Legislation (legislation.gov.au) with full-text search, definitions, and citation support","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Australian Law MCP Server\n\n**The Federal Register alternative for the AI age.**\n\n[![npm version](https://badge.fury.io/js/%40ansvar/australian-law-mcp.svg)](https://www.npmjs.com/package/@ansvar/australian-law-mcp)\n[![MCP Registry](https://img.shields.io/badge/MCP-Registry-blue)](https://registry.modelcontextprotocol.io)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![GitHub stars](https://img.shields.io/github/stars/Ansvar-Systems/Australian-law-mcp?style=social)](https://github.com/Ansvar-Systems/Australian-law-mcp)\n[![CI](https://github.com/Ansvar-Systems/Australian-law-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/Australian-law-mcp/actions/workflows/ci.yml)\n[![Database](https://img.shields.io/badge/database-pre--built-green)]()\n[![Provisions](https://img.shields.io/badge/provisions-69%2C797-blue)]()\n\nQuery **1,253 Australian Acts** -- from the Privacy Act and Security of Critical Infrastructure Act to the Corporations Act, Cybercrime Act, and more -- directly from Claude, Cursor, or any MCP-compatible client.\n\nIf you're building legal tech, compliance tools, or doing Australian legal research, this is your verified reference database.\n\nBuilt by [Ansvar Systems](https://ansvar.eu) -- Stockholm, Sweden\n\n---\n\n## Why This Exists\n\nAustralian legal research is scattered across the Federal Register of Legislation, ComLaw, AustLII, and state government portals. Whether you're:\n- A **lawyer** validating citations in a brief under the Privacy Act 1988 or Corporations Act 2001\n- A **compliance officer** checking Australian Privacy Principles (APPs) for your data handling practices\n- A **legal tech developer** building tools on Australian Commonwealth legislation\n- A **researcher** tracing legislative history from Royal Assent through amendments\n\n...you shouldn't need dozens of browser tabs and manual PDF cross-referencing. Ask Claude. Get the exact provision. With context.\n\nThis MCP server makes Australian law **searchable, cross-referenceable, and AI-readable**.\n\n---\n\n## Quick Start\n\n### Use Remotely (No Install Needed)\n\n> Connect directly to the hosted version -- zero dependencies, nothing to install.\n\n**Endpoint:** `https://australian-law-mcp.vercel.app/mcp`\n\n| Client | How to Connect |\n|--------|---------------|\n| **Claude.ai** | Settings > Connectors > Add Integration > paste URL |\n| **Claude Code** | `claude mcp add australian-law --transport http https://australian-law-mcp.vercel.app/mcp` |\n| **Claude Desktop** | Add to config (see below) |\n| **GitHub Copilot** | Add to VS Code settings (see below) |\n\n**Claude Desktop** -- add to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"australian-law\": {\n      \"type\": \"url\",\n      \"url\": \"https://australian-law-mcp.vercel.app/mcp\"\n    }\n  }\n}\n```\n\n**GitHub Copilot** -- add to VS Code `settings.json`:\n\n```json\n{\n  \"github.copilot.chat.mcp.servers\": {\n    \"australian-law\": {\n      \"type\": \"http\",\n      \"url\": \"https://australian-law-mcp.vercel.app/mcp\"\n    }\n  }\n}\n```\n\n### Use Locally (npm)\n\n```bash\nnpx @ansvar/australian-law-mcp\n```\n\n**Claude Desktop** -- add to `claude_desktop_config.json`:\n\n**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`\n**Windows:** `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"australian-law\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/australian-law-mcp\"]\n    }\n  }\n}\n```\n\n**Cursor / VS Code:**\n\n```json\n{\n  \"mcp.servers\": {\n    \"australian-law\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/australian-law-mcp\"]\n    }\n  }\n}\n```\n\n---\n\n## Example Queries\n\nOnce connected, just ask naturally:\n\n- *\"What does the Privacy Act 1988 say about Australian Privacy Principles?\"*\n- *\"Find provisions about critical infrastructure in the SOCI Act\"*\n- *\"Is the Cybercrime Act 2001 still in force?\"*\n- *\"What does the Corporations Act say about directors' duties?\"*\n- *\"Search for data breach notification requirements under the Privacy Act\"*\n- *\"Which Australian laws implement the GDPR?\"*\n- *\"What are the penalties under the Competition and Consumer Act?\"*\n- *\"Build a legal stance on telecommunications data retention in Australia\"*\n\n---\n\n## Key Legislation Covered\n\n| Act | Year | Domain | Key Topics |\n|-----|------|--------|------------|\n| **Privacy Act** | 1988 | Data Protection | Australian Privacy Principles (APPs), personal information, data breach notification |\n| **Security of Critical Infrastructure Act (SOCI)** | 2018 | Critical Infrastructure | Critical infrastructure sectors, positive security obligations, incident reporting |\n| **Telecommunications Act** | 1997 | Communications | Carrier obligations, interception, data retention |\n| **Corporations Act** | 2001 | Corporate Law | Company regulation, financial services, market conduct |\n| **Competition and Consumer Act** | 2010 | Consumer Protection | Australian Consumer Law (ACL), anti-competitive conduct |\n| **Cybercrime Act** | 2001 | Cybercrime | Computer offences, unauthorised access, data interference |\n| **Electronic Transactions Act** | 1999 | Digital | Electronic signatures, electronic contracts, validity |\n\n---\n\n---\n\n## Deployment Tier\n\n**MEDIUM** -- dual tier, free database bundled in npm package.\n\n| Tier | Platform | Database | Content |\n|------|----------|----------|---------|\n| **Free** | Vercel (Hobby) / npm (stdio) | Statutes only (~150-200 MB) | Core Commonwealth legislation, FTS search, EU/international cross-references |\n| **Professional** | Azure Container Apps / Docker / Local | Full database (~800 MB - 1 GB) | + Case law (via AustLII), explanatory memoranda, regulatory guidance |\n\nThe full database is larger due to case law from AustLII and supplementary materials. The free tier contains all Commonwealth Acts and regulations from the Federal Register of Legislation.\n\n---\n\n---\n\n## Database Estimates\n\n| Component | Free Tier | Full (Professional) |\n|-----------|-----------|---------------------|\n| Commonwealth Acts | ~150-200 MB | ~150-200 MB |\n| Case law (AustLII) | -- | ~400-500 MB |\n| Explanatory memoranda | -- | ~100-200 MB |\n| Cross-references & metadata | ~5 MB | ~15 MB |\n| **Total** | **~150-200 MB** | **~800 MB - 1 GB** |\n\n**Delivery strategy:** Free-tier DB bundled in npm package (Strategy A -- fits within Vercel 250 MB function limit). If final size exceeds 250 MB after ingestion, switch to Strategy B (runtime download from GitHub Releases).\n\n---\n\n---\n\n## Available Tools (13)\n\n### Core Legal Research Tools (8)\n\n| Tool | Description |\n|------|-------------|\n| `search_legislation` | FTS5 full-text search across all provisions with BM25 ranking |\n| `get_provision` | Retrieve specific provision by statute + chapter/section |\n| `check_currency` | Check if statute is in force, amended, or repealed |\n| `validate_citation` | Validate citation against database (zero-hallucination check) |\n| `build_legal_stance` | Aggregate citations from statutes for a legal topic |\n| `format_citation` | Format citations per Australian conventions (full/short/pinpoint) |\n| `list_sources` | List all available statutes with metadata |\n| `about` | Server info, capabilities, and coverage summary |\n\n### EU/International Law Integration Tools (5)\n\n| Tool | Description |\n|------|-------------|\n| `get_eu_basis` | Get EU directives/regulations for Australian statute |\n| `get_australian_implementations` | Find Australian laws implementing EU act |\n| `search_eu_implementations` | Search EU documents with Australian implementation counts |\n| `get_provision_eu_basis` | Get EU law references for specific provision |\n| `validate_eu_compliance` | Check implementation status of EU directives |\n\n---\n\n## Why This Works\n\n**Verbatim Source Text (No LLM Processing):**\n- All statute text is ingested from official Australian government sources\n- Provisions are returned **unchanged** from SQLite FTS5 database rows\n- Zero LLM summarization or paraphrasing -- the database contains regulation text, not AI interpretations\n\n**Smart Context Management:**\n- Search returns ranked provisions with BM25 scoring (safe for context)\n- Provision retrieval gives exact text by statute identifier + chapter/section\n- Cross-references help navigate without loading everything at once\n\n**Technical Architecture:**\n```\nOfficial Sources --> Parse --> SQLite --> FTS5 snippet() --> MCP response\n                     ^                       ^\n              Provision parser         Verbatim database query\n```\n\n### Traditional Research vs. This MCP\n\n| Traditional Approach | This MCP Server |\n|---------------------|-----------------|\n| Search official databases by statute number | Search by plain language |\n| Navigate multi-chapter statutes manually | Get the exact provision with context |\n| Manual cross-referencing between laws | `build_legal_stance` aggregates across sources |\n| \"Is this statute still in force?\" --> check manually | `check_currency` tool --> answer in seconds |\n| Find EU basis --> dig through EUR-Lex | `get_eu_basis` --> linked EU directives instantly |\n| No API, no integration | MCP protocol --> AI-native |\n\n---\n\n## Data Sources & Freshness\n\nAll content is sourced from authoritative Australian legal databases:\n\n- **[Federal Register of Legislation](https://www.legislation.gov.au)** -- Official Australian government legal database\n\n**Verified data only** -- every citation is validated against official sources. Zero LLM-generated content.\n\n---\n\n## Security\n\nThis project uses multiple layers of automated security scanning:\n\n| Scanner | What It Does | Schedule |\n|---------|-------------|----------|\n| **CodeQL** | Static analysis for security vulnerabilities | Weekly + PRs |\n| **Semgrep** | SAST scanning (OWASP top 10, secrets, TypeScript) | Every push |\n| **Gitleaks** | Secret detection across git history | Every push |\n| **Trivy** | CVE scanning on filesystem and npm dependencies | Daily |\n| **Socket.dev** | Supply chain attack detection | PRs |\n| **Dependabot** | Automated dependency updates | Weekly |\n\nSee [SECURITY.md](SECURITY.md) for the full policy and vulnerability reporting.\n\n---\n\n## Important Disclaimers\n\n### Legal Advice\n\n> **THIS TOOL IS NOT LEGAL ADVICE**\n>\n> Statute text is sourced from official Australian government publications. However:\n> - This is a **research tool**, not a substitute for professional legal counsel\n> - **Court case coverage is limited** -- do not rely solely on this for case law research\n> - **Verify critical citations** against primary sources for court filings\n> - **EU cross-references** are extracted from statute text, not EUR-Lex full text\n\n**Before using professionally, read:** [DISCLAIMER.md](DISCLAIMER.md) | [SECURITY.md](SECURITY.md)\n\n### Client Confidentiality\n\nQueries go through the Claude API. For privileged or confidential matters, use on-premise deployment.\n\n---\n\n## Development\n\n### Setup\n\n```bash\ngit clone https://github.com/Ansvar-Systems/Australian-law-mcp\ncd Australian-law-mcp\nnpm install\nnpm run build\nnpm test\n```\n\n### Running Locally\n\n```bash\nnpm run dev                                       # Start MCP server\nnpx @anthropic/mcp-inspector node dist/index.js   # Test with MCP Inspector\n```\n\n---\n\n## Related Projects: Complete Compliance Suite\n\nThis server is part of **Ansvar's Compliance Suite** -- MCP servers that work together for end-to-end compliance coverage:\n\n### [@ansvar/eu-regulations-mcp](https://github.com/Ansvar-Systems/EU_compliance_MCP)\n**Query 49 EU regulations directly from Claude** -- GDPR, AI Act, DORA, NIS2, MiFID II, eIDAS, and more. Full regulatory text with article-level search. `npx @ansvar/eu-regulations-mcp`\n\n### [@ansvar/us-regulations-mcp](https://github.com/Ansvar-Systems/US_Compliance_MCP)\n**Query US federal and state compliance laws** -- HIPAA, CCPA, SOX, GLBA, FERPA, and more. `npx @ansvar/us-regulations-mcp`\n\n### [@ansvar/security-controls-mcp](https://github.com/Ansvar-Systems/security-controls-mcp)\n**Query 261 security frameworks** -- ISO 27001, NIST CSF, SOC 2, CIS Controls, SCF, and more. `npx @ansvar/security-controls-mcp`\n\n### [@ansvar/automotive-cybersecurity-mcp](https://github.com/Ansvar-Systems/Automotive-MCP)\n**Query UNECE R155/R156 and ISO 21434** -- Automotive cybersecurity compliance. `npx @ansvar/automotive-cybersecurity-mcp`\n\n**30+ national law MCPs** covering Australia, Brazil, Canada, China, Denmark, Finland, France, Germany, Ghana, Iceland, India, Ireland, Israel, Italy, Japan, Kenya, Netherlands, Nigeria, Norway, Singapore, Slovenia, South Korea, Sweden, Switzerland, Thailand, UAE, UK, and more.\n\n---\n\n## Contributing\n\nContributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\nPriority areas:\n- Court case law expansion\n- EU cross-reference improvements\n- Historical statute versions and amendment tracking\n- Additional statutory instruments and regulations\n\n---\n\n## Roadmap\n\n- [x] Core statute database with FTS5 search\n- [x] EU/international law cross-references\n- [x] Vercel Streamable HTTP deployment\n- [x] npm package publication\n- [ ] Court case law expansion\n- [ ] Historical statute versions (amendment tracking)\n- [ ] Preparatory works / explanatory memoranda\n- [ ] Lower court and tribunal decisions\n\n---\n\n## Citation\n\nIf you use this MCP server in academic research:\n\n```bibtex\n@software{australian_law_mcp_2025,\n  author = {Ansvar Systems AB},\n  title = {Australian Law MCP Server: AI-Powered Legal Research Tool},\n  year = {2025},\n  url = {https://github.com/Ansvar-Systems/Australian-law-mcp},\n  note = {Australian legal database with full-text search and EU cross-references}\n}\n```\n\n---\n\n## License\n\nApache License 2.0. See [LICENSE](./LICENSE) for details.\n\n### Data Licenses\n\n- **Statutes & Legislation:** Australian Government (CC BY 4.0)\n- **EU Metadata:** EUR-Lex (EU public domain)\n\n---\n\n## About Ansvar Systems\n\nWe build AI-accelerated compliance and legal research tools for the global market. This MCP server started as our internal reference tool -- turns out everyone building compliance tools has the same research frustrations.\n\nSo we're open-sourcing it.\n\n**[ansvar.eu](https://ansvar.eu)** -- Stockholm, Sweden\n\n---\n\n<p align=\"center\">\n  <sub>Built with care in Stockholm, Sweden</sub>\n</p>\n","readmeFilename":"README.md"}