nz-legal-mcp
Provides New Zealand legal research tools for GitHub Copilot in VS Code, enabling legislation and case law search, full-text legal document retrieval, and citation verification.
Provides New Zealand legal research tools for Google Antigravity and Gemini CLI, enabling legislation and case law search, full-text legal document retrieval, and citation verification.
Provides New Zealand legal research tools for ChatGPT Desktop and OpenAI Codex CLI, enabling legislation and case law search, full-text legal document retrieval, and citation verification.
Provides New Zealand legal research tools for Perplexity, enabling legislation and case law search, full-text legal document retrieval, and citation verification.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nz-legal-mcp verify the citation [2024] NZSC 5"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
New Zealand Legal Research MCP Server (nz-legal-mcp)
English Documentation
Model Context Protocol (MCP) server providing live, read-only access to New Zealand (NZ) legislation, official gazettes, multi-tier judicial decisions (First Instance, Regional/Cantonal/Appellate, and Supreme/Constitutional courts, including HTML and PDF full-text extraction), and statutory citation verification across all major AI clients (ChatGPT Desktop, OpenAI Codex CLI, Claude Desktop, Claude Code CLI, Cursor, Windsurf, VS Code / GitHub Copilot / Cline / Roo Code, Google Antigravity / Gemini CLI, Perplexity, and Continue.dev).
Interactive Desktop Setup (Select Your AI Assistant)
This package includes a graphical installer for legal practitioners and non-technical users that lets you select which AI application(s) you use:
Download: Click
<> Codeat the top right of this repository, selectDownload ZIP, and extract the folder to your computer.Run the Setup Utility:
Windows: Double-click
Click_Here_To_Install_Windows.batmacOS: Double-click
Click_Here_To_Install_Mac.command
Select Your AI Client(s) & Connect: Check the box(es) for the AI assistant(s) installed on your computer (ChatGPT Desktop & OpenAI Codex CLI, Claude Desktop & Claude Code CLI, Cursor, Windsurf, VS Code / GitHub Copilot / Cline / Roo Code, Google Antigravity / Gemini CLI, or Perplexity / Continue.dev), click Install to Selected AI Clients, and restart your selected AI application.
System Integrity Note: The setup utility operates strictly in read-only mode with respect to your personal files and documents. It installs an isolated Python runtime inside the extracted folder and registers the server entry only in the AI client configuration files you select.
Multi-Tier Judicial Hierarchy & Live Indexed National Archives
This server performs live queries across the full judicial hierarchy and official legal archives of New Zealand, extracting full text from both HTML pages and official court/gazette PDF judgments:
Judicial Tier | Covered Courts & Tribunals |
Tier 1 — First Instance | District Court of New Zealand (NZDC), Family Court, Employment Court & Environment Court |
Tier 2 — Regional / Cantonal / Appellate | High Court of New Zealand (NZHC) & Court of Appeal of New Zealand (NZCA) |
Tier 3 — Supreme & Constitutional | Supreme Court of New Zealand / Te Kōti Mana Nui (NZSC) |
Official Portals & Live Indexed Domains
National Legislation & Official Gazette: New Zealand Legislation (legislation.govt.nz) — https://www.legislation.govt.nz
Indexed Legislation Domains:
legislation.govt.nz,nzlii.org
Court Decisions & Jurisprudence Archives: Judicial Decisions Online (courtsofnz.govt.nz / districtcourts.govt.nz / nzlii.org) — https://www.courtsofnz.govt.nz
Indexed Judicial & Open Case Law Domains:
courtsofnz.govt.nz,districtcourts.govt.nz,nzlii.org,justice.govt.nz
Available MCP Tools
Tool | Description |
| Searches enacted statutes, codes, decrees, and official gazette publications in New Zealand. |
| Searches national jurisprudence and open judicial archives for New Zealand. |
| Filters case law specifically by judicial instance ( |
| Returns the complete 3-tier court structure and supported regional court filters for New Zealand. |
| Retrieves full statutory or judicial texts (both HTML and official |
| Validates statutory and case law citations against official registries. |
{
"mcpServers": {
"nz-legal-mcp": {
"command": "uvx",
"args": [
"--from",
"https://github.com/jurisatlas/nz-legal-mcp/archive/refs/heads/main.zip",
"nz-legal-mcp"
]
}
}
}Available Tools
6 toolsget_legal_document_markdownGet Legal Document MarkdownB
Retrieve full Markdown text of a legislation document or court judgment (HTML or PDF) from New Zealand (NZ) by its URL or official identifier.
Inputs: document_id_or_url (required), page. Returns: object
list_court_hierarchyList Court HierarchyA
Return the complete step-by-step multi-tier judicial hierarchy for New Zealand (NZ): Tier 1 (First Instance / Trial / Municipal / District Courts), Tier 2 (Regional / Cantonal / County / Appellate Courts), Tier 3 (Supreme / Cassation / Constitutional Courts), and all official court sub-portals.
Inputs: no named parameters. Returns: object
search_case_lawSearch Case LawB
Search New Zealand (NZ) court decisions and binding precedents via Courts of New Zealand (courtsofnz.govt.nz) & NZLII and open national judicial archives (Supported courts: NZSC (Supreme Court), NZCA (Court of Appeal), NZHC (High Court)).
Inputs: query (required), court, limit. Returns: object
search_legislationSearch LegislationA
Search New Zealand (NZ) national legislation (statutes, acts, codes, regulations, official gazette) via New Zealand Legislation (legislation.govt.nz) and live national legal archives.
Inputs: query (required), year, limit. Returns: object
search_tiered_court_decisionsSearch Tiered Court DecisionsA
Search court decisions in New Zealand (NZ) filtered by specific judicial tier or regional/cantonal/appellate court. Supports Tier 1 (first_instance), Tier 2 (appellate_regional — including Cantonal/Regional/County/Circuit courts), and Tier 3 (supreme_constitutional), or a specific sub-portal key from list_court_hierarchy.
Inputs: query (required), tier, limit, sub_court. Returns: object
verify_citationVerify CitationA
No-Hallucination Citation Verifier for New Zealand (NZ). Validates format and live existence of legal citations (e.g., '[2024] NZSC 5 or [2023] NZCA 120') against official New Zealand and ECLI/ELI registries to prevent AI-hallucinated citations.
Inputs: citation (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clear primary action, but search_case_law and search_tiered_court_decisions both search court decisions, differing only by tier filtering, which could prompt misselection. The descriptions do clarify the distinction (general vs faceted search), keeping it mostly distinct. get_legal_document_markdown, list_court_hierarchy, and verify_citation are unambiguous.
All six tools follow a consistent snake_case verb_noun pattern (search_*, get_*, list_*, verify_*). Extension suffixes like _markdown and _tiered_court_decisions remain readable and predictable.
Six tools is well within the ideal 3-15 range for a legal research server. Each tool covers a distinct capability (case search, tiered search, legislation search, document retrieval, hierarchy lookup, citation verification) with no filler.
The surface covers the core legal research lifecycle: finding case law and legislation, retrieving full text, understanding court structure, and verifying citations. Minor gaps exist—no citator/note-up (which cases cite a case) or legislation amendment/history tracking—but agents can work around these via document retrieval.
Maintenance
Related MCP Connectors
Resolve, search and verify legal citations against the official sources, with provenance.
U.S. law library for AI: court decisions, statutes, court rules and citation checks. Read-only.
Current law as data for AI: search, read and verify statutes and citations. CIS countries first.
Search, read and cite litigation case files, with the rights you hold in each matter.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables read-only searches of Australian legislation and case law across first-instance, appellate, and High Court tiers, plus retrieval of full statutory and judicial texts as Markdown. It also verifies statutory and case-law citations against official registries.6MIT
- AlicenseBqualityBmaintenanceProvides read-only access to Swiss legislation and multi-tier court decisions, enabling searches, full-text retrieval as Markdown, court hierarchy listing, and statutory or case-law citation verification across official registries.6MIT
- AlicenseAqualityBmaintenanceEnables read-only search and retrieval of Irish legislation and court decisions across first-instance, appellate, and supreme/constitutional tiers, with Markdown document conversion and citation verification against official registries.6MIT
- AlicenseAqualityBmaintenanceEnables read-only access to national legislation, multi-tier court decisions, and citation verification against official registries, including full-text retrieval in Markdown.6MIT