MCP Hub
Back to servers

newzealand-law-mcp

New Zealand legislation via MCP — full-text search across statutes and provisions

Registry
Updated
Feb 22, 2026

Quick Install

npx -y @ansvar/newzealand-law-mcp

New Zealand Law MCP

New Zealand law database for the Model Context Protocol, covering privacy, harmful digital communications, electronic transactions, companies, commerce, and publications classification legislation with full-text search.

MCP Registry: eu.ansvar/newzealand-law-mcp npm: @ansvar/newzealand-law-mcp License: Apache-2.0


Deployment Tier

SMALL -- single tier, bundled. New Zealand has a smaller legislative corpus that fits comfortably within Vercel and npm size limits.

TierPlatformDatabaseContent
BundledVercel (Hobby) / npm (stdio) / DockerFull database (~100-200 MB)All NZ Acts, regulations, FTS search, international cross-references

No 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.


Data Sources

SourceAuthorityMethodUpdate FrequencyLicenseCoverage
New Zealand LegislationNZ Government, Parliamentary Counsel OfficeXML DownloadWeeklyCC BY 4.0All NZ Acts, legislative instruments, regulations
NZLIIAustLII / University of CanterburyHTML ScrapeWeeklyNZLII Terms of UseCase law, tribunal decisions, law reform reports

Full provenance metadata: sources.yml


Quick Start

Claude Desktop / Cursor (stdio)

{
  "mcpServers": {
    "newzealand-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/newzealand-law-mcp"]
    }
  }
}

Vercel Streamable HTTP (ChatGPT / Claude.ai)

Once deployed, the public endpoint will be available at:

https://newzealand-law-mcp.vercel.app/api/mcp

Tools

ToolDescription
get_provisionRetrieve a specific section/article from a New Zealand Act
search_legislationFull-text search across all NZ legislation
list_actsList all available Acts with metadata
get_act_structureGet table of contents / structure of an Act
get_provision_eu_basisCross-reference NZ law to EU/international equivalents
search_case_lawSearch case law from NZ courts (via NZLII)

All tools are available in the single bundled tier -- no upgrade gating required.


Key Legislation Covered

ActYearDomainKey Topics
Privacy Act2020Data ProtectionInformation Privacy Principles (IPPs), personal information, data breach notification, Privacy Commissioner
Harmful Digital Communications Act2015Digital SafetyOnline harm, communication principles, safe harbour for ISPs, Netsafe approved agency
Electronic Transactions Act2002DigitalElectronic signatures, electronic contracts, validity of electronic information
Companies Act1993Corporate LawCompany incorporation, directors' duties, shareholder rights, liquidation
Commerce Act1986CompetitionAnti-competitive practices, mergers, market dominance, Commerce Commission
Films Videos and Publications Classification Act1993Content RegulationClassification of publications, objectionable material, Chief Censor

Languages

New Zealand legislation is primarily in English. Some legislation includes provisions in te reo Maori (the Maori language), particularly:

  • Te Ture Whenua Maori Act 1993 (Maori Land Act)
  • Treaty of Waitangi related legislation
  • Maori Language Act 2016

The MCP indexes both English (en) and Maori (mi) text where available.


Database Estimates

ComponentSize Estimate
NZ Acts and regulations~80-120 MB
Case law (via NZLII)~30-60 MB
Cross-references and metadata~5 MB
Total~100-200 MB

Delivery strategy: Full database bundled in npm package (same approach as Swedish and Slovenian Law MCPs). No tiering or runtime download needed.


Development

# Clone the repository
git clone https://github.com/Ansvar-Systems/newzealand-law-mcp.git
cd newzealand-law-mcp

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Run contract tests
npm run test:contract

# Build database (requires raw data in data/ directory)
npm run build:db

# Run drift detection
npm run drift:detect

# Full validation
npm run validate

Architecture

newzealand-law-mcp/
├── .github/
│   ├── workflows/
│   │   ├── ci.yml                    # Test + lint + security scan
│   │   ├── publish.yml               # npm publish on version tags
│   │   ├── check-source-updates.yml  # Data freshness monitoring
│   │   └── drift-detect.yml          # Upstream drift detection
│   ├── SECURITY.md
│   ├── SECURITY-SETUP.md
│   └── ISSUE_TEMPLATE/
│       └── data-error.md
├── data/
│   └── .gitkeep
├── fixtures/
│   ├── golden-tests.json             # 12 contract tests
│   ├── golden-hashes.json            # 6 drift detection anchors
│   └── README.md
├── scripts/
│   ├── build-db.ts
│   ├── ingest.ts
│   ├── drift-detect.ts
│   └── check-source-updates.ts
├── src/
│   ├── server.ts
│   ├── db.ts
│   └── tools/
│       ├── get-provision.ts
│       ├── search-legislation.ts
│       ├── list-acts.ts
│       ├── get-act-structure.ts
│       ├── get-provision-eu-basis.ts
│       └── search-case-law.ts
├── __tests__/
│   ├── unit/
│   ├── contract/
│   │   └── golden.test.ts
│   └── integration/
├── sources.yml
├── server.json
├── package.json
├── tsconfig.json
├── CHANGELOG.md
├── LICENSE
└── README.md

Related Documents


Security

Report vulnerabilities to security@ansvar.eu (48-hour acknowledgment SLA).

See SECURITY.md for full disclosure policy.


Maintained by: Ansvar Systems Engineering Contact: hello@ansvar.eu

Reviews

No reviews yet

Sign in to write a review