{"_id":"@ansvar/newzealand-law-mcp","_rev":"2-fb13a18675cc08a9e8859c2816b9b3ea","name":"@ansvar/newzealand-law-mcp","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.1":{"name":"@ansvar/newzealand-law-mcp","version":"1.1.1","keywords":["mcp","model-context-protocol","new-zealand-law","privacy-act","harmful-digital-communications","companies-act","commerce-act","legislation","legal","compliance","ansvar"],"author":{"name":"Ansvar Systems","email":"hello@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/newzealand-law-mcp@1.1.1","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"homepage":"https://ansvar.eu","bugs":{"url":"https://github.com/Ansvar-Systems/newzealand-law-mcp/issues"},"bin":{"newzealand-law-mcp":"dist/src/index.js"},"dist":{"shasum":"0ca8daff7ee9aa8bba42dd5ec8629219352ac47e","tarball":"https://registry.npmjs.org/@ansvar/newzealand-law-mcp/-/newzealand-law-mcp-1.1.1.tgz","fileCount":99,"integrity":"sha512-OpFYm1mpieJDGpGTYvR+YY2YcW2wJrOSLB2G4Nl1sUbwfCpcUarkB3M3Fsg/NsVQpdlgAZS7vNTYNGF+Vo8soA==","signatures":[{"sig":"MEYCIQCLeiiKobLnCbxa1QyJD9mJ3oK+K7NBAf6vmN7IXL8IiwIhANIwFN+6MzmfEeIxQbF0Sohw+YkzHIdd2IHztPudQwVa","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ansvar%2fnewzealand-law-mcp@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5924663},"main":"dist/src/index.js","type":"module","types":"./dist/src/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"cacbfe3296688a4bad607e674d0933fcd03e186f","mcpName":"eu.ansvar/newzealand-law-mcp","scripts":{"lint":"tsc --noEmit","test":"vitest run","build":"tsc","start":"node dist/src/index.js","health":"curl -s http://localhost:3000/health | jq .","ingest":"tsx scripts/ingest.ts","build:db":"tsx scripts/build-db.ts","validate":"npm run lint && npm run test && npm run test:contract","test:watch":"vitest","start:stdio":"node dist/src/index.js --stdio","drift:detect":"tsx scripts/drift-detect.ts","test:contract":"vitest run __tests__/contract/"},"_npmUser":{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"},"repository":{"url":"git+https://github.com/Ansvar-Systems/newzealand-law-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"New Zealand law database covering privacy, digital communications, electronic transactions, companies, and commerce law with full-text search","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.23.0","@ansvar/mcp-sqlite":"^1.0.0","@modelcontextprotocol/sdk":"^1.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","eslint":"^9.0.0","vitest":"^3.0.0","prettier":"^3.4.0","typescript":"^5.7.0","@types/node":"^22.0.0","@vercel/node":"^5.6.4","better-sqlite3":"^11.0.0","@types/better-sqlite3":"^7.6.13","@typescript-eslint/parser":"^8.0.0","@typescript-eslint/eslint-plugin":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/newzealand-law-mcp_1.1.1_1771778459861_0.6744041959036278","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/newzealand-law-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-02-22T16:40:59.743Z","modified":"2026-05-02T05:47:58.748Z","1.1.1":"2026-02-22T16:41:00.119Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/newzealand-law-mcp/issues"},"author":{"name":"Ansvar Systems","email":"hello@ansvar.eu"},"license":"Apache-2.0","homepage":"https://ansvar.eu","keywords":["mcp","model-context-protocol","new-zealand-law","privacy-act","harmful-digital-communications","companies-act","commerce-act","legislation","legal","compliance","ansvar"],"repository":{"url":"git+https://github.com/Ansvar-Systems/newzealand-law-mcp.git","type":"git"},"description":"New Zealand law database covering privacy, digital communications, electronic transactions, companies, and commerce law with full-text search","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# New Zealand Law MCP\n\nNew Zealand law database for the [Model Context Protocol](https://modelcontextprotocol.io/), covering privacy, harmful digital communications, electronic transactions, companies, commerce, and publications classification legislation with full-text search.\n\n**MCP Registry:** `eu.ansvar/newzealand-law-mcp`\n**npm:** `@ansvar/newzealand-law-mcp`\n**License:** Apache-2.0\n\n---\n\n## Deployment Tier\n\n**SMALL** -- single tier, bundled. New Zealand has a smaller legislative corpus that fits comfortably within Vercel and npm size limits.\n\n| Tier | Platform | Database | Content |\n|------|----------|----------|---------|\n| **Bundled** | Vercel (Hobby) / npm (stdio) / Docker | Full database (~100-200 MB) | All NZ Acts, regulations, FTS search, international cross-references |\n\nNo tiering is required. The full New Zealand legislative database fits within the Vercel 250 MB function bundle limit, similar to the Swedish and Slovenian Law MCPs.\n\n---\n\n## Data Sources\n\n| Source | Authority | Method | Update Frequency | License | Coverage |\n|--------|-----------|--------|-----------------|---------|----------|\n| [New Zealand Legislation](https://www.legislation.govt.nz) | NZ Government, Parliamentary Counsel Office | XML Download | Weekly | CC BY 4.0 | All NZ Acts, legislative instruments, regulations |\n| [NZLII](https://www.nzlii.org) | AustLII / University of Canterbury | HTML Scrape | Weekly | NZLII Terms of Use | Case law, tribunal decisions, law reform reports |\n\n> Full provenance metadata: [`sources.yml`](./sources.yml)\n\n---\n\n## Quick Start\n\n### Claude Desktop / Cursor (stdio)\n\n```json\n{\n  \"mcpServers\": {\n    \"newzealand-law\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/newzealand-law-mcp\"]\n    }\n  }\n}\n```\n\n### Vercel Streamable HTTP (ChatGPT / Claude.ai)\n\nOnce deployed, the public endpoint will be available at:\n\n```\nhttps://newzealand-law-mcp.vercel.app/api/mcp\n```\n\n---\n\n## Tools\n\n| Tool | Description |\n|------|-------------|\n| `get_provision` | Retrieve a specific section/article from a New Zealand Act |\n| `search_legislation` | Full-text search across all NZ legislation |\n| `list_acts` | List all available Acts with metadata |\n| `get_act_structure` | Get table of contents / structure of an Act |\n| `get_provision_eu_basis` | Cross-reference NZ law to EU/international equivalents |\n| `search_case_law` | Search case law from NZ courts (via NZLII) |\n\nAll tools are available in the single bundled tier -- no upgrade gating required.\n\n---\n\n## Key Legislation Covered\n\n| Act | Year | Domain | Key Topics |\n|-----|------|--------|------------|\n| **Privacy Act** | 2020 | Data Protection | Information Privacy Principles (IPPs), personal information, data breach notification, Privacy Commissioner |\n| **Harmful Digital Communications Act** | 2015 | Digital Safety | Online harm, communication principles, safe harbour for ISPs, Netsafe approved agency |\n| **Electronic Transactions Act** | 2002 | Digital | Electronic signatures, electronic contracts, validity of electronic information |\n| **Companies Act** | 1993 | Corporate Law | Company incorporation, directors' duties, shareholder rights, liquidation |\n| **Commerce Act** | 1986 | Competition | Anti-competitive practices, mergers, market dominance, Commerce Commission |\n| **Films Videos and Publications Classification Act** | 1993 | Content Regulation | Classification of publications, objectionable material, Chief Censor |\n\n---\n\n## Languages\n\nNew Zealand legislation is primarily in English. Some legislation includes provisions in **te reo Maori** (the Maori language), particularly:\n- Te Ture Whenua Maori Act 1993 (Maori Land Act)\n- Treaty of Waitangi related legislation\n- Maori Language Act 2016\n\nThe MCP indexes both English (`en`) and Maori (`mi`) text where available.\n\n---\n\n## Database Estimates\n\n| Component | Size Estimate |\n|-----------|---------------|\n| NZ Acts and regulations | ~80-120 MB |\n| Case law (via NZLII) | ~30-60 MB |\n| Cross-references and metadata | ~5 MB |\n| **Total** | **~100-200 MB** |\n\n**Delivery strategy:** Full database bundled in npm package (same approach as Swedish and Slovenian Law MCPs). No tiering or runtime download needed.\n\n---\n\n## Development\n\n```bash\n# Clone the repository\ngit clone https://github.com/Ansvar-Systems/newzealand-law-mcp.git\ncd newzealand-law-mcp\n\n# Install dependencies\nnpm install\n\n# Build\nnpm run build\n\n# Run tests\nnpm test\n\n# Run contract tests\nnpm run test:contract\n\n# Build database (requires raw data in data/ directory)\nnpm run build:db\n\n# Run drift detection\nnpm run drift:detect\n\n# Full validation\nnpm run validate\n```\n\n---\n\n## Architecture\n\n```\nnewzealand-law-mcp/\n├── .github/\n│   ├── workflows/\n│   │   ├── ci.yml                    # Test + lint + security scan\n│   │   ├── publish.yml               # npm publish on version tags\n│   │   ├── check-source-updates.yml  # Data freshness monitoring\n│   │   └── drift-detect.yml          # Upstream drift detection\n│   ├── SECURITY.md\n│   ├── SECURITY-SETUP.md\n│   └── ISSUE_TEMPLATE/\n│       └── data-error.md\n├── data/\n│   └── .gitkeep\n├── fixtures/\n│   ├── golden-tests.json             # 12 contract tests\n│   ├── golden-hashes.json            # 6 drift detection anchors\n│   └── README.md\n├── scripts/\n│   ├── build-db.ts\n│   ├── ingest.ts\n│   ├── drift-detect.ts\n│   └── check-source-updates.ts\n├── src/\n│   ├── server.ts\n│   ├── db.ts\n│   └── tools/\n│       ├── get-provision.ts\n│       ├── search-legislation.ts\n│       ├── list-acts.ts\n│       ├── get-act-structure.ts\n│       ├── get-provision-eu-basis.ts\n│       └── search-case-law.ts\n├── __tests__/\n│   ├── unit/\n│   ├── contract/\n│   │   └── golden.test.ts\n│   └── integration/\n├── sources.yml\n├── server.json\n├── package.json\n├── tsconfig.json\n├── CHANGELOG.md\n├── LICENSE\n└── README.md\n```\n\n---\n\n## Related Documents\n\n- [MCP Quality Standard](../../mcp-quality-standard.md) -- quality requirements for all Ansvar MCPs\n- [MCP Infrastructure Blueprint](../../mcp-infrastructure-blueprint.md) -- infrastructure implementation templates\n- [MCP Deployment Tiers](../../mcp-deployment-tiers.md) -- free vs. professional tier strategy\n- [MCP Server Registry](../../mcp-server-registry.md) -- operational registry of all MCPs\n- [MCP Remote Access](../../mcp-remote-access.md) -- public Vercel endpoint URLs\n\n---\n\n## Security\n\nReport vulnerabilities to **security@ansvar.eu** (48-hour acknowledgment SLA).\n\nSee [SECURITY.md](.github/SECURITY.md) for full disclosure policy.\n\n---\n\n**Maintained by:** Ansvar Systems Engineering\n**Contact:** hello@ansvar.eu\n","readmeFilename":"README.md"}